Skip to content

Instantly share code, notes, and snippets.

@SkaTeMasTer
Created December 26, 2017 07:49
Show Gist options
  • Save SkaTeMasTer/17e3f533dbb5aee3f72a42bf378cf7e0 to your computer and use it in GitHub Desktop.
Save SkaTeMasTer/17e3f533dbb5aee3f72a42bf378cf7e0 to your computer and use it in GitHub Desktop.
We lost connection on VPN tunnel. So let us not start leaking our local packets..
#!/bin/sh
iptables -t nat -D POSTROUTING -o tun0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment