LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-05-2004, 07:13 PM   #1
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
FTP Slow responce maybe routing problem?


Quick description of my network:

Code:
Netgear router        Windows                  Linux Router
192.168.0.1    =>     192.168.0.10   =>    eth0:192.168.0.12             Linux  FTP
<= Inet                                     eth1:192.168.1.2        =>    192.168.1.3

windows route output:

Code:
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.10       20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.0.0    255.255.255.0     192.168.0.10    192.168.0.10       20
     192.168.0.10  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.0.255  255.255.255.255     192.168.0.10    192.168.0.10       20
      192.168.1.0    255.255.255.0     192.168.0.12    192.168.0.10       20
        224.0.0.0        240.0.0.0     192.168.0.10    192.168.0.10       20
  255.255.255.255  255.255.255.255     192.168.0.10    192.168.0.10       1
Linux route output:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
localnet        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
Linux FTP route output:

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
<<THERE IS AN APROX 9 second DELAY BEFORE SHOWING NEXT LINE>>
default         192.168.1.2     0.0.0.0         UG    0      0        0 eth0

Heres the ethereal output running capture on the windows box when i connect to the FTP on 192.168.1.3

Code:
No.     Time        Source                Destination           Protocol Info
      1 0.000000    192.168.0.10          192.168.1.3           TCP      1424 > ftp [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1460
      2 0.000533    192.168.1.3           192.168.0.10          TCP      ftp > 1424 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
      3 0.000549    192.168.0.10          192.168.1.3           TCP      1424 > ftp [ACK] Seq=1 Ack=1 Win=65535 Len=0
      4 4.999810    192.168.0.12          192.168.0.10          ARP      Who has 192.168.0.10?  Tell 192.168.0.12
      5 4.999822    192.168.0.10          192.168.0.12          ARP      192.168.0.10 is at 00:0d:61:04:cf:72
      6 8.375845    192.168.0.1           192.168.0.255         RIPv1    Response
      7 10.014616   192.168.1.3           192.168.0.10          TCP      32777 > auth [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=44385 TSER=0 WS=0
      8 10.014645   192.168.0.10          192.168.1.3           TCP      auth > 32777 [RST, ACK] Seq=0 Ack=0 Win=0 Len=0
      9 10.015426   192.168.1.3           192.168.0.10          FTP      Response: 220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [astphone.lth.com]
     10 10.015500   192.168.0.10          192.168.1.3           FTP      Request: USER plcmspip
     11 10.015835   192.168.1.3           192.168.0.10          TCP      ftp > 1424 [ACK] Seq=77 Ack=16 Win=5840 Len=0
     12 10.016243   192.168.1.3           192.168.0.10          FTP      Response: 331 Password required for plcmspip.
Ok so as you can see between 3 and 4 on the ethereal output there is a significant differnce in time, also between 5 and 6. I don;t know why the netgear router is participating in this, but its replay seems very slow. I think this is whatrs slowing it down. But I'm not sure.

If i ping 192.168.1.3 from my windwos box, the relpys are nice and fast and everything is fine. But If I use any FTP client, it takes a while to connect

if I try to connect to 192.168.1.3 from the linux router, it doesnt connect.

If I try to connect to localhsot on the ftp itself it doent connect.
netstat -ln on the ftp shows:
Code:
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:37              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
so it is listening...

Any help would be appriciated, thank you!
 
Old 12-06-2004, 02:33 AM   #2
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
If it just takes a while to connect and after that everything is fine....looks to me like your ftp server is trying to reverse look up the ip of the box connecting to it. Try putting the ip and a hostname for your windows box in your ftp server's /etc/hosts file.

As for your linux router not being able to connect to the ftp server, do you have any kind of iptable rules?
 
Old 12-06-2004, 03:00 AM   #3
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Original Poster
Rep: Reputation: 15
I forced proftpd not to do Reverse DNS. That fixed the speed issue.

How ever when i run "ncftp localhost" on the FTP server, it can't connect to itself, which I think is odd.

Linux Router also won't login to the FTP server, but all other clients on either subnet seem to be ok.

'iptables -L -nv' on Linux Router shows:
Code:
Chain INPUT (policy ACCEPT 261 packets, 26292 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 10623 packets, 7058K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 128 packets, 7818 bytes)
 pkts bytes target     prot opt in     out     source               destination
As you can see I have the policys all set to default ACCEPT so it should allow routing of everything to everywhere correct?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing ftp and pop3 sfichera Linux - Networking 2 07-19-2004 09:10 AM
Does ftp have a routing table on where to route users? digital bots Linux - Networking 1 04-06-2004 05:26 PM
Slow upload times. Routing Problem ?? marvin_robot Linux - Newbie 0 03-07-2004 06:12 AM
routing ftp connections to internal server? steepcreep Linux - Networking 1 02-18-2004 02:29 AM
Slow FTP logins: NOT DNS problem... TruckStuff Linux - Networking 3 05-09-2002 12:07 AM


All times are GMT -5. The time now is 02:52 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration