04-05-2019, 01:41 PM
I had this in my notes from a while back that is supposed to enable Router mode.
Code:
- Router mode
1) sudo nano /etc/sysctl.conf
delete the "#" on #net.ipv4.ip_forward=1
2) sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
3) sudo nano etc/rc.local
add the following above "exit 0"
iptables-restore < /etc/iptables.ipv4.nat
/etc/init.d/hostapd start
/etc/init.d/dnsmasq start