LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2009, 03:45 PM   #1
arty
Member
 
Registered: Nov 2008
Posts: 66

Rep: Reputation: 17
after new iptables rules proftpd stopped working


i have just setup a firewall using iptables on centos 5.3
but there's an issue with ftp
i can connect and i can login
when i give command "ls"
it says entering passive mode
and afterwards it times out
do you know why?
i have port 21 open in my firewall but still....
 
Old 06-30-2009, 04:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
because FTP data doesn't use port 21, only FTP control does.

http://slacksite.com/other/ftp.html

If you use passive mode you'll need iptables to do connection tracking and permit "RELATED" connections, which will allow the FTP data side of the equation.
 
Old 06-30-2009, 04:15 PM   #3
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
yes, i can see the difference

so i want to use active not passive
how can i configure proftpd and iptables?
 
Old 06-30-2009, 04:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://www.sns.ias.edu/~jns/wp/2006/...-tracking-ftp/
 
Old 07-01-2009, 01:18 AM   #5
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
thanks, i think this will solve pretty much everything :-)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some iptables rules are not working on Ubuntu 8.10 server PossumJerky Linux - Security 1 02-04-2009 07:47 AM
iptables redirect stopped working hostatonce Linux - Networking 5 09-19-2008 07:11 AM
iptables script moved machine, stopped working dwynter Linux - Networking 12 02-05-2008 08:44 AM
IPTABLES rules not working right Bobbyd4 Linux - Security 2 04-03-2007 12:05 AM
iptables rules aren't working Kinstonian Linux - Networking 4 04-21-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration