LNMP开启防火墙后无法访问,vsftpd也无法连接

开放防火墙的80端口

#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
然后保存:
#/etc/rc.d/init.d/iptables save

 

vsftpd需要开发21端口,并且使用主动模式连接

#/sbin/iptables -I INPUT -p tcp --dport 21 -j ACCEPT

#/etc/rc.d/init.d/iptables save

 

posted @ 2017-06-09 16:47  day959  阅读(228)  评论(0编辑  收藏  举报