启用IP路由转发

来自三线的随记

enable ipv4.ip_forward

Related knowledge points

sysctl: configure kernel parameters at runtime

临时设置

echo 1 > /proc/sys/net/ipv4/ip_forward

or

sysctl -w net.ipv4.ip_forward=1

永久设置

echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

不重启生效配置

sysctl -p /etc/sysctl.conf