Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* FTP slow or impossible. Why ?
@ 2001-12-31 14:12 Jacques Garnier
  2001-12-31 14:53 ` Michael Heiming
  2002-01-04  7:31 ` Tony P
  0 siblings, 2 replies; 9+ messages in thread
From: Jacques Garnier @ 2001-12-31 14:12 UTC (permalink / raw)


I suffer a strange ftp problem.
My tru64 system ( 5.1a ) is well configured ( so far I know ) and all is
working ( including internet access, dns ok, gateway ok ... ) but when I try
to connect to the ftp server from outside ( with ftp localhost it's
instantaneous ) the connection is damn slow or impossible with default
configuration. Once connection established ( not all times ) the transfer
rate is normal.
It display instantly --> connected to xx.xx.xx.xx and then the wait begin.
Sometimes it end with --> connection closed by distant host and sometimes I
can access the ftp server.
In my /etc/svc.conf system file I have this line --> hosts=local,bind,yp
Like that I suffer the pbm. I dont use yp but the line --> hosts=local,bind
act exactly the same way.
If I replace that line with the line --> hosts=local
Then the connection is instantaneous from outside too and ftp is working ...
but I have no more internet access from within the server so I cant let the
configuration file like that.
ftpd is running as a service from inet.d ( default install ).

help !





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2001-12-31 14:12 FTP slow or impossible. Why ? Jacques Garnier
@ 2001-12-31 14:53 ` Michael Heiming
  2001-12-31 16:25   ` Jacques Garnier
  2002-01-04  7:31 ` Tony P
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Heiming @ 2001-12-31 14:53 UTC (permalink / raw)


Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at 
Monday 31 December 2001 15:12:

> I suffer a strange ftp problem.
> My tru64 system ( 5.1a ) is well configured ( so far I know ) and
> all is working ( including internet access, dns ok, gateway ok ... )
> but when I try to connect to the ftp server from outside ( with ftp
> localhost it's instantaneous ) the connection is damn slow or
> impossible with default configuration. Once connection established (
> not all times ) the transfer rate is normal.
> It display instantly --> connected to xx.xx.xx.xx and then the wait
> begin. Sometimes it end with --> connection closed by distant host
> and sometimes I can access the ftp server.
> In my /etc/svc.conf system file I have this line -->
> hosts=local,bind,yp Like that I suffer the pbm. I dont use yp but
> the line --> hosts=local,bind act exactly the same way.
> If I replace that line with the line --> hosts=local
> Then the connection is instantaneous from outside too and ftp is
> working ... but I have no more internet access from within the
> server so I cant let the configuration file like that.
> ftpd is running as a service from inet.d ( default install ).

Sound like a DNS problem, probably reverse lookup isn't working 100%.

Try 'nslookup <yourhost.domain>' and 'nslookup <your_IP>'  
Both should work.

Good luck

Michael Heiming


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2001-12-31 14:53 ` Michael Heiming
@ 2001-12-31 16:25   ` Jacques Garnier
  2001-12-31 17:12     ` Michael Heiming
  0 siblings, 1 reply; 9+ messages in thread
From: Jacques Garnier @ 2001-12-31 16:25 UTC (permalink / raw)


That's it but how to workaround the pbm ?
I mean it's ok nobody can access from outside using the full name ( not
referenced ok ) but I want that somebody accessing from local network using
IP @ would be able to do it while the server can access internet at the same
time.
I dont understand why the ftp deamon or inetd or something else need to
verify something using the dns after the initial connection and before it
send the login question.
Maybe it's some security configuration of the ftp deamon or something else
but what to change ?

