LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2007, 02:52 AM   #1
kishore2k4
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
proftpd and iptables trouble


I am having trouble accessing proftpd through iptables. I've set up rules to allow tcp connections on ports 20 and 21. When I make a ftp connection the client says "Connected to abcd.com" and thats it no user prompt no nothing. I am using the default proftpd.conf that came with the installation. The strange thing is when I stop iptables everything works fine including logging and active file transfers. What could be the problem?


Rules copied from webmin for Incomming Packets(INPUT)
Accept If input interface is lo
Accept If protocol is TCP and destination ports are 80,443
Accept If protocol is TCP and destination ports are 20,21
Accept If protocol is TCP and destination ports are 22,25,3306,10000
Drop Always

Last edited by kishore2k4; 10-10-2007 at 02:19 PM.
 
Old 10-10-2007, 11:12 AM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
You should post your iptables configuration so that others can verify.
 
Old 10-14-2007, 11:12 PM   #3
splunk
Member
 
Registered: Jan 2007
Location: PA, USA
Distribution: Ubuntu Jaunty (9.04)
Posts: 31

Rep: Reputation: 16
Need to open up some more ports

Look through your proftpd.conf file for PassivePorts and note the ports listed. Now add a rule to Iptables to open those ports.

Look for a line similar to this in proftpd.conf:
PassivePorts 12345 12350

Add this line (change IP address and port numbers as needed) to iptables:
-A INPUT -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 12345:12350 -j ACCEPT
 
  


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
iptables trouble Dr Strangelove Linux - Software 1 11-13-2006 08:14 PM
proftpd blocked by router and iptables leosgb Linux - Networking 7 04-10-2006 07:41 PM
IPTABLES trouble scjvsTP Linux - Networking 1 10-21-2005 10:32 PM
ProFTPD giving me trouble. freakydude Mandriva 2 08-31-2003 04:47 PM
Trouble with Proftpd and anonymous logins on Mandrake 9 carlmenezes Linux - Software 6 02-25-2003 11:29 PM

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

All times are GMT -5. The time now is 04:36 AM.

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