Skip to content

Instantly share code, notes, and snippets.

@openstacker
Created August 16, 2018 00:19
Show Gist options
  • Select an option

  • Save openstacker/f33df3670633be7dd6b64d7ee24327bb to your computer and use it in GitHub Desktop.

Select an option

Save openstacker/f33df3670633be7dd6b64d7ee24327bb to your computer and use it in GitHub Desktop.
ifconfig br-ex 172.24.4.1/24
iptables -t nat -I POSTROUTING -s 172.24.4.0/24 -j MASQUERADE
iptables -I FORWARD -s 172.24.4.0/24 -j ACCEPT
iptables -I FORWARD -d 172.24.4.0/24 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment