iptables规则为:
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE

我的vps的系统为centos7,我未启用iptables,而是使用firewalld.