compass-core/vagrant/enable-nat.sh
Xicheng Chang 2b161519be Vbox for compass
Change-Id: Ibb08d9543af8af8d3ca4aedf45ba3fe5ae263bd4
2015-04-30 11:01:44 -07:00

9 lines
226 B
Bash
Executable File

#!/bin/bash
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -F
sudo iptables -t nat -F
sudo iptables -t mangle -F
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth1 -j ACCEPT