ProFTPd, Disabling the Passive Mode


Recommended Posts

I had this issue in the past and found it wasn't worth the effort involved in fudging this to work.

What I did instead was use FTP over SSH by merely installing OpenSSHd. With this:

1. You only need to forward port 22

2. Most FTP clients support FTP over SSH

3. It's pretty much plug and play - start the service and you can start logging in with your users :)

And why would you want to disable it?? Have we not gone over this? Have your users use ACTIVE connections! As I thought I had already told you if your having issues with your router doing the passive for you.. Just manually set it up.

Set proftpd to use a specific range for its passive ports

http://www.proftpd.org/docs/directives/lin...ssivePorts.html

PassivePorts 49152 65534

I wold not use such a large range.. You only need a range large enough to handle the number of concurrent users you might have.. Something like 65000 65050 should be more than enough.

Now forward this range on your router to your ftp server. Done!

I had this issue in the past and found it wasn't worth the effort involved in fudging this to work.

What I did instead was use FTP over SSH by merely installing OpenSSHd. With this:

1. You only need to forward port 22

2. Most FTP clients support FTP over SSH

3. It's pretty much plug and play - start the service and you can start logging in with your users :)

Mind if you give me a small tutorial on setting that up or link me to a site that'll explain setting up FTP access

And why would you want to disable it?? Have we not gone over this? Have your users use ACTIVE connections! As I thought I had already told you if your having issues with your router doing the passive for you.. Just manually set it up.

Set proftpd to use a specific range for its passive ports

http://www.proftpd.org/docs/directives/lin...ssivePorts.html

PassivePorts 49152 65534

I wold not use such a large range.. You only need a range large enough to handle the number of concurrent users you might have.. Something like 65000 65050 should be more than enough.

Now forward this range on your router to your ftp server. Done!

Yeah and I've done that with no luck, it dosnt work.

Is your server still open? And you were going to give me access to your router?

So your users are not smart enough to not enable passive in IE, or to uncheck it.. or use a real ftp client to access site so they can set passive or active based on site, etc..

But you going to have them use a SSH tunnel to get to your ftp server?? Yeah that makes sense :rolleyes:

if your going to go the SSH route -- why not just setup SFTP? the openssh will provide SFTP, and kill 2 birds with 1 stone.. BTW yes ftp tunneled thru ssh or SFTP is way moe secure than FTP but it does come with a performance hit as its price.. You have the added overhead of encryption.

BTW -- normally in FTP over SSH, only the control traffic, ie port 21 is secured. The data connection would be in the clear and would still be either a passive or active connection.. So doing a ssh ftp tunnel is not going to fix your passive issue.

Unless your using clients that understand it, etc.

Ok I just took a look at that routers controls the dir-655 right? What level of SPI are you doing on that?

Under advanced, firewall -- I would assume its set to "Port And Address Restricted" as the default.. Change it to "Endpoint Independent" atleast for testing.

Ok since you had sent me the login info for your router.. I did some testing.. BTW -- I don't show your proftpd.conf being changed since 6/3 so when exactly did you configure the passive ports it uses?? Nor did I see any forwards for the passive ranges.

Anyway -- it seems your problem is your SPI firewall. I turned it off and passive works just fine!! With no need of a manual forward of the passive ports.

Retrieving directory listing...

TYPE A

200 Type set to A

PASV

227 Entering Passive Mode (82,13,132,223,247,198)

LIST -a

150 Opening ASCII mode data connection for file list

226 Transfer complete

Directory listing successful

PASV

227 Entering Passive Mode (82,13,132,223,247,183)

LIST -a

150 Opening ASCII mode data connection for file list

226 Transfer complete

Directory listing successful

If I enabled the passive range as a forward -- it would sometimes work, sometimes not.. But once I turned off the SPI it works every single time I have connected.

To be honest you really have little use for their added SPI checks since your behind a NAT anyway.. Only traffic that you forward or is in answer to something you request will get thru.

From the help on your router.

Enable SPI

SPI ("stateful packet inspection" also known as "dynamic packet filtering") helps to prevent cyberattacks by tracking more state per session. It validates that the traffic passing through that session conforms to the protocol. When the protocol is TCP, SPI checks that packet sequence numbers are within the valid range for the session, discarding those packets that do not have valid sequence numbers.

Whether SPI is enabled or not, the router always tracks TCP connection states and ensures that each TCP packet's flags are valid for the current state.

So turning that off just disables some extra checks.. its really still doing SPI -- ie its checking the state.. Its just not doing added BS checks on the packets.

Your welcome -- if you don't mind.. leave my access open.. I'll check on your collection now and then ;) I'm a HUGE Scifi fan myself ;)

No problem mate, help yourself but dont expect any fast downloads :) (70KB/s max :()

I delete episodes while I watch them on the Popcorn Hour so keep an eye out for stuff.

I'm putting in a 1TB hard drive soon so hopefully then I wont need to delete stuff.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • low latency mode is still bugged and causing bootup times slow to a crawl. To fix, you have to disable the feature with vivetool. Seems as though it's not rolled out to a lot of people yet since I've only been able to find only a handful of people that are having issues.
    • I would recommend the Nothing 2a. The battery life is awesome, 2 or 3 days without going into battery power mode. The only thing that I've been looking into recently is that it doesn't "support" Graphene OS. I'm pretty sure there is a way, I just need to do some more looking.
    • You'd have to show me an example of a listing that says Gen 1, usually i'd expect that to mean Snapdragon Gen 1 (a type of chipset, which the Pixels don't use). Pixel 7 - White - 128gb - Unlocked - 85%+ battery - Grade B+ - $159 with free delivery - https://www.ebay.com/itm/398046617206 Pixel 7 - Obsidian - 128gb - Unlocked - 80%+ battery - Very Good - $157 with free delivery - https://www.ebay.com/itm/355617734563 Both look to be sold by companies with good feedback, dealing with refurbished phones and state the phones are unlocked with a clean IMEI. Obviously I can't vouch for either company though, but the listings look good in my opinion.
    • Because Chrome is doing it. And no one said anyone had to update immediately. That's silly. They could update every day for all I care as long as it's fast, and the next time the browser restarts, you're good. And the basic point is not to tee it up for bigger updates. As it is right now, all the windows I had open reopen anyway except inprivate.
    • Why? Does anybody actually want this? The constant need to close all browser sessions and wait for a new version to install, just so that there’s a integrated coupon manager feels like a waste of everyone’s time
  • Recent Achievements

    • Week One Done
      davidbazooked earned a badge
      Week One Done
    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
  • Popular Contributors

    1. 1
      +primortal
      515
    2. 2
      PsYcHoKiLLa
      185
    3. 3
      +Edouard
      159
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!