July 16, 2006

incompatibility shorewall in ubuntu?

 

although we’ve been add the parameter in /etc/shorewall/masq , ubuntu still can’t function as a masquerade pc router. we must change the value of ip forwarding in /proc/sys/net/ip_v4/ip_forward manually, with a popular command :
box@ubuntu#echo 1 > /proc/sys/net/ip_v4/ip_forward

* just for documentation *

update info :
value on ip_forward back to zero again after restart, to fix this, change ip_forward option to ‘yes’ on /etc/network/option