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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.