05/25: Linux > Ubuntu forwarding IPv4 for routing
Category: Linux tips
Posted by: hajime osako
worka: Ubuntu enable ipv4 forwarding
cat /proc/sys/net/ipv4/ip_forward
or
sysctl net | grep ip_forward
0=disabled
1=enabled
So add this to the /etc/sysctl.conf file
net.ipv4.ip_forward=1
cat /proc/sys/net/ipv4/ip_forward
or
sysctl net | grep ip_forward
0=disabled
1=enabled
So add this to the /etc/sysctl.conf file
net.ipv4.ip_forward=1