linux防火墙解封某端口

首先,使用netstat –tunlp查看是否23端口被防火墙封掉了:

image

再使用iptables修改设置,

# iptables -I INPUT -p tcp --dport 23 –jACCEPT
# iptables -I INPUT -p udp --dport 23 –jACCEPT
# service iptables save
# service iptables restart

image

使用service iptables save保存设置,然后service iptables restart重启防火墙。搞定!

posted @ 2015-08-24 17:44  绿色的麦田  阅读(583)  评论(0编辑  收藏  举报