删除一条nat 规则
iptables -t nat -D POSTROUTING 1
让openstack 虚拟机上网的规则
iptables -t nat -A POSTROUTING -s 172.28.101.111/255.255.255.0 -o ens33 -j MASQUERADE
开启路由转发
echo "1" > /proc/sys/net/ipv4/ip_forward
删除一条nat 规则
iptables -t nat -D POSTROUTING 1
让openstack 虚拟机上网的规则
iptables -t nat -A POSTROUTING -s 172.28.101.111/255.255.255.0 -o ens33 -j MASQUERADE
开启路由转发
echo "1" > /proc/sys/net/ipv4/ip_forward