Skip to content

Instantly share code, notes, and snippets.

@theherk
Created September 19, 2016 21:57
Show Gist options
  • Save theherk/8b1bf162a2403cca40f3dfd968be7853 to your computer and use it in GitHub Desktop.
Save theherk/8b1bf162a2403cca40f3dfd968be7853 to your computer and use it in GitHub Desktop.
systemd service unit file for sshuttle
[Unit]
Description=sshuttle service a permanent tunnel
After=network.target
[Service]
ExecStart=/usr/bin/sshuttle -r h4s@localhost:39111 0.0.0.0/0 --dns -D --pidfile=/var/run/sshuttle.pid -e 'ssh -i /home/h4s/.ssh/whtunnel2'
Restart=always
Type=forking
PIDFile=/var/run/sshuttle.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment