Re: Re: Re: Re: Re: [proxy-suite] USER-WRN bad 'USER@' dest
Marius Tomaschewski
On Thu, Nov 28, 2002 at 10:25:46AM +0100, Frank Sackewitz wrote:
1st sorry for the delay, was on businesstrip!
Hmm... strange. No idea what goes wrong there...
The dns query is done and there seems to bee an answer, but it still doesn't work.... All the proxy does there is:
ctx->magic_addr = socket_str2addr(p, INADDR_ANY); if (ctx->magic_addr == INADDR_ANY || ctx->magic_port == INPORT_ANY) { client_respond(501, NULL, "Invalid destination in user name"); syslog_write(U_WRN, "bad 'USER@' dest '%s:%s' from %s", NIL(p), NIL(q), ctx->cli_ctrl->peer); client_reinit(); return; }
If you take a look to the log messages (e.g. in one of your other mails), the string variable "p" used in syslog_write contains valid hostname... The socket_str2addr calls gethostbyname...
The concerning syslog enty : ftp-child [30226] <11/28-11:06:51> USER-INF connect from 192.168.3.122 ftp-child [30226] <11/28-11:06:57> USER-WRN bad 'USER@' dest 'ftp.de.openbsd.org :(nil)' from 192.168.3.122 ftp-child [30226] <11/28-11:07:07> USER-INF 'QUIT' from 192.168.3.122 ftp-child [30226] <11/28-11:07:07> USER-INF closing connect from 192.168.122 after 16 secs - read 0/0, sent 0/0 byte/sec
An other posibility is, you have a broken IPPORT_FTP or INPORT_ANY definition in some header file? IPPORT_FTP should be defined to 21 and INPORT_ANY to 0. If it is not defined, the proxy defines it...
If this case match why it works outside of the chroot?
[...]
30226 open("/etc/resolv.conf", O_RDONLY) = 3 30226 fstat64(3, {st_mode=S_IFREG|0644, st_size=90, ...}) = 0 30226 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 30226 read(3, "nameserver 193.101.111.10\nnamese"..., 4096) = 90 ^^^^^^^^^^^^^^^^^^^^^^^^^ [...] 30226 open("/usr/lib/libnss_dns.so.2", O_RDONLY) = 3 [...] 30226 recvfrom(3, "0o\205\203\0\1\0\0\0\1\0\0\3ftp\2de\7openbsd\4org "..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("193.101.111.10")}}, [16]) = 121 [...]
If it takes too long to find whats going wrong, doesnt matter. I let it run outside of chroot and it works properly. -- Bye Frank Sackewitz EDM HASCO-GERMANY
participants (1)
-
Frank Sackewitz