Networking Forums

Networking Forums > Computer Networking > Linux Networking > Newbie can't log into his own wu-ftpd server...

Reply
Thread Tools Display Modes

Newbie can't log into his own wu-ftpd server...

 
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 10:19 AM
Hello!

I am a newbie with Linux (Debian v3.1; Sarge installer; Kernel 2.6.8),
and I seem to have troubles getting into my wu-ftpd v2.6.2(1) [from
apt-get] server remotely on a LAN (not used for Internet since I am on
a measly dial-up connection). It used to work in the past (two weeks
ago or more) even after a few minutes of waiting. I am not sure what
caused this problem. I tried both the standalone daemon and inetd
setup for wu-ftpd, but they resulted the same.

Example:
$ ftp ANTian-AXP (also tried 192.168.0.220 IP address)

Connected to ANTian-AXP.

<<a long pause for a few minutes>>

421 Service is not available, remote server timed out. Connection closed.


I wonder if the long pauses are causing PowerBook G4 to time out/give
up? In Windows XP Professional SP2, ftp connection is a couple minutes
and eventually lets me log in. Even ftp to localhost, on the Debian box
running wu-ftpd, takes too long (a few minutes) but it is fine once I am
logged in the FTP server. Maybe I misconfigured something on the Debian
box?


In /var/log/messsages, I see (within the same second) from my PowerBook
G4:

localhost wu-ftpd[3821]: connection from 192.168.0.28 [192.168.0.28]
localhost wu-ftpd[3821]: lost connection to 192.178.0.28 [192.168.0.28]
localhost wu-ftpd[3821]: FTP session closed


I am not sure if this is related. I can ssh (have to wait about 25-30
seconds) from PowerBook G4's ssh -2 -C command; SecureCRT v3.4.8 was
instant) and ping to this Debian box without problems.

Any ideas on what's going on? Thank you in advance.
--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
 
 
 
Antoine EMERIT
Guest
Posts: n/a

 
      02-13-2005, 01:43 PM
(E-Mail Removed) écrivait news:y_ednaOesbhSqpLfRVn-(E-Mail Removed):
> Connected to ANTian-AXP.


It means that the ftp service is well reponding.

> 421 Service is not available, remote server timed out. Connection closed.


It means that the ftp service is in shutdown mode.

All the ftp server include a way to put them in "shutdown" mode, in wich
case the server accept connexion but close them after displaying a
maintenance message "Service is not available".

To get out the shutdown mode, you have a command to execute or a file to
remove.

For WU-FTP, you must remove the file defined in "/etc/ftpaccess" with the
"shutdonw" attribut (/etc/shutmsg in most case).

Regards
 
Reply With Quote
 
Tommi Jensen
Guest
Posts: n/a

 
      02-13-2005, 04:35 PM
(E-Mail Removed) wrote:

> localhost wu-ftpd[3821]: connection from 192.168.0.28 [192.168.0.28]
> localhost wu-ftpd[3821]: lost connection to 192.178.0.28 [192.168.0.28]
> localhost wu-ftpd[3821]: FTP session closed
>
> I am not sure if this is related. I can ssh (have to wait about 25-30
> seconds) from PowerBook G4's ssh -2 -C command; SecureCRT v3.4.8 was
> instant) and ping to this Debian box without problems.
>
> Any ideas on what's going on? Thank you in advance.


quite likely lack of in-addr.arpa (reverse dns) - tcpwrappers are
usually set up to `lag' such connections, probably mostly to help avoid
DoS. set up a functional DNS server for 0.168.192.in-addr.arpa. or use
/etc/hosts (man hosts).

hth.

/Tommi
 
Reply With Quote
 
John A. Weeks III
Guest
Posts: n/a

 
      02-13-2005, 05:17 PM
In article <y_ednaOesbhSqpLfRVn-(E-Mail Removed)>, (E-Mail Removed)
wrote:

> Example:
> $ ftp ANTian-AXP (also tried 192.168.0.220 IP address)
>
> Connected to ANTian-AXP.
>
> <<a long pause for a few minutes>>
>
> 421 Service is not available, remote server timed out. Connection closed.
>
>
> I wonder if the long pauses are causing PowerBook G4 to time out/give
> up? In Windows XP Professional SP2, ftp connection is a couple minutes
> and eventually lets me log in. Even ftp to localhost, on the Debian box
> running wu-ftpd, takes too long (a few minutes) but it is fine once I am
> logged in the FTP server. Maybe I misconfigured something on the Debian
> box?


Whenever I see a delay on the scale that you are seeing, in
the 20 to 45 second range, my first thought is a DNS problem.
They always seem to take that long to time out. Are you on
your own private network behind a DLS or cable modem router?
If so, you probably do not have your machines in DNS anywhere.
Or you have set the FTP server to do a "reverse lookup" to
validate the incoming IP address, and that reverse lookup
is failing. Go back though the configuration and see if there
are any settings related to DNS, name server, or reverse
lookup.

-john-

--
================================================== ====================
John A. Weeks III 952-432-2708 (E-Mail Removed)
Newave Communications http://www.johnweeks.com
================================================== ====================
 
Reply With Quote
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 11:22 PM
Antoine EMERIT <(E-Mail Removed)> wrote:
> (E-Mail Removed) ?crivait news:y_ednaOesbhSqpLfRVn-(E-Mail Removed):
> > Connected to ANTian-AXP.


> It means that the ftp service is well reponding.


> > 421 Service is not available, remote server timed out. Connection closed.


> It means that the ftp service is in shutdown mode.


> All the ftp server include a way to put them in "shutdown" mode, in wich
> case the server accept connexion but close them after displaying a
> maintenance message "Service is not available".


> To get out the shutdown mode, you have a command to execute or a file to
> remove.


> For WU-FTP, you must remove the file defined in "/etc/ftpaccess" with the
> "shutdonw" attribut (/etc/shutmsg in most case).


OK, I added a # to shutdown /etc/wu-ftpd/shutmsg (this file doesn't exist
either) in /etc/wu-ftpd/ftpaccess file. That did not work (nothing
different).
--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 11:23 PM
Tommi Jensen <(E-Mail Removed)> wrote:
> (E-Mail Removed) wrote:


> > localhost wu-ftpd[3821]: connection from 192.168.0.28 [192.168.0.28]
> > localhost wu-ftpd[3821]: lost connection to 192.178.0.28 [192.168.0.28]
> > localhost wu-ftpd[3821]: FTP session closed
> >
> > I am not sure if this is related. I can ssh (have to wait about 25-30
> > seconds) from PowerBook G4's ssh -2 -C command; SecureCRT v3.4.8 was
> > instant) and ping to this Debian box without problems.
> >
> > Any ideas on what's going on? Thank you in advance.


> quite likely lack of in-addr.arpa (reverse dns) - tcpwrappers are
> usually set up to `lag' such connections, probably mostly to help avoid
> DoS. set up a functional DNS server for 0.168.192.in-addr.arpa. or use
> /etc/hosts (man hosts).


How do I set up a DNS or use /etc/hosts (what do I put in?)? Remember,
this is a small LAN with three computers without a real Internet
connection. I use dial-up access for Internet.
--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 11:25 PM
John A. Weeks III <(E-Mail Removed)> wrote:
> In article <y_ednaOesbhSqpLfRVn-(E-Mail Removed)>, (E-Mail Removed)
> wrote:


> > Example:
> > $ ftp ANTian-AXP (also tried 192.168.0.220 IP address)
> >
> > Connected to ANTian-AXP.
> >
> > <<a long pause for a few minutes>>
> >
> > 421 Service is not available, remote server timed out. Connection closed.
> >
> >
> > I wonder if the long pauses are causing PowerBook G4 to time out/give
> > up? In Windows XP Professional SP2, ftp connection is a couple minutes
> > and eventually lets me log in. Even ftp to localhost, on the Debian box
> > running wu-ftpd, takes too long (a few minutes) but it is fine once I am
> > logged in the FTP server. Maybe I misconfigured something on the Debian
> > box?


> Whenever I see a delay on the scale that you are seeing, in
> the 20 to 45 second range, my first thought is a DNS problem.
> They always seem to take that long to time out. Are you on
> your own private network behind a DLS or cable modem router?


NONE. Only dial-up (not always online). It's just a basic tiny
LAN connected to three computers. I use LAN to copy files fast.


> If so, you probably do not have your machines in DNS anywhere.
> Or you have set the FTP server to do a "reverse lookup" to
> validate the incoming IP address, and that reverse lookup
> is failing. Go back though the configuration and see if there
> are any settings related to DNS, name server, or reverse
> lookup.


Where is this reverse look up at? Again, I am new at this Linux
and networking.
--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 11:30 PM
Someone told me to try this since I use a dial-up connection for
Internet access (no broadband services for low prices in my area):

"To test.... connect your dialup - point to you ISP's DNS servers - and
attempt your connections. It's ok that it doesn't resolve - just that the
wu-ftpd gets an answer within a reasonable time. That will confirm the
theory."

--

I tested and here are my results to him:

"It did work (connected to wu-ftpd server so fast -- woah) when Debian was
connected to the Internet.

So now what? Do I really need run a domain name server? Isn't there a
configuration to have wu-ftpd ignore domain look up? I don't care about
looking up who and who server since it is not accessible by the public. I
just want connections with IP addresses. /etc/hosts has the server names
I gave (e.g., ANTian-AXP). What's the best way? Again, newbie here..."

Thank you in advance.


In comp.os.linux.networking (E-Mail Removed) wrote:
> Hello!


> I am a newbie with Linux (Debian v3.1; Sarge installer; Kernel 2.6.8),
> and I seem to have troubles getting into my wu-ftpd v2.6.2(1) [from
> apt-get] server remotely on a LAN (not used for Internet since I am on
> a measly dial-up connection). It used to work in the past (two weeks
> ago or more) even after a few minutes of waiting. I am not sure what
> caused this problem. I tried both the standalone daemon and inetd
> setup for wu-ftpd, but they resulted the same.


> Example:
> $ ftp ANTian-AXP (also tried 192.168.0.220 IP address)


> Connected to ANTian-AXP.


> <<a long pause for a few minutes>>


> 421 Service is not available, remote server timed out. Connection closed.



> I wonder if the long pauses are causing PowerBook G4 to time out/give
> up? In Windows XP Professional SP2, ftp connection is a couple minutes
> and eventually lets me log in. Even ftp to localhost, on the Debian box
> running wu-ftpd, takes too long (a few minutes) but it is fine once I am
> logged in the FTP server. Maybe I misconfigured something on the Debian
> box?



> In /var/log/messsages, I see (within the same second) from my PowerBook
> G4:


> localhost wu-ftpd[3821]: connection from 192.168.0.28 [192.168.0.28]
> localhost wu-ftpd[3821]: lost connection to 192.178.0.28 [192.168.0.28]
> localhost wu-ftpd[3821]: FTP session closed



> I am not sure if this is related. I can ssh (have to wait about 25-30
> seconds) from PowerBook G4's ssh -2 -C command; SecureCRT v3.4.8 was
> instant) and ping to this Debian box without problems.


> Any ideas on what's going on? Thank you in advance.



--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      02-13-2005, 11:32 PM
On Sun, 13 Feb 2005 18:25:19 -0600, (E-Mail Removed) wrote:
>
> Where is this reverse look up at? Again, I am new at this Linux
> and networking.


$ host w2.rc.vip.dcn.yahoo.com forward lookup
yahoo.com has address 216.109.112.135

$ host 216.109.112.135 reverse lookup
135.112.109.216.in-addr.arpa domain name pointer w2.rc.vip.dcn.yahoo.com
 
Reply With Quote
 
ANTant@zimage.com
Guest
Posts: n/a

 
      02-13-2005, 11:38 PM
Bit Twister <(E-Mail Removed)> wrote:
> On Sun, 13 Feb 2005 18:25:19 -0600, (E-Mail Removed) wrote:
> >
> > Where is this reverse look up at? Again, I am new at this Linux
> > and networking.


> $ host w2.rc.vip.dcn.yahoo.com forward lookup
> yahoo.com has address 216.109.112.135


> $ host 216.109.112.135 reverse lookup
> 135.112.109.216.in-addr.arpa domain name pointer w2.rc.vip.dcn.yahoo.com


Right, but this Debian box isn't always connected to the Internet since
it is only a dial-up connection.

I did notice the wu-ftpd will let me log in when the box is connected to
the Internet. I need to make wu-ftpd not check the domain names since I
am the only one uses the FTP server (private).
--
"I look at an ant and I see myself: a native South African, endowed by nature with a strength much
greater than my size so I might cope with the weight of a racism that crushes my spirit." --Miriam
Makeba
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd and SuSE 11.1 Uwe Nass Linux Networking 0 08-06-2010 09:23 AM
ftpd - only users, not anonymous stravinskij Linux Networking 5 07-16-2007 06:27 PM
wu-ftpd & site exec & tar Magda Hewryk Linux Networking 0 10-16-2004 03:56 AM
cannot access ftp server -- getpeername (in.ftpd): Transport endpoint is not connected Matthias Hupp Linux Networking 1 05-17-2004 04:36 PM
Can't get ssh and wu-ftpd to work together Richard Brandt Linux Networking 4 11-07-2003 11:30 AM



1 2 3 4 5 6 7 8 9 10 11