ivytony Posted March 27, 2008 Share Posted March 27, 2008 I followed this tutorial here http://articles.slicehost.com/2008/1/30/centos-setup-page-1 to set up my iptables. However, I found I couldn't access FTP server anymore. I then came across this article http://www.cyberciti.biz/faq/iptables-open-ftp-port-21/, but I am still unable to access FTP server after following the second tutorial article. I am wondering how to set the iptables to allow FTP connection. I'm using CentOS 5. Link to comment https://forums.phpfreaks.com/topic/98090-how-to-set-iptables-rules-to-allow-ftp-port-21-20/ Share on other sites More sharing options...
neylitalo Posted March 27, 2008 Share Posted March 27, 2008 iptables -I input 2 -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT iptables -I input 2 -p tcp -m state --state NEW -m tcp --dport 20 -j ACCEPT Link to comment https://forums.phpfreaks.com/topic/98090-how-to-set-iptables-rules-to-allow-ftp-port-21-20/#findComment-501881 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.