Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

ProFTPD Passive Transfers - Inexplicable Wierdness

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2006, 04:47 PM
Default ProFTPD Passive Transfers - Inexplicable Wierdness



I wasn't sure where else to post this, so this seemed like a good spot.
One of our customers was having difficulties establishing an active
FTP connection with our server, so I decided to attempt a passive
connection. The passive connection worked, but I am a little confused
as to why. I am using the ProFTPD ftp server that comes included with
the ClarkConnect Gatway package. It was my understanding that passive
connections had to be explicitly configured. In other words, you would
have to open up a range of unprivileged ports on the router and direct
them to the ftp server. I haven't done this, but the ftp transfer is
working correctly. How is this possible? Is it possible that the
router is opening these ports up on the fly? A quick check of netstat
shows that the data connection has been opened up on unprivileged ports
on both sides. I just want to know how this is working. Thanks.

-Vincent



Vincent
Reply With Quote
  #2  
Old 12-01-2006, 02:48 PM
Andy Furniss
Guest
 
Posts: n/a
Default Re: ProFTPD Passive Transfers - Inexplicable Wierdness

Vincent wrote:
> I wasn't sure where else to post this, so this seemed like a good spot.
> One of our customers was having difficulties establishing an active
> FTP connection with our server, so I decided to attempt a passive
> connection. The passive connection worked, but I am a little confused
> as to why. I am using the ProFTPD ftp server that comes included with
> the ClarkConnect Gatway package. It was my understanding that passive
> connections had to be explicitly configured. In other words, you would
> have to open up a range of unprivileged ports on the router and direct
> them to the ftp server. I haven't done this, but the ftp transfer is
> working correctly. How is this possible? Is it possible that the
> router is opening these ports up on the fly? A quick check of netstat
> shows that the data connection has been opened up on unprivileged ports
> on both sides. I just want to know how this is working. Thanks.


It could be the netfilter ftp conntrack/nat helpers - grep your .config
or maybe lsmod and see what shows up.

Andy.
Reply With Quote
  #3  
Old 12-28-2006, 09:36 PM
jscape@gmail.com
Guest
 
Posts: n/a
Default Re: ProFTPD Passive Transfers - Inexplicable Wierdness

I would suggest looking at the FTP server logs. The issue is likely
one of the following.

1. The machine your FTP server is on is behind a firewall and does not
have permission to connect to the active IP/port used by the FTP
client.

2. The client is behind a firewall and is unable to accept active
connections.

3. The client is using NAT and is reporting it's internal IP address
when sending the PORT command instead of the IP address of the external
NAT address.

In all cases look in your logs for the PORT command to see what IP/port
is being sent by the client. This will be in the following form

PORT x,x,x,x,y1,y2

x is the comma separated IP address and the port is (y1 * 256) + y2

Van Glass
JSCAPE
Managed File Transfer and Security Solutions
http://www.jscape.com/secureftpserver/

Vincent wrote:
> I wasn't sure where else to post this, so this seemed like a good spot.
> One of our customers was having difficulties establishing an active
> FTP connection with our server, so I decided to attempt a passive
> connection. The passive connection worked, but I am a little confused
> as to why. I am using the ProFTPD ftp server that comes included with
> the ClarkConnect Gatway package. It was my understanding that passive
> connections had to be explicitly configured. In other words, you would
> have to open up a range of unprivileged ports on the router and direct
> them to the ftp server. I haven't done this, but the ftp transfer is
> working correctly. How is this possible? Is it possible that the
> router is opening these ports up on the fly? A quick check of netstat
> shows that the data connection has been opened up on unprivileged ports
> on both sides. I just want to know how this is working. Thanks.
>
> -Vincent


Reply With Quote
Reply

Tags
inexplicable, passive, proftpd, transfers, wierdness

Thread Tools
Display Modes

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


All times are GMT. The time now is 10:56 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.