iptables 容許端口,端口映射,刪除iptables

映射端口eth1爲外網口tcp

iptables -t nat -A PREROUTING -i eth1 -p tcp -d 183.61.146.150 --dport 80 -j DNAT --to-destination 192.168.0.200:80

查看ide

iptables -L -n --line-number

刪除code

iptables -D INPUT 1

容許ip

iptables -I INPUT -p tcp --dport 7080 -j ACCEPT
相關文章
相關標籤/搜索