sysctl -w net.ipv4.ip_forward=1
sudo sed -i '/#net.ipv4.ip_forward=1/s/^#//g' /etc/sysctl.conf
sysctl -a | grep -w net.ipv4.ip_forward
cat /etc/sysctl.conf | grep -w net.ipv4.ip_forward
Related[edit]
See also[edit]
sysctl, -a, -p, -w
, vm.swappiness
, /etc/sysctl.conf
, /etc/sysctl.d/
, net.ipv4.ip_forward
, OOM, Kernel.shmmax
, prlimit