e3s10 网络管理

1. host上设置

iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
# https://www.unixtutorial.org/how-to-make-ip-forwarding-permanent-in-linux
# 将Linux系统作为路由或者VPN服务就必须要开启IP转发功能
# 临时开启方法:
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -w net.ipv4.ip_forward=1
# packet forwarding http://linux-training.be/security/ch10.html
sysctl -p
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.3/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide-General_System_Tuning-Setting_persistent_tuning_parameters.html

 

posted @ 2019-07-08 15:07  lvmxh  阅读(193)  评论(0编辑  收藏  举报