iptables常用命令二之如何删除nat规则
删除iptables nat 规则
删除FORWARD 规则:
iptables -nL FORWARD --line-number iptables -D FORWARD 1
删除一条nat 规则 删除SNAT规则
iptables -t nat -D POSTROUTING 1 iptables -t nat -D POSTROUTING 7
临时开启路由转发
echo "1" > /proc/sys/net/ipv4/ip_forward
让openstack 虚拟机上网的规则
iptables -t nat -A POSTROUTING -s 172.28.101.111/255.255.255.0 -o ens33 -j MASQUERADE