To check current status of IP forward by one of following commands:
- sysctl net.ipv4.ip_forward
- cat /proc/sys/net/ipv4/ip_forward
To enable IP forward by one of the following methods:
- sysctl -w net.ipv4.ip_forward=1
- echo 1 > /proc/sys/net/ipv4/ip_forward
- vi /etc/sysctl.conf
net.ipv4.ip_forward=1
No comments:
Post a Comment