IP Tables Essentials
Add Masquerade for outbound traffic on eth0
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Save IP Tables Rules
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
Install Rules on Boot
sudo nano /etc/rc.local
add above exit 0
iptables-restore < /etc/iptables.ipv4.nat
Related
- dnsmasq Essentials
- Linux IP Essentials
- Enable IP Forwarding in Linux
- /etc/ssh/sshd_config Essentials
- Cisco AnyConnect VPN Client on Raspberry Pi
- chmod Essentials
- Linux Users
- Linux Groups