"Michael Heiming" <michael@heiming.de> wrote in message
news:u4up0a.8nm.ln@charon.heiming.de...
> Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at
> Monday 31 December 2001 15:12:
>
> > I suffer a strange ftp problem.
> > My tru64 system ( 5.1a ) is well configured ( so far I know ) and
> > all is working ( including internet access, dns ok, gateway ok ... )
> > but when I try to connect to the ftp server from outside ( with ftp
> > localhost it's instantaneous ) the connection is damn slow or
> > impossible with default configuration. Once connection established (
> > not all times ) the transfer rate is normal.
> > It display instantly --> connected to xx.xx.xx.xx and then the wait
> > begin. Sometimes it end with --> connection closed by distant host
> > and sometimes I can access the ftp server.
> > In my /etc/svc.conf system file I have this line -->
> > hosts=local,bind,yp Like that I suffer the pbm. I dont use yp but
> > the line --> hosts=local,bind act exactly the same way.
> > If I replace that line with the line --> hosts=local
> > Then the connection is instantaneous from outside too and ftp is
> > working ... but I have no more internet access from within the
> > server so I cant let the configuration file like that.
> > ftpd is running as a service from inet.d ( default install ).
>
> Sound like a DNS problem, probably reverse lookup isn't working 100%.
>
> Try 'nslookup <yourhost.domain>' and 'nslookup <your_IP>'
> Both should work.
>
> Good luck
>
> Michael Heiming




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2001-12-31 16:25   ` Jacques Garnier
@ 2001-12-31 17:12     ` Michael Heiming
  2002-01-03 10:27       ` Jacques Garnier
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Heiming @ 2001-12-31 17:12 UTC (permalink / raw)


Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at 
Monday 31 December 2001 17:25:

> That's it but how to workaround the pbm ?
> I mean it's ok nobody can access from outside using the full name (
> not referenced ok ) but I want that somebody accessing from local
> network using IP @ would be able to do it while the server can
> access internet at the same time.
> I dont understand why the ftp deamon or inetd or something else need
> to verify something using the dns after the initial connection and
> before it send the login question.
> Maybe it's some security configuration of the ftp deamon or
> something else but what to change ?

Mhhh, tcp-wrapper in action? Was it installed per default with 5.1a?

Is the support compiled in ftpd/telnetd, or started with tcp-wrapper 
from inetd?

You might want to take a look at /etc/hosts.allow (hosts.deny).

Michael Heiming
PS: Please don't top post.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2001-12-31 17:12     ` Michael Heiming
@ 2002-01-03 10:27       ` Jacques Garnier
  2002-01-04  7:32         ` Tony P
  0 siblings, 1 reply; 9+ messages in thread
From: Jacques Garnier @ 2002-01-03 10:27 UTC (permalink / raw)


Shit, that's weirder than that even.
I found same pbm on a server running 5.1 and those DNS settings are ok (
nslookup reply server name correctly ).
More weird again, accessing this server with a client running OpenVMS is
normal ! No wait, no delay.
Using passive / active transfers seems to make no difference too.

So to summarize the problem occurs when :

- Server is a Unix computer ( already seen that on a linux server )
- Client is a windows computer ( win98, win95, win2k )
> Not ( or not only ) related to dns settings
> Not  ( or not only ) related to passive/active transfers
> Not related to client software used
- Server is seen from the client and client can ping it for example
- Server ftp daemon is running correctly ( running anyway ) on server
- No error message logged on unix server

PS : just to remember the pbm is : looooong or impossible to connect from
windows client to unix ftp server.
    After the initial notification "connected to xxxxx" the prompt for login
is very long to display.

"Michael Heiming" <michael@heiming.de> wrote in message
news:ma6q0a.0a2.ln@charon.heiming.de...
> Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at
> Monday 31 December 2001 17:25:
>
> > That's it but how to workaround the pbm ?
> > I mean it's ok nobody can access from outside using the full name (
> > not referenced ok ) but I want that somebody accessing from local
> > network using IP @ would be able to do it while the server can
> > access internet at the same time.
> > I dont understand why the ftp deamon or inetd or something else need
> > to verify something using the dns after the initial connection and
> > before it send the login question.
> > Maybe it's some security configuration of the ftp deamon or
> > something else but what to change ?
>
> Mhhh, tcp-wrapper in action? Was it installed per default with 5.1a?
>
> Is the support compiled in ftpd/telnetd, or started with tcp-wrapper
> from inetd?
>
> You might want to take a look at /etc/hosts.allow (hosts.deny).
>
> Michael Heiming
> PS: Please don't top post.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2001-12-31 14:12 FTP slow or impossible. Why ? Jacques Garnier
  2001-12-31 14:53 ` Michael Heiming
@ 2002-01-04  7:31 ` Tony P
  1 sibling, 0 replies; 9+ messages in thread
From: Tony P @ 2002-01-04  7:31 UTC (permalink / raw)


Try adding the clients address and host info directly into the host file on
the Alpha and possibly the client.  Then you can truly rule out DNS
settings.



Tony P

"Jacques Garnier" <jacques.garnier@xxxxxx.compaq.yyyyyyy.com> wrote in
message news:umWY7.240$5Y4.4834@news.cpqcorp.net...
> Shit, that's weirder than that even.
> I found same pbm on a server running 5.1 and those DNS settings are ok (
> nslookup reply server name correctly ).
> More weird again, accessing this server with a client running OpenVMS is
> normal ! No wait, no delay.
> Using passive / active transfers seems to make no difference too.
>
> So to summarize the problem occurs when :
>
> - Server is a Unix computer ( already seen that on a linux server )
> - Client is a windows computer ( win98, win95, win2k )
> > Not ( or not only ) related to dns settings
> > Not  ( or not only ) related to passive/active transfers
> > Not related to client software used
> - Server is seen from the client and client can ping it for example
> - Server ftp daemon is running correctly ( running anyway ) on server
> - No error message logged on unix server
>
> PS : just to remember the pbm is : looooong or impossible to connect from
> windows client to unix ftp server.
>     After the initial notification "connected to xxxxx" the prompt for
login
> is very long to display.
>
> "Michael Heiming" <michael@heiming.de> wrote in message
> news:ma6q0a.0a2.ln@charon.heiming.de...
> > Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at
> > Monday 31 December 2001 17:25:
> >
> > > That's it but how to workaround the pbm ?
> > > I mean it's ok nobody can access from outside using the full name (
> > > not referenced ok ) but I want that somebody accessing from local
> > > network using IP @ would be able to do it while the server can
> > > access internet at the same time.
> > > I dont understand why the ftp deamon or inetd or something else need
> > > to verify something using the dns after the initial connection and
> > > before it send the login question.
> > > Maybe it's some security configuration of the ftp deamon or
> > > something else but what to change ?
> >
> > Mhhh, tcp-wrapper in action? Was it installed per default with 5.1a?
> >
> > Is the support compiled in ftpd/telnetd, or started with tcp-wrapper
> > from inetd?
> >
> > You might want to take a look at /etc/hosts.allow (hosts.deny).
> >
> > Michael Heiming
> > PS: Please don't top post.
>
>




"Jacques Garnier" <jacques.garnier@xxxxxx.compaq.yyyyyyy.com> wrote in
message news:Vm_X7.130$5Y4.2707@news.cpqcorp.net...
> I suffer a strange ftp problem.
> My tru64 system ( 5.1a ) is well configured ( so far I know ) and all is
> working ( including internet access, dns ok, gateway ok ... ) but when I
try
> to connect to the ftp server from outside ( with ftp localhost it's
> instantaneous ) the connection is damn slow or impossible with default
> configuration. Once connection established ( not all times ) the transfer
> rate is normal.
> It display instantly --> connected to xx.xx.xx.xx and then the wait begin.
> Sometimes it end with --> connection closed by distant host and sometimes
I
> can access the ftp server.
> In my /etc/svc.conf system file I have this line --> hosts=local,bind,yp
> Like that I suffer the pbm. I dont use yp but the line -->
hosts=local,bind
> act exactly the same way.
> If I replace that line with the line --> hosts=local
> Then the connection is instantaneous from outside too and ftp is working
...
> but I have no more internet access from within the server so I cant let
the
> configuration file like that.
> ftpd is running as a service from inet.d ( default install ).
>
> help !
>
>
>




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2002-01-03 10:27       ` Jacques Garnier
@ 2002-01-04  7:32         ` Tony P
  2002-01-08 10:45           ` Jacques Garnier
  0 siblings, 1 reply; 9+ messages in thread
From: Tony P @ 2002-01-04  7:32 UTC (permalink / raw)


Try adding the clients address and host info directly into the host file on
the Alpha and possibly the client.  Then you can truly rule out DNS
settings.



Tony P

"Jacques Garnier" <jacques.garnier@xxxxxx.compaq.yyyyyyy.com> wrote in
message news:umWY7.240$5Y4.4834@news.cpqcorp.net...
> Shit, that's weirder than that even.
> I found same pbm on a server running 5.1 and those DNS settings are ok (
> nslookup reply server name correctly ).
> More weird again, accessing this server with a client running OpenVMS is
> normal ! No wait, no delay.
> Using passive / active transfers seems to make no difference too.
>
> So to summarize the problem occurs when :
>
> - Server is a Unix computer ( already seen that on a linux server )
> - Client is a windows computer ( win98, win95, win2k )
> > Not ( or not only ) related to dns settings
> > Not  ( or not only ) related to passive/active transfers
> > Not related to client software used
> - Server is seen from the client and client can ping it for example
> - Server ftp daemon is running correctly ( running anyway ) on server
> - No error message logged on unix server
>
> PS : just to remember the pbm is : looooong or impossible to connect from
> windows client to unix ftp server.
>     After the initial notification "connected to xxxxx" the prompt for
login
> is very long to display.
>
> "Michael Heiming" <michael@heiming.de> wrote in message
> news:ma6q0a.0a2.ln@charon.heiming.de...
> > Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at
> > Monday 31 December 2001 17:25:
> >
> > > That's it but how to workaround the pbm ?
> > > I mean it's ok nobody can access from outside using the full name (
> > > not referenced ok ) but I want that somebody accessing from local
> > > network using IP @ would be able to do it while the server can
> > > access internet at the same time.
> > > I dont understand why the ftp deamon or inetd or something else need
> > > to verify something using the dns after the initial connection and
> > > before it send the login question.
> > > Maybe it's some security configuration of the ftp deamon or
> > > something else but what to change ?
> >
> > Mhhh, tcp-wrapper in action? Was it installed per default with 5.1a?
> >
> > Is the support compiled in ftpd/telnetd, or started with tcp-wrapper
> > from inetd?
> >
> > You might want to take a look at /etc/hosts.allow (hosts.deny).
> >
> > Michael Heiming
> > PS: Please don't top post.
>
>








^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2002-01-04  7:32         ` Tony P
@ 2002-01-08 10:45           ` Jacques Garnier
  2002-01-09 11:10             ` Emmanuel Choquet
  0 siblings, 1 reply; 9+ messages in thread
From: Jacques Garnier @ 2002-01-08 10:45 UTC (permalink / raw)


Nah, that does nothing.
Now client and server can reach eachother using short or long names and that
change absolutly nothing to the problem.

"Tony P" <tpomeroy@bigpond.net.au> wrote in message
news:%TcZ7.32843$wD1.190823@news-server.bigpond.net.au...
> Try adding the clients address and host info directly into the host file
on
> the Alpha and possibly the client.  Then you can truly rule out DNS
> settings.
>
>
>
> Tony P
>
> "Jacques Garnier" <jacques.garnier@xxxxxx.compaq.yyyyyyy.com> wrote in
> message news:umWY7.240$5Y4.4834@news.cpqcorp.net...
> > Shit, that's weirder than that even.
> > I found same pbm on a server running 5.1 and those DNS settings are ok (
> > nslookup reply server name correctly ).
> > More weird again, accessing this server with a client running OpenVMS is
> > normal ! No wait, no delay.
> > Using passive / active transfers seems to make no difference too.
> >
> > So to summarize the problem occurs when :
> >
> > - Server is a Unix computer ( already seen that on a linux server )
> > - Client is a windows computer ( win98, win95, win2k )
> > > Not ( or not only ) related to dns settings
> > > Not  ( or not only ) related to passive/active transfers
> > > Not related to client software used
> > - Server is seen from the client and client can ping it for example
> > - Server ftp daemon is running correctly ( running anyway ) on server
> > - No error message logged on unix server
> >
> > PS : just to remember the pbm is : looooong or impossible to connect
from
> > windows client to unix ftp server.
> >     After the initial notification "connected to xxxxx" the prompt for
> login
> > is very long to display.
> >
> > "Michael Heiming" <michael@heiming.de> wrote in message
> > news:ma6q0a.0a2.ln@charon.heiming.de...
> > > Jacques Garnier (jacques.garnier@xxxxxx.compaq.yyyyyyy.com) wrote at
> > > Monday 31 December 2001 17:25:
> > >
> > > > That's it but how to workaround the pbm ?
> > > > I mean it's ok nobody can access from outside using the full name (
> > > > not referenced ok ) but I want that somebody accessing from local
> > > > network using IP @ would be able to do it while the server can
> > > > access internet at the same time.
> > > > I dont understand why the ftp deamon or inetd or something else need
> > > > to verify something using the dns after the initial connection and
> > > > before it send the login question.
> > > > Maybe it's some security configuration of the ftp deamon or
> > > > something else but what to change ?
> > >
> > > Mhhh, tcp-wrapper in action? Was it installed per default with 5.1a?
> > >
> > > Is the support compiled in ftpd/telnetd, or started with tcp-wrapper
> > > from inetd?
> > >
> > > You might want to take a look at /etc/hosts.allow (hosts.deny).
> > >
> > > Michael Heiming
> > > PS: Please don't top post.
> >
> >
>
>
>
>
>
>




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: FTP slow or impossible. Why ?
  2002-01-08 10:45           ` Jacques Garnier
@ 2002-01-09 11:10             ` Emmanuel Choquet
  0 siblings, 0 replies; 9+ messages in thread
From: Emmanuel Choquet @ 2002-01-09 11:10 UTC (permalink / raw)


"Jacques Garnier" <jacques.garnier@xxxxxx.compaq.yyyyyyy.com> wrote in message news:<y5A_7.387$5Y4.10968@news.cpqcorp.net>...
> Nah, that does nothing.
> Now client and server can reach eachother using short or long names and that
> change absolutly nothing to the problem.
>

-my answer are from a 5.1A system, your output may vary -

Can you check your interfaces and routes :

# ifconfig -a
# netstat -nr

check ftp :


# grep ftp /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/sbin/ftpd          ftpd
#tftp   dgram   udp     wait    root    /usr/sbin/tftpd      
# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mickey.etc.vbe.cpqcorp.net FTP server (Compaq Tru64 UNIX Version
5.60) read.
QUIT
221 Goodbye.
Connection closed by foreign host.

Check you can lookup and reverse lookup the client address :
nslookup pcname.dom
nslookup xx.xx.xx.xx (pc address)

Check your client ftp does or does not use any ftp proxy. in this case
you will see the proxy address in your ftp session

check this by netstat -n | grep '\.2[0-1] '
tcp connection on port 20 and 21
try to reverse lookup the incoming address

Can you check your Ethernet physical link as well. I had this behavior
when using autonegotiated and negotiation was not so efficient.

Try to force at console level your ewa0_mode or whatever to the actual
value accepted by the switch in front of it. If you don't know the
syntax, just type
>>> set ewa0_mode zzz
and it will list you the valid options. Use full duplex only if your
switch accepts it, and specially do not use it if you have a hub. Fix
the speed as needed.

If this does  not change anything, I do not know if this is convenient
for your server or not, but try to plug a crossover cable to a PC,
with an address in the same subnet, to isolate any network equipment.
That will tell you if it is a software issue or a network path
problem.

Hope this help,


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-09 11:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-31 14:12 FTP slow or impossible. Why ? Jacques Garnier
2001-12-31 14:53 ` Michael Heiming
2001-12-31 16:25   ` Jacques Garnier
2001-12-31 17:12     ` Michael Heiming
2002-01-03 10:27       ` Jacques Garnier
2002-01-04  7:32         ` Tony P
2002-01-08 10:45           ` Jacques Garnier
2002-01-09 11:10             ` Emmanuel Choquet
2002-01-04  7:31 ` Tony P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox