ip forward

centos

vi /proc/sys/net/ipv4/ip_forward

ubuntu

vi /etc/sysctl.conf

sysctl -p 

原文地址:https://www.cnblogs.com/zhangeamon/p/5435564.html