by qersist3nce · 4y ago · 0 comments
Couple of related questions:
- Does anyone know, in a Linux distro, how to pass all system traffic through a SOCKS proxy port? I'm not looking for intermediary proxy handlers but an official method to force all user and system apps to use an arbitrary port.
- If it is not possible to do so, does `NetworkManager` have a setting for this?
- Is it possible to at least change Chrome/Firefox ports via CLI to an arbitrary port?
I guess SOCKS5 handles tcp and udp - so you might get away with redsocks (which explicitly recommends against using with TOR):
https://github.com/darkk/redsocks
See also transocks (SOCKS4 tcp only): https://transocks.sourceforge.net
And transocks (in go) https://github.com/cybozu-go/transocks
Ed: see also https://news.ycombinator.com/item?id=30684574
- Configure all applications to use Tor with the SOCKS proxy
- Block all non-Tor traffic with iptables
Combined with ssh's `-D` option, it becomes a powerful ad-hoc VPN tool.
Tor only supports TCP, so you cannot route all traffic over Tor, you will have to drop a bunch.
https://unix.stackexchange.com/questions/166692/how-does-a-t...
A part from tor I don't know if there's a generic tool packaging this.
Never would have imaged that use case.
circumventing censorship and geo-restrictions?
I never would have imagined SOCKS being used for this use case. There was no such thing as geo-restrictions or censorship at the time on the internet.