Netgate SG-1000 microFirewall

Author Topic: PfSense FTP issue  (Read 236 times)

0 Members and 1 Guest are viewing this topic.

Offline FinlayDaG33k

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
PfSense FTP issue
« on: July 17, 2017, 06:17:19 am »
Hii There,

I just installed PfSense as my old DD-WRT router was not capable of handling my new internet speed.
However, when I wanted to port forward my FTP server (yes yes yes, I know I shouldn't be using FTP as it's old and insecure, blablabla), I came by a little issue:
Code: [Select]
Server sent passive reply with unroutable address. Using server address instead.
I've done my fair share of looking on the forums, and pretty much everything came down to one solution:
Quote
Port forward the ports for the passive mode

However, here comes the fun part:

It will be a huge pain in the buttocks to do so.
Why you ask?
Well... I don't really have just one FTP server running here I need to access, I have a bunch of them running I need to access.
So opening all the ports for all servers will be a pain in the buttocks.

So my question is: How can I do this without opening all the ports for the passive mode?
The odd part in my opinion: DD-WRT worked perfectly fine with opening just the FTP port, yet, PfSense doesn't like this.


I hope somebody can help me, because opening all the passive ports, for about 10-15 servers, can become a nightmare.


Cheers!

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 14267
  • Karma: +1329/-191
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: PfSense FTP issue
« Reply #1 on: July 17, 2017, 04:04:57 pm »
dd-wrt has helper/proxy.  Pfsense helper proxy for ftp was removed a few versions back.. A package was created to put back the active mode client back in.

If you ran your servers in active mode, then you wouldn't have any issues on your side.  Just need to forward ports you want to use for control channel to your servers, since the servers would then be making the connection back to the client it wouldn't be a problem on your side.
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x 2.4.1-RELEASE on VM esxi 6.5 (home)

Offline FinlayDaG33k

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: PfSense FTP issue
« Reply #2 on: July 18, 2017, 05:16:56 am »
So if I understand you correctly, I should put my server in active mode, then just forward port 21 and it should work?

Why was the helper proxy for FTP removed?
It is such a helpful (and in my opinion, pretty neccessary) thing to have.

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 14267
  • Karma: +1329/-191
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: PfSense FTP issue
« Reply #3 on: July 18, 2017, 05:48:38 am »
Because FTP should of died years ago.. Just like how they removed the PPTP server.. These protocols are NOT secure!  And if you use ftps the helper can not work because it can not see the control channel info.  If you use sftp as you should - then you have no need for it.

If you really want to run ftp, you don't really need a helper..  Active server behind does not need it.  BTW your clients have to select active, your server just needs to allow it.  Passive you can forward the ports.  And even active client you could do - since the source port is 20 you could allow source port 20 traffic into your client.

This can be a pain if you have multiple clients - which is why they created the ftp client package you can add if you just can not wake up and smell the coffee of the century your in and use a secure way to transfer your files ;)  You do understand sftp is FREE just like ftp, easier and SECURE!!!

Runs on any OS.. You running an ftp server is on you..  So you choose to be not secure..
« Last Edit: July 18, 2017, 05:51:44 am by johnpoz »
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x 2.4.1-RELEASE on VM esxi 6.5 (home)

Offline FinlayDaG33k

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: PfSense FTP issue
« Reply #4 on: July 18, 2017, 09:06:34 am »
Hii there,

I do understand SFTP is safer, but for now, FTP is the way for me to roll (I am, however, looking into SFTP to replace FTP in the near future, just didn't get it in my head just yet, so there is still hope).

Thanks for the information, I can continue for now :)

Offline JKnott

  • Hero Member
  • *****
  • Posts: 893
  • Karma: +29/-4
    • View Profile
Re: PfSense FTP issue
« Reply #5 on: July 18, 2017, 09:45:07 am »
Quote
Because FTP should of died years ago.

I don't have a problem with anonymous FTP servers.  They're easy to set up for making files publicly available.

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 14267
  • Karma: +1329/-191
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: PfSense FTP issue
« Reply #6 on: July 18, 2017, 12:35:53 pm »
And all it does is promote continue use of dead protocol.. Why not just host your files anonymous via http?  That is how I provide my iperf3 compiles for windows to the public internet.
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x 2.4.1-RELEASE on VM esxi 6.5 (home)