LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't ftp into server when outside the network (https://www.linuxquestions.org/questions/linux-networking-3/cant-ftp-into-server-when-outside-the-network-423888/)

Ab3n 03-11-2006 03:06 PM

Can't ftp into server when outside the network
 
I have a slack 10.2 machine with proftpd setup, but whenever I am outside my network I have trouble getting into the server. I have ports 20 and 21 forwarded fine, I'm using active mode (never could get passive mode to work) and here is the error smartftp gives me:

Code:

[14:00:07] 230 User hewitsonj logged in.
[14:00:07] SYST
[14:00:07] 215 UNIX Type: L8
[14:00:07] FEAT
[14:00:08] 211-Features:
[14:00:08]  MDTM
[14:00:08]  REST STREAM
[14:00:08]  SIZE
[14:00:08] 211 End
[14:00:08] PWD
[14:00:08] 257 "/shares/www" is current directory.
[14:00:08] TYPE A
[14:00:08] 200 Type set to A
[14:00:16] PORT 129,82,18,61,6,189
[14:00:16] 200 PORT command successful
[14:00:16] LIST -aL
[14:00:56] Timeout (40s).
[14:00:56] Active Help: http://www.smartftp.com/support/kb/index.php/74
[14:00:56] Client closed the connection.

It appears as though I'm connected and logged in, but I just can't browse any files!!! Again, everything works fine when within the network...Thanks!

sipsipi 03-11-2006 04:06 PM

If you are using iptables, or perhaps even if not, make sure you have:

prompt# lsmod

ip_conntrack 56989 4 ip_nat_ftp,ip_nat,ip_conntrack_ftp,ipt_state
nfnetlink 10713 2 ip_nat,ip_conntrack

something like the above.

You are prob missing the NAT module for FTP.

Good luck young grasshopper.

Ab3n 03-11-2006 04:09 PM

This is what I get when I type lsmod:

Code:

Module                  Size  Used by    Not tainted
uhci                  24284  0  (unused)
usbcore                59148  1  [uhci]
8139too                13928  1
mii                    2272  0  [8139too]
crc32                  2880  0  [8139too]
pcmcia_core            39172  0
ide-scsi                9392  0
agpgart                45508  0  (unused)


Ab3n 03-20-2006 06:54 PM

This is the error I get from FileZilla:

Code:

Response:        200 PORT command successful
Command:        LIST
Error:        Timeout detected!
Error:        Could not retrieve directory listing



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