Skip to content

Instantly share code, notes, and snippets.

@robinwl
Created October 4, 2016 20:37
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 robinwl/99b92d29c7a212ec79da396a4452d810 to your computer and use it in GitHub Desktop.
Save robinwl/99b92d29c7a212ec79da396a4452d810 to your computer and use it in GitHub Desktop.
sshuttle upstart
description "sshuttle daemon"
author "Robin <robin@naas.io>"
start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]
env DAEMON=/usr/sbin/sshuttle
env ARGS="-NH --syslog"
env TARGET="user@remotehost:port"
respawn
respawn limit 0 300
pre-start script
test -x $DAEMON || { stop; exit 0; }
end script
exec $DAEMON $ARGS --remote=$TARGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment