Skip to content

Instantly share code, notes, and snippets.

@xiangnanscu
Last active April 4, 2024 02:56
Show Gist options
  • Save xiangnanscu/a8a2369b5cee2623e0bcb491de4be64c to your computer and use it in GitHub Desktop.
Save xiangnanscu/a8a2369b5cee2623e0bcb491de4be64c to your computer and use it in GitHub Desktop.
cat <<EOF > /etc/systemd/system/sshuttle.service
[Unit]
Description=sshuttle VPN
After=network.target
[Service]
ExecStart=/usr/bin/sshuttle --dns -r root@rsks.ren 0.0.0.0/0 -x rsks.ren
Restart=always
RestartSec=5
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable sshuttle.service
sudo systemctl start sshuttle.service
sudo systemctl status sshuttle.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment