>Народ, посоветуйте пожалуйста нормальный демон ftp с поддержкой докачки файлов, chroot и
>анонимного доступа под FreeBSD. Остальные навороты волнуют не сильно. Родной фришный
>фтп почему-то докачку не поддерживает :(
???
[alone]/tmp > ssh unix1.jinr.ru "hostname; uname -r; grep ^ftp /etc/inetd.conf"
unix1.jinr.dubna.su
4.10-RELEASE-p4
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -l -S
[alone]/tmp >
итого: удаленная машина = unix1.jinr.ru, freebsd-4.10, родной ftpd
проверяем:
[alone]/tmp > ftp ftp://unix1.jinr.ru/incoming/moviez/incoming/
Connected to unix1.jinr.ru.
220 unix1.jinr.dubna.su FTP server (Version 6.00LS) ready.
331 Guest login ok, send your email address as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
epsv4 off
EPSV/EPRT on IPv4 off.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
ftp>
файл на закачку:
ftp> dir *.mpg
227 Entering Passive Mode (159,93,17,121,202,193)
150 Opening ASCII mode data connection for '/bin/ls'.
-rw-r--r-- 1 14 wheel 43373276 Jun 10 2002 hunter.mpg
226 Transfer complete.
ftp>
качаем:
ftp> bin
200 Type set to I.
ftp> get hunter.mpg
local: hunter.mpg remote: hunter.mpg
227 Entering Passive Mode (159,93,17,121,234,150)
150 Opening BINARY mode data connection for 'hunter.mpg' (43373276 bytes).
26% |********* | 11414 KB 2.78 MB/s 00:10 ETA^C
receive aborted. Waiting for remote to finish abort.
426 Transfer aborted. Data connection closed.
226 Abort successful
12831840 bytes received in 00:04 (2.77 MB/s)
ftp>
прервали, продолжаем:
ftp> reget hunter.mpg
local: hunter.mpg remote: hunter.mpg
227 Entering Passive Mode (159,93,17,121,215,40)
350 Restarting at 12831840. Send STORE or RETRIEVE to initiate transfer.
150 Opening BINARY mode data connection for 'hunter.mpg' (43373276 bytes).
59% |********************* | 25315 KB 2.50 MB/s 00:06 ETA^C
receive aborted. Waiting for remote to finish abort.
426 Data connection: Interrupted system call.
225 ABOR command successful.
14270464 bytes received in 00:05 (2.42 MB/s)
ftp> quit
221 Goodbye.
[alone]/tmp >
продолжает без проблем, прервали и вышли, следующий сеанс:
[alone]/tmp > ftp ftp://unix1.jinr.ru/incoming/moviez/incoming/
Connected to unix1.jinr.ru.
220 unix1.jinr.dubna.su FTP server (Version 6.00LS) ready.
331 Guest login ok, send your email address as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
epsv4 off
EPSV/EPRT on IPv4 off.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
ftp> bin
200 Type set to I.
ftp> reget hunter.mpg
local: hunter.mpg remote: hunter.mpg
227 Entering Passive Mode (159,93,17,121,199,8)
350 Restarting at 27102304. Send STORE or RETRIEVE to initiate transfer.
150 Opening BINARY mode data connection for 'hunter.mpg' (43373276 bytes).
62% |********************** | 26467 KB 0.00 KB/s --:-- ETA
может быть проблема не в ftpd демоне freebsd, а в чем то другом?