Skip to content

Instantly share code, notes, and snippets.

@msnodderly
Created July 29, 2012 06:10
Show Gist options
  • Save msnodderly/3196343 to your computer and use it in GitHub Desktop.
Save msnodderly/3196343 to your computer and use it in GitHub Desktop.
Setup IP forwarding for OpenVPN EC2 instance
## Setup IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment