Page 1 of 1

FTP has stopped working outside LAN

Posted: 10 Mar 2011, 05:20
by scoobynz
Hello,

I am having a similar problem to this; http://forum.excito.net/viewtopic.php?f ... &hilit=ftp

My FTP was working (accessed via filezilla or FireFTP) but has just stopped working. I note that I can still FTP from within my network (LAN) and therefore assumed it was to do with the resolution of IP address from outside.

I have ddclient keeping track of my registered domain.

When I try to restart the ftp server I get

Code: Select all

bubba:/home/craig# /etc/init.d/proftpd restart
Stopping ftp server: proftpd.
Starting ftp server: proftpd - IPv6 getaddrinfo 'bubba.localdomain' error: Name or service not known
but I can confirm that the process does run.

I have tried the following;
Adding all combinations of the following to my proftpd.conf file;

Code: Select all

MasqueradeAddress mydomain.com 
UseReverseDNS off
My /etc/hosts looks as such;

Code: Select all

127.0.0.1       bubba.localdomain       bubba
127.0.0.1       localhost.localdomain   localhost
192.168.10.1    bubba.localdomain       bubba
#192.168.2.10   bubba.localdomain       bubba

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Note: I was wondering why it had 192.168.10.1, seeing as my server is at 192.168.2.10, so I tried changing this but to no avail. Any comment here?

I note that when I connect via FTP it does connect and login but just cannot get a response from the server.

When I try to connect via FTP it does connect but just cannot get a response. This is the Filezilla output;

Code: Select all

Response:	220 ProFTPD 1.3.0 Server (Bubba) [XX.XX.xyz.XX]
Command:	USER craig
Response:	331 Password required for craig.
Command:	PASS *******
Response:	230 User craig logged in.
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Features:
Response:	 MDTM
Response:	 REST STREAM
Response:	 SIZE
Response:	211 End
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/craig" is current directory.
Command:	TYPE A
Response:	200 Type set to A
Command:	PASV
Response:	227 Entering Passive Mode (XX.xyz.XX.XX,197,35)
Command:	LIST
Error:	Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Error:	Could not retrieve directory listing
Command:	TYPE I
Error:	Timeout detected!
Status:	Waiting to retry... (3 retries left)
At the moment I am stumped. I am thinking it is something to do with the fact that the ftp server is not receiving the correct / updated IP from ddclient? Not to sure whyit has just stopped working though, pretty sure nothing else has been changed recently.

Any help suggestions, as always, much appreciated.

Regards,
Craig

Re: FTP has stopped working outside LAN [SOLVED]

Posted: 10 Mar 2011, 08:46
by scoobynz
OK. I have done a bit more searching and have come to recognise that I dont need/use IPv6. I have therefore disabled it in the proftpd.conf file and now I can restart without any errors.

As long as I deselect IPv6 option in my FTP client it all connects now.

I never enabled IPv6 in proftpd but disabling it has done the trick. I assume I wont miss out on any other functionality?

Re: FTP has stopped working outside LAN

Posted: 10 Mar 2011, 13:21
by Ubi
not unless you connect your home via an ipv6 uplink