How to disable IP forwarding?
by Jason.nix from LinuxQuestions.org on (#6DJSN)
Hello,
Which of the following commands is OK to disable IP forwarding:
Code:# echo 0 > /proc/sys/net/ipv4/ip_forwardOr:
Code:# nano /etc/sysctl.conf
net.ipv4.ip_forward=1
# sysctl -p
Thank you.
Which of the following commands is OK to disable IP forwarding:
Code:# echo 0 > /proc/sys/net/ipv4/ip_forwardOr:
Code:# nano /etc/sysctl.conf
net.ipv4.ip_forward=1
# sysctl -p
Thank you.