Sentora Support Forums

Full Version: MasqueradeAddress
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi


We are new to Sentora and are setting up our first server.   So far the review of this platform has been good.  One of the problems we have had so far is with FTP.   Our server sit behind a firewall and all have a 10.10.x.x. private address.   We do network address translation on the firewall to a real address.   When we try to ftp to the server from the outside of the network we get :

Server sent passive reply with unroutable address. Using server address instead.

Now normally we get past this by adding the following :



MasqueradeAddress 1.2.3.4


But when I add it and try to restart proftp it fails to restart.


The same goes if I try to specifically define which passiveftp ports to use. 

Any help would be great.
you need to forward PASV ports too in protpd not only port 21.
(02-26-2016, 11:40 PM)Me.B Wrote: [ -> ]you need to forward PASV ports too in protpd not only port 21.

So do port forwards and not NATs of those ports?
They need to be either nat or forwarded but most important not firewalled.
(02-27-2016, 12:58 AM)Me.B Wrote: [ -> ]They need to be either nat or forwarded but most important not firewalled.

Ok so when Sentora is installed what ports be default doe sit use for passive ftp?  FTP is normally port 20 and 21.   I did a scan and port 21 is closed.
port 21 need to be open for FTP.
(02-27-2016, 03:09 AM)Me.B Wrote: [ -> ]port 21 need to be open for FTP.

Ok so it is.   When I do a port scan says it is open .   But won't connect.
Did you you test first in local before using the WAN ip ? To be sure it's not a routing problem.
(02-27-2016, 05:36 AM)Me.B Wrote: [ -> ]Did you you test first in local before using the WAN ip ? To be sure it's not a routing problem.


Hello, first sorry my english, so, i had a similar problem with FTP of sentora, yesterday a created a AWS free t2.micro instance, using an elastic IP, (that is a Public static IP), but the instance have too a provate address, when i try to conect remotly vis FTP i get a pasive error (no remember exact error), the point is that the FTP was conecting to my public IP, but get request from my Provate IP.

Escenary:

Sentora 1.0.3
Ubuntu server 14.04 virtualized on Amazon AWS


Example:

Private IP: 192.168.1.10
Public IP: 208.1.1.1

FTP conect to 208.1.1.1 an spect a request from that IP, but get requets from 192.168.1.10 and that cause the error. Searching on google, the solution (i dont test it), was use filezilla FTP cliente and configure some paramters, so i search more and find a solution.


Firts the masquerade adresss is for NAT the PUBLIC IP TO THE PRIVATE IP, so that you know, u have to modify: /etc/proftpd/proftpd.conf file (in ubuntu)

MasqueradeAddress 208.1.1.1

there are my public IP.


HERE ARE THE MAGIC

But this only change not solve the problem, beacause the Pasive FTP functionality needs a Range of ports that you have to configure in the same file and of course open in your firewall too ad this line in the /etc/proftpd/proftpd.conf

PassivePorts 1024 1124



save changes, restart your FTP service:

sudo service proftpd restart

Try connect normally via FTP


NOTE: I have too a LAB virtual server (sentora 1.0.3 and ubuntu server 14.04.4) runing in virtualbox on windows 8.1 laptop, using DDNS to internet access, and this no need that config, FTP works with the sentora standar setup


Thats all, i hope tha this info help you, i kno that i have to mention just the port part but is not a particle problem so it can help more people.


Cheers, ciao.