Linux firewall

From thelinuxwiki
Jump to: navigation, search

check ip forwarding status

cat /proc/sys/net/ipv4/ip_forward

set ip forwarding ON

echo 1 > /proc/sys/net/ipv4/ip_forward
*** does not survive reboot***

set ip forwarding ON during BOOT

add line to /etc/sysctl.conf:

net.ipv4.ip_forward = 1