Skip to content

Instantly share code, notes, and snippets.

@tfmeneses
Created November 17, 2020 00:16
Show Gist options
  • Save tfmeneses/46f19f492e3d9105bdfa8400fa92e758 to your computer and use it in GitHub Desktop.
Save tfmeneses/46f19f492e3d9105bdfa8400fa92e758 to your computer and use it in GitHub Desktop.
iptables.txt
/sbin/iptables -t nat -A POSTROUTING -o br1 -j MASQUERADE
/sbin/iptables -A FORWARD -i br1 -o vnet0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i vnet0 -o br1 -j ACCEPT
iptables -n -L -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment