iptables相关的操作
1、iptables -t 表名 <-A/I/D/R> 规则链名 [规则号] <-i/o 网卡名> -p 协议名 <-s 源IP/源子网> --sport 源端口 <-d 目标IP/目标子网> --dport 目标端口 -j 动作
2、迁移相关的一些记录
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8000 -j DNAT --to 47.243.29.44:8000
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat --list --line-number

浙公网安备 33010602011771号