Passive FTP setup

5 posts / 0 new
Last post
#1 Tue, 08/26/2008 - 21:11
bhm8hwcm

Passive FTP setup

I am trying to get passive FTP setup but am not having luck.

I have added the following to the proftpd config file: PassivePorts 49152 65534

Doe it matter where exactly I put the above directive?

I am behind a nat so I opened up the ports 49152-65534.

Is there anything else I am to do? It does not work. Using PORT works fine.

Tue, 08/26/2008 - 22:34
Joe
Joe's picture

Your NAT device also needs to know about passive FTP. If it's Linux, that'd be the ip_conntrack_ftp kernel module.

modprobe ip_conntrack
modprobe ip_conntrack_ftp

--

Check out the forum guidelines!

Wed, 08/27/2008 - 06:25
bhm8hwcm

I am actually just behind a NAT router and have set up port forwarding there. Linux firewall is turned off.

Wed, 08/27/2008 - 06:35 (Reply to #3)
andreychek

Howdy,

The FTP server itself may need those two ip_conntrack modules Joe mentioned loaded as well.

If you run those two modprobe commands on it ("modprobe ip_conntrack" and "modprobe ip_conntrack_ftp"), does that help?
-Eric

Wed, 08/27/2008 - 15:39 (Reply to #4)
Joe
Joe's picture

<div class='quote'>I am actually just behind a NAT router and have set up port forwarding there. Linux firewall is turned off.</div>

Are you sure that device supports passive FTP through its NAT? Not all routers do.

--

Check out the forum guidelines!

Topic locked