Article delegate-en/2057 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] ftp troubles
03 Jan 2003 17:35:15 GMT Jan Du Caju <pbeeabdyi-ii4a7xyfikdr.ml@ml.delegate.org>


Hi,

I use delegate as a specialist for ftp with following configuration
in /chroot/delegate/etc/delegate-ftp.conf

ADMIN=jan@kuleuven..
LIBPATH="/chroot/delegate/lib"
RESOLV=dns
SERVER=ftp://mail3.cc.kuleuven.ac.be
RELIABLE="*"
REMITTABLE="."
CACHE="no"
PIDFILE=/chroot/delegate/var/run/delegated-ftp.pid

starting delegate with:

/chroot/delegate/bin/delegated -P21 
+=/chroot/delegate/etc/delegate-ftp.conf DGROOT=/chroot/delegate 
OWNER=delegate/delegate

The trouble I am experiencing is that when an ftp session starts in 
active mode
and then changes to passive a timeout occurs

ftp commands executed after successfull login:

230 User jan logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pass
Passive mode on.
ftp> pass
Passive mode off.
ftp> ls
200 PORT command successful [translated to PASV by DeleGate].
150 Opening ASCII mode data connection for file list
drwxr-xr-x   2 jan      staff         512 Oct 15 07:14 .
drwxr-xr-x   2 jan      staff         512 Oct 15 07:14 ..
-rw-r--r--   1 jan      staff          67 Oct 15 07:14 .mailboxlist
-rwxr-----   1 jan      staff         254 May 22  2002 .profile
-rw-------   1 jan      staff        2048 Jan  2 11:44 Concepten
-rw-------   1 jan      staff        2048 Jan  2 11:44 Drafts
-rw-------   1 jan      staff      804838 Jan  3 17:11 INBOX
-rw-------   1 jan      staff        4508 Jan  2 11:44 Sent Items
-rw-------   1 jan      staff        2048 Jan  2 11:44 Trash
-rw-------   1 jan      staff      306974 Jan  2 11:44 Verzonden items
-rw-------   1 jan      staff        2048 Jan  2 11:44 test
-rw-------   1 jan      staff        2048 Jan  2 11:44 test2
226 Transfer complete.
ftp> pass
Passive mode on.
ftp> ls
227 Entering Passive Mode (134,58,126,197,129,86) DeleGate[B].
150 Opening ASCII mode data connection for file list
netin: Connection reset by peer
421 Service not available, remote server has closed connection

And the strange thing is that in this case delegate tries to connect to
an ip address he shouldn't:
124.0.252.172
(Blocked by filter rules on the machine running delegate)

Any hints on what I'm doing wrong?

Below the delegate (tried 8.1.0 and 8.3.0) logs:

01/03 18:16:49.03 [5745] 7+0: -- Fork(OnetimeServer): 171 -> 5745
01/03 18:16:49.03 [5745] 7+0: (0) accepted [18] 
-@[134.58.127.129]mars.kulnet.kuleuven.ac.be:63612 (0.003s)(1)
01/03 18:16:49.03 [5745] 7+0: PATH: 
ftp://mail3.cc.kuleuven.ac.be:21!ssl32.kuleuven.be:21!mars.kulnet.kuleuven.ac.be:63612!anonymous@mars.kulnet.kuleuven.ac.be;1041614209
01/03 18:16:49.05 [5745] 7+0: FTP server ftp://mail3.cc.kuleuven.ac.be:21/
01/03 18:16:49.05 [5745] 7+0: FTPHOPS: 1 [18/18 - -1/-1]
01/03 18:16:49.05 [5745] 7+0: ConnectToServer: 
DFLT=ftp://mail3.cc.kuleuven.ac.be:21 REAL=://:0
01/03 18:16:49.05 [5745] 7+0: ConnectToServer connected [12] 
{134.58.241.13:21 <- 134.58.241.97:33108} [0.001s]
01/03 18:16:57.01 [5745] 7+0/3: LoginPWD: "/"
01/03 18:17:05.91 [5745] 7+0/4: ftp_conndata: connected 
134.58.241.97:33107->mail3.cc.kuleuven.ac.be/134.58.241.13:52375 [13]
01/03 18:17:05.91 [5745] 7+0/4: -- with PASV
01/03 18:17:05.91 [5745] 7+0/4: PORT [134,58,127,129,248,125] >> 200 
PORT command successful [translated to PASV by DeleGate].^M
01/03 18:17:05.91 [5745] 7+0/5: ## ftp-conndata: NOT bound#1 err=13
01/03 18:17:05.91 [5745] 7+0/5: ftp_conndata: connected 
134.58.126.197:33109->mars.kulnet.kuleuven.ac.be/134.58.127.129:63613 [17]
01/03 18:17:06.09 [5745] 7+0/5: FTP data-relay([13]10000b -> [17]10000b) 
766b /
1/ 0.18s (read-EOF)
01/03 18:17:10.03 [5745] 7+0/6: FTP-control-remote: 134.58.126.197:21
01/03 18:17:10.03 [5745] 7+0/6: FTP-data-local[13]: 134.58.126.197:33110
01/03 18:17:10.04 [5745] 7+0/6: ftp_conndata: connected 
134.58.241.97:33107->mail3.cc.kuleuven.ac.be/134.58.241.13:52377 [17]
01/03 18:17:10.04 [5745] 7+0/6: PASV [134,58,126,197,129,86] >> 227 
Entering Passive Mode (134,58,126,197,129,86) DeleGate[B].^M
01/03 18:17:10.06 [5745] 7+0/7: ## ftp-conndata: NOT bound#1 err=13
01/03 18:17:20.05 [5745] 7+0/7: *** CON_TIMEOUT: 9.99/10s -> 
124.0.252.172:4215201/03 18:17:20.05 [5745] 7+0/7: ftp_conndata: 
connection refused 
134.58.126.197:33111->124.0.252.172/124.0.252.172:42152, errno=110
01/03 18:17:20.05 [5745] 7+0/7: disconnected [18] 
-@[134.58.127.129]mars.kulnet.kuleuven.ac.be:63612 (31.022s)(0)


adTHANKSvance,
Jan Du Caju.
-------------------------------- KULeuvenNet ----


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V