You are on page 1of 1

Configure packet forwarding from interface vboxnet0 to eth0.

Follow the steps mentio ned below : 1) Add the following iptable rules from host machine's command line : iptables -A FORWARD -o wlan0 -i vboxnet0 -s 192.168.10.0/24 -m conntrack --ctsta te NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE 4) Add the following entries in /etc/sysctl.conf of host and run sysctl -p in host command line : net.ipv4.ip_forward = 1 net.ipv4.conf.all.proxy_arp = 1

You might also like