This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

MasqueradeAddress
#9
RE: MasqueradeAddress
(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.
Thanks given by:


Messages In This Thread
MasqueradeAddress - by Firmusera - 02-26-2016, 10:18 PM
RE: MasqueradeAddress - by Me.B - 02-26-2016, 11:40 PM
RE: MasqueradeAddress - by Firmusera - 02-27-2016, 12:44 AM
RE: MasqueradeAddress - by Me.B - 02-27-2016, 12:58 AM
RE: MasqueradeAddress - by Firmusera - 02-27-2016, 02:38 AM
RE: MasqueradeAddress - by Me.B - 02-27-2016, 03:09 AM
RE: MasqueradeAddress - by Firmusera - 02-27-2016, 03:17 AM
RE: MasqueradeAddress - by Me.B - 02-27-2016, 05:36 AM
RE: MasqueradeAddress - by ras_jack - 03-02-2016, 09:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)