how to disable ip forwarding?
Hi,
I m using SUSE Enterprise Server 9. Not sure if anyone could guide me on how to disable the IP forwarding. went to /proc/sys/net/ipv4/conf/eth0/accept_redirects to set it to 0 and /sbin/sysctl -w net.ipv4.conf.eth1.accept_redirects=0 but once i reboot the system it will enable again. how can i set it permanently. |
Don't you want to change
/proc/sys/net/ipv4/ip_forward? Either disable forwarding in YaST2 or edit /etc/sysconfig/sysctl. |
other than that ,i also need to disable the /proc/sys/net/ipv4/conf/eth0/accept_redirects, send_ redirects and accept_source_route. Do u know what should i do to permantently disable them.
|
I grep'ed the files in /etc that source /etc/sysconfig/sysctl:
Code:
/etc/rc.d/boot.d/S08boot.localfs:. /etc/sysconfig/sysctl Code:
# |
These settings may be better instead of per interface settings:
Code:
echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects |
All times are GMT -5. The time now is 08:49 PM. |