rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

How to let an application that started or enabled by "systemctl " use proxychains-ng on Linux? #568

Closed zwl1619 closed 5 months ago

zwl1619 commented 5 months ago

How to let an application that started or enabled by "systemctl " use proxychains-ng on Linux? For example, I installed sing-box, manage it with the commands below:

sudo systemctl enable sing-box
sudo systemctl disable sing-box
sudo systemctl start sing-box
sudo systemctl stop sing-box
sudo systemctl kill sing-box
sudo systemctl restart sing-box

How to launch sing-box via proxychains-ng?

rofl0r commented 5 months ago

you edit the service script so instead of executing "/bin/singbox" it executes "/bin/proxychains4 -f /etc/proxychains-singbox.conf /bin/singbox". adjust paths as needed.