hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.07k stars 174 forks source link

How to let an application that started or enabled by "systemctl " use graftcp on Linux? #71

Closed zwl1619 closed 1 month ago

zwl1619 commented 1 month ago

How to let an application that started or enabled by "systemctl " use graftcp? 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 graftcp?

hmgle commented 1 month ago

Modify your Systemd Unit Configuration file's ExecStart line: From: ExecStart=/path/to/app To: ExecStart=graftcp /path/to/app