LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2011, 07:48 AM   #1
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Rep: Reputation: 15
Problem with ftp and IPtables on a server


I have a pure-ftp setup on a server and I am having problems trying to connect.

With Iptables on:
- I can connect to the ftp from my own server: ftp localhost
- I cannot connect to the ftp from remote machine it says:
Error: Connection timed out
Error: Failed to retrieve directory listing


with Iptables off:
- I can connect to the ftp from my own server: ftp localhost
- I also can connect fine from a remote machine.


I need iptables to be on and I don't know what happen. It says that user and password authentication was ok, etc then it times out.



Can anyone here help me ?


thanks
 
Old 08-09-2011, 08:27 AM   #2
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
modprobe ip_conntrack_ftp did the trick..

My question now is. Do I need to run modprobe ip_conntrack_ftp every time my server reboots ?


Thanks
 
Old 08-10-2011, 12:35 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by g_paschoal View Post
Do I need to run modprobe ip_conntrack_ftp every time my server reboots ?
Not really. Just add the command to your startup scripts.

Or better yet, find out the proper distro-specific way to automate module loading on the distro you're using.
 
  


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 rules for an FTP server jsmith6 Slackware 0 07-30-2009 03:58 PM
iptables rules for web server email server,ftp and ssh,please help lightwing Linux - Networking 1 03-25-2009 08:58 PM
DNATing ftp server with iptables boToo Linux - Networking 5 09-13-2007 06:42 AM
ftp server + iptables ddaas Linux - Security 14 03-27-2006 09:46 AM
FTP server w/ IPTables clergykid Linux - Security 2 02-09-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 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