Created
February 8, 2015 14:37
-
-
Save Klowner/0069ef5468a9b9404322 to your computer and use it in GitHub Desktop.
Archlinux nat virtual bridge interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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