LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with ftp and IPtables on a server (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-ftp-and-iptables-on-a-server-896346/)

g_paschoal 08-09-2011 07:48 AM

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

g_paschoal 08-09-2011 08:27 AM

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

win32sux 08-10-2011 12:35 AM

Quote:

Originally Posted by g_paschoal (Post 4437689)
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.


All times are GMT -5. The time now is 09:03 AM.