Skip to content

Instantly share code, notes, and snippets.

@Klowner
Created February 8, 2015 14:37
Show Gist options
  • Save Klowner/0069ef5468a9b9404322 to your computer and use it in GitHub Desktop.
Save Klowner/0069ef5468a9b9404322 to your computer and use it in GitHub Desktop.
Archlinux nat virtual bridge interface
Description="Virtualbox Routed Bridge"
Interface=vnet0
Connection=bridge
IP=static
BindsToInterfaces=()
Address=172.32.0.1/24
ExecUpPost="iptables -t nat -I POSTROUTING -s 172.32.0.0/24 -j MASQUERADE || true"
ExecDownPre="iptables -t nat -D POSTROUTING -s 172.32.0.0/24 -j MASQUERADE || true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment