Date: Mon, 3 Jul 2000 00:40:51 -0700 From: "Hank Wethington" <bsd@info-logix.com> To: <gmarco@masternet.it>, <questions@freebsd.org> Subject: RE: FreeBSD and Linux don't like ftp each others Message-ID: <KFEIIDCJNHBCGLAFNMJIIEOFCGAA.bsd@info-logix.com> In-Reply-To: <20000703083014.A2629@seaside.ablia.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At first glance it looks to be that your ftp server is going into pasv mode. Look at the man pages on how to force it to non pasv, but to test you can enter at the ftp prompt after logging ftp> passive it should display "Passive mode off." then try your transfer. I was having the same problem between win2k and FreeBSD through a firewall. forced non-passive and everything is ok. Hank -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Gianmarco Sent: Sunday, July 02, 2000 11:30 PM To: questions@freebsd.org Subject: FreeBSD and Linux don't like ftp each others Hi, I have a strange problem... I have a FreeBSD box (4.0-STABLE of a few days ago) which is a frontend of a private network. It made firewall (not yet configured), natd (port 80 to a linux box because the web application use a db called "isis" not supported in FreeBSD), email server etc etc ... The box is working well but when it tries to ftp to the linux (RH 6.1) box and viceversa it is a nightmare: --> begin ftp session <-- freebsd:/home/gmarco> ftp 10.0.0.1 Connected to 10.0.0.1. 220 brontolo.alinari.it FTP server (Version wu-2.5.0(1) Tue Sep 21 16:48:12 EDT 1999) ready. Name (10.0.0.1:gmarco): 331 Password required for gmarco. Password: 230 User gmarco logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> hash 2048 Hash mark printing on (2048 bytes/hash mark). ftp> bin 200 Type set to I. ftp> get squid-2.3.STABLE3-src.tar.gz local: squid-2.3.STABLE3-src.tar.gz remote: squid-2.3.STABLE3-src.tar.gz 227 Entering Passive Mode (10,0,0,1,130,14) 150 Opening BINARY mode data connection for squid-2.3.STABLE3-src.tar.gz (966361 bytes). 5% |*** | 54020 - stalled -^C receive aborted waiting for remote to finish abort. 426 Transfer aborted. Data connection closed. 226 Abort successful 54020 bytes received in 20.35 seconds (2.59 KB/s) ftp> quit 221-You have transferred 106496 bytes in 0 files. 221-Total traffic for this session was 108602 bytes in 2 transfers. 221-Thank you for using the FTP service on brontolo.alinari.it. 221 Goodbye. --> end <--- So we made about 3.0 kb/s on 2 ethernet at 100mb The interface on the FreeBSD box used is rl0 freebsd:/home/gmarco> ifconfig -a de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 213.26.247.190 netmask 0xffffffc0 broadcast 213.26.247.191 ether 00:00:f8:02:5f:b5 media: autoselect (10baseT/UTP) status: active supported media: autoselect 10base5/AUI 10base2/BNC 10baseT/UTP <full-duplex> 10baseT/UTP rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.254 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:48:54:64:24:14 media: autoselect (none) status: active supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10 baseT/UTP 100baseTX <hw-loopback> rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.1.254 netmask 0xffffff00 broadcast 10.0.1.255 ether 00:48:54:64:21:a3 media: autoselect (none) status: active supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10 baseT/UTP 100baseTX <hw-loopback> rl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.2.254 netmask 0xffffff00 broadcast 10.0.2.255 ether 00:48:54:64:1f:a2 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10 baseT/UTP 100baseTX <hw-loopback> rl3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.3.254 netmask 0xffffff00 broadcast 10.0.3.255 ether 00:48:54:6f:5c:c7 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10 baseT/UTP 100baseTX <hw-loopback> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 The nice thing is that interfaces (on the FreeBSD and linux side have no errors) freebsd:/home/gmarco> netstat -i Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll de0 1500 <Link#1> 00:00:f8:02:5f:b5 842 0 636 0 0 de0 1500 213.26.247.12 freebsd 842 0 636 0 0 rl0 1500 <Link#2> 00:48:54:64:24:14 2411 0 86 0 0 rl0 1500 10/24 freebsd 2411 0 86 0 0 rl1 1500 <Link#3> 00:48:54:64:21:a3 0 0 1 0 0 rl1 1500 10.0.1/24 freebsd 0 0 1 0 0 rl2 1500 <Link#4> 00:48:54:64:1f:a2 0 0 1 0 0 rl2 1500 10.0.2/24 freebsd 0 0 1 0 0 rl3 1500 <Link#5> 00:48:54:6f:5c:c7 0 0 1 0 0 rl3 1500 10.0.3/24 freebsd 0 0 1 0 0 lo0 16384 <Link#6> 161 0 161 0 0 lo0 16384 127 localhost 161 0 161 0 0 and a freebsd:/home/gmarco# ping -f 10.0.0.1 PING 10.0.0.1 (10.0.0.1): 56 data bytes ..................^. --- 10.0.0.1 ping statistics --- 50777 packets transmitted, 50759 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.297/0.322/10.319/0.081 ms In NFS we achieved about 270kb/s (not so good but not so bad as 3.0kb/s). --> begin NFS cp <-- [ugo@brontolo ugo]$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda9 2015984 423980 1489596 22% / /dev/sda1 23242 2661 19381 12% /boot /dev/sda5 24193132 471400 22492780 2% /img /dev/sda6 8568304 321800 7811252 4% /isis /dev/sda7 8355576 35316 7895812 0% /isis/lavoro freebsd:/home 7746238 1301832 5824707 18% /mnt [ugo@brontolo ugo]$ dd if=/dev/zero of=prova bs=1024k count=40 40+0 records in 40+0 records out [ugo@brontolo ugo]$ ls -la total 41040 drwx------ 2 ugo users 4096 Jul 2 22:37 . drwxr-xr-x 10 root root 4096 Jul 2 21:36 .. -rw-r--r-- 1 ugo users 1422 Jul 2 21:36 .Xdefaults -rw------- 1 ugo users 598 Jul 2 22:28 .bash_history -rw-r--r-- 1 ugo users 24 Jul 2 21:36 .bash_logout -rw-r--r-- 1 ugo users 230 Jul 2 21:36 .bash_profile -rw-r--r-- 1 ugo users 124 Jul 2 21:36 .bashrc -rw------- 1 ugo users 45 Jul 2 22:10 .rhosts -rw-r--r-- 1 ugo users 3394 Jul 2 21:36 .screenrc -rw-r--r-- 1 ugo users 41943040 Jul 2 22:37 prova [ugo@brontolo ugo]$ time cp prova /mnt/ugo/prova 0.00user 0.00system 2:32.57elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10353major+14minor)pagefaults 0swaps --> end <-- So I really don't know what is happening. The two boxes are connected using a 10mb HUB soon to be replaced by a 100mb switch one. Anyone that can understand the ftp anomaly ? Thanks ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KFEIIDCJNHBCGLAFNMJIIEOFCGAA.bsd>