cat /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_forward=1
echo 1 > /proc/sys/net/ipv4/ip_forward
Or permanently:
/etc/sysctl.conf:
net.ipv4.ip_forward = 1
cat /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_forward=1
echo 1 > /proc/sys/net/ipv4/ip_forward
Or permanently:
/etc/sysctl.conf:
net.ipv4.ip_forward = 1