启用IP路由转发
来自三线的随记
enable ipv4.ip_forward
临时
echo 1 > /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_forward=1
永久
/etc/sysctl.conf ---> net.ipv4.ip_forward=1
sysctl -p /etc/sysctl.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_forward=1
/etc/sysctl.conf ---> net.ipv4.ip_forward=1
sysctl -p /etc/sysctl.conf