I am trying to run a proftpd server on a SuSE Linux 7.3 system behind a NAT
router. The router is the property of my ISP and its port-configuration
cannot easily be changed. The TCP ports 21 and 53 and the UDP port 53 are
translated to the address 192.168.1.4 on my LAN. I have set up eth0:0 to be
192.168.1.4 on the proftpd system, and I can access the proftpd server from
within the LAN.
The proftpd server answers the address ftp.mydomain.dk, where 'mydomain' is
my registered domain name, when I access the ftp server from within the
LAN. I cannot access the proftpd server from the outside, however. I think
this is about the active/passive ftp problem, but this is my first attempt
to set up an ftp server, so I am not skilled in error-finding/correction
with ftp servers. How do I go about this?
It should be possible to run an ftp server with the Internet product I use.
I know that others are doing it.
Here is my /etc/proftpd.conf:
--------------------
ServerName "powered by SuSE Linux"
ServerType standalone
ServerAdmin ftpadm@davidlist.dk
MasqueradeAddress ftp.davidlist.dk
ServerIdent on "FTP Server ready"
DeferWelcome off
DefaultServer on
AuthPAM on
AuthPAMAuthoritative on
AuthPAMConfig proftpd
Port 21
Umask 022
User nobody
Group nogroup
On Saturday 04 May 2002 13:06, David List wrote: ...<snip>...
The proftpd server answers the address ftp.mydomain.dk, where 'mydomain' is my registered domain name, when I access the ftp server from within the LAN. I cannot access the proftpd server from the outside, however. I think this is about the active/passive ftp problem, but this is my first attempt to set up an ftp server, so I am not skilled in error-finding/correction with ftp servers. ...<snip>...
It seems I was right about the passive/active problem. Just got acces to a Linux prompt on another network (yes, I asked first). From a Linux client I can acces my ftp server. Before this I was trying from a Windows client, when trying from outside my own LAN. Can I do anything to overcome this problem from my own proftpd setup? Best regards, David List
Am Samstag, 4. Mai 2002 13:06 schrieb David List:
The proftpd server answers the address ftp.mydomain.dk, where 'mydomain' is my registered domain name, when I access the ftp server from within the LAN. I cannot access the proftpd server from the outside, however. I think this is about the active/passive ftp problem, but this is my first attempt to set up an ftp server, so I am not skilled in error-finding/correction with ftp servers. How do I go about this? Hope somebody can help. Thanks in advance.
please add "MasqueradeAddress <external IP>" to your proftpd config. Please also read: http://www.stonki.de/doc/ftp_info/ftp.htm http://www.stonki.de/doc/direktive_eng.htm#MasqueradeAddress cu stonki -- Deutsche ProFTPD Dokumentation: http://www.stonki.de EFNET: #proftpd
On Saturday 04 May 2002 15:54, Stefan Onken wrote:
please add "MasqueradeAddress <external IP>" to your proftpd config.
I had 'MasqueradeAddress ftp.mydomain.dk' in my /etc/proftpd.conf already. When I try changing that to 'MasqueradeAddress <externalIP>' nothing is changed as far as connecting from Windows clients go, but when accessing from a linux prompt, the connection dies as soon as I do an 'ls'.
Please also read:
http://www.stonki.de/doc/ftp_info/ftp.htm http://www.stonki.de/doc/direktive_eng.htm#MasqueradeAddress
I'll look into it. Thank you for answer. Best regards, David List
On Saturday 04 May 2002 15:54, Stefan Onken wrote:
please add "MasqueradeAddress <external IP>" to your proftpd config. Please also read: http://www.stonki.de/doc/ftp_info/ftp.htm http://www.stonki.de/doc/direktive_eng.htm#MasqueradeAddress
Problem solved. Initially, I had no acces to any Linux clients from outside my LAN when testing. I had to use MSIE as an ftp client. I got acces to a friends' Linux prompt a few moments ago. When accessing from the outside with a Linux client I could get through. I then looked into the possible settings with MSIE as an ftp client, and I discovered that when I disabled 'Enable folder view for FTP sites', I could acces with MSIE as an ftp client too. Best regards, David List
participants (2)
-
David List
-
Stefan Onken