Skip to content

Instantly share code, notes, and snippets.

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 machsix/0cdb5524d4886573ac51b9ab0b10bfa0 to your computer and use it in GitHub Desktop.
Save machsix/0cdb5524d4886573ac51b9ab0b10bfa0 to your computer and use it in GitHub Desktop.
extra shadowsocks-libev/simple-obfs systemd unit files
[Unit]
Description=Shadowsocks-Libev Server Service With Standalone Simple Obfusacting Service
After=network.target
BindsTo=simple-obfs-server@%i.service
After=simple-obfs-server@%i.service
[Service]
Type=simple
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/%i.json
[Install]
WantedBy=multi-user.target
[Unit]
Description=Shadowsocks-Libev Client Service With Standalone Simple Obfusacting Service
After=network.target
BindsTo=simple-obfs-local@%i.service
After=simple-obfs-local@%i.service
[Service]
Type=simple
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/%i.json
[Install]
WantedBy=multi-user.target
[Unit]
Description=Standalone Simple Obfusacting Service for Shadowsocks-Libev Client
After=network.target
PartOf=shadowsocks-libev-with-standalone-simple-obfs@%i.service
[Service]
Type=simple
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/obfs-local -c /etc/shadowsocks/%i.simple-obfs.json
[Install]
WantedBy=multi-user.target
[Unit]
Description=Standalone Simple Obfusacting Service for Shadowsocks-Libev Server
After=network.target
PartOf=shadowsocks-libev-server-with-standalone-simple-obfs@%i.service
[Service]
Type=simple
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/obfs-server -c /etc/shadowsocks/%i.simple-obfs.json
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment