Skip to content

Instantly share code, notes, and snippets.

@cod3fr3ak
Forked from theherk/sshuttle.service
Created June 17, 2021 01:20
Show Gist options
  • Save cod3fr3ak/6988daffec66d0e4c9ec3da700e64b34 to your computer and use it in GitHub Desktop.
Save cod3fr3ak/6988daffec66d0e4c9ec3da700e64b34 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