First off, I had to enable routing by uncommenting the following line in /etc/sysctl.conf
net.ipv4.ip_forward=1
I then had to set up IPTables for NAT with the following lines
sudo iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface wlan0 -j ACCEPT
Finally, Linux Mint had an iptables-save package for persisting the rules defined in IPTables.
I saved the IPTables rules using: sudo service iptables save
and I verified that they were in there by looking at the file /etc/iptables/rules.v4
net.ipv4.ip_forward=1
I then had to set up IPTables for NAT with the following lines
sudo iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface wlan0 -j ACCEPT
Finally, Linux Mint had an iptables-save package for persisting the rules defined in IPTables.
I saved the IPTables rules using: sudo service iptables save
and I verified that they were in there by looking at the file /etc/iptables/rules.v4
No comments:
Post a Comment