Skip to content

Instantly share code, notes, and snippets.

@sjl070707
Created April 25, 2018 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjl070707/77ec99132c1d9e6df075c810d7de2f0a to your computer and use it in GitHub Desktop.
Save sjl070707/77ec99132c1d9e6df075c810d7de2f0a to your computer and use it in GitHub Desktop.
openstack openvpn save masquerade
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
iptables-save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment