User Tools

Site Tools


computers:firewall_configuration

This is an old revision of the document!


Firewall configuration

iptables masquerading

First enable IPv4 packet forwarding by editing /etc/sysctl.conf, uncomment the following line:

net.ipv4.ip_forward=1

Then add the following line to /etc/rc.local (so the rule is enabled on reboot):

iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o eth0 -j MASQUERADE

References

computers/firewall_configuration.1314259781.txt.gz · Last modified: 2011/08/25 16:09 by chkuo