By configuring with redsocks
and iptables
, almost all traffic can be proxied on Linux,
including but not limited to Firefox, OBS, etc.
I would like to call this a global selective proxy. It is global because you cannot do process-wise proxy; it is selective because you can still make some configurations based on things such as port.
Install redsocks.
I use Arch Linux, and there is an AUR package for redsocks. Although I did not look into other distributions of Linux, it should not be hard to find a viable way to install redsocks, as it is a relatively popular package.
- Clone this repository
cd
into the directory of the repository you just clone- Configure redsocks by editing
redsocks.conf
- Run any of the shell scripts starting with "launch", you may need root privilege
- After exiting the script, do not forget to run
stop.sh
to do cleanup, root privilege may again be required - You can also add and edit some scripts to accomplish your goal. Pull requests of fixes and new features are welcomed.
Scripts in proxifier-linux provided by zihaaad.