Skip to content

Instantly share code, notes, and snippets.

@aziascreations
Created March 9, 2017 22:36
Show Gist options
  • Save aziascreations/0bd0a64833960eef07dcca9b7dd22d80 to your computer and use it in GitHub Desktop.
Save aziascreations/0bd0a64833960eef07dcca9b7dd22d80 to your computer and use it in GitHub Desktop.
Debian gateway quickstart
#!/bin/sh
# Gateway Stuff
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment