linux iptables相关

iptables -A INPUT -p udp --dport 90 -j ACCEPT
iptables -A INPUT -p tcp -m state --state ESTABLISHED -m tcp --dport 8888 -j ACCEPT

service iptables save

service iptables restart

验证修改结果:
iptables -L-n

查看活动udp链接
netstat -au

查看活动tcp链接
netstat -at
posted @ 2017-06-22 09:48  dyfisgod  阅读(118)  评论(0编辑  收藏  举报