Skip to content

Instantly share code, notes, and snippets.

@lwzm
Last active April 12, 2021 06:19
Show Gist options
  • Save lwzm/b0c53a9a02ddb1f453cebef3afc452f4 to your computer and use it in GitHub Desktop.
Save lwzm/b0c53a9a02ddb1f453cebef3afc452f4 to your computer and use it in GitHub Desktop.
#!/bin/sh
nets="0.0.0.0/0"
nets="192.168.0.0/16 172.16.0.0/12 10.0.0.0/8"
while true; do
date
#sshuttle --dns -r hk $nets
#echo enable dns
sshuttle --dns -r k8s $nets
#sshuttle --dns -r avl $nets
#sshuttle --dns -r sshd.tyio.net $nets
sleep 1
#echo disable dns
#sshuttle -r avl $nets
#sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment