Skip to content

Instantly share code, notes, and snippets.

@Wohlstand
Created April 12, 2018 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wohlstand/28c7200ce183240da7425d4ba193161b to your computer and use it in GitHub Desktop.
Save Wohlstand/28c7200ce183240da7425d4ba193161b to your computer and use it in GitHub Desktop.
Systemd script for SS5 Socks proxy
[Unit]
Description=SS5 Socks Proxy
After=syslog.target network.target nss-lookup.target
[Service]
Type=forking
# The PID file is optional, but recommended in the manpage
# "so that systemd can identify the main process of the daemon"
PIDFile=/var/run/ss5.pid
ExecStart=/usr/sbin/ss5 -p /var/run/ss5.pid -u root -b 0.0.0.0:4781
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment