Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 27th March 2008, 04:16
dealspiggy dealspiggy is offline
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to set iptables rules to allow FTP port 21, 20?

I followed this tutorial here http://articles.slicehost.com/2008/1...s-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 adding the rules from the second tutorial article.

I am wondering how to set the iptables to allow FTP connection.

I'm using CentOS 5.
Reply With Quote
Sponsored Links
Old 27th March 2008, 15:51
topdog topdog is offline
Senior Member
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts

I have not read your links, but i am sure you can use connection tracking to get your connection to work

You need to allow connections to port 21, the load the module nf_conntrack_ftp the have a rule allowing established and related connections in.
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 20:38
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 12:51
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 22:42
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40
Website users? ctroyp General 25 6th January 2006 19:02

All times are GMT +2. The time now is 18:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.