Mailinglist Archive: proxy-suite (15 mails)

< Previous Next >
Re: Re: Re: [proxy-suite] USER-WRN bad 'USER@' dest
  • From: Marius Tomaschewski <mt@xxxxxxx>
  • Date: Fri, 22 Nov 2002 10:18:36 +0000 (UTC)
  • Message-id: <20021122101830.GB22926@xxxxxxx>
On Thu, Nov 21, 2002 at 10:28:00AM +0100, Frank Sackewitz wrote:
> Hi,

Hi!

> I´ve to apologize to the proxy-suite-team. The mistake was sitting in
> front of the screen.
>
> ftp-proxy works fine if I start it out of my chroot. Running in my
> chroot-envir ftp-proxy is
> unable to resolve IP-Addresses via bind. Via host it works.
>
> What functions uses ftp-proxy to resolve addresses via bind?
> Does it call any binary?

No, it uses normal glibc functions gethostname, gethostbyname
and inet_aton, inet_ntoa. No direct resolver calls are used.

The glibc is using the NSS stuff (name service switch), i.e.
/etc/nsswitch.conf, /etc/resolv.conf, libnss_dns, libnsl,
libresolv. You need them all - config+libs - in your chroot.

Note also: if you do any changes to these files, you have to
restart/reload the nscd (name service caching daemon).

Try to strace it. Start the proxy, connect using the clinent,
find out the pid of the child process and attach strace to it:

strace -f -o filename -p PID

After strace is running, login using MagicChar with hostname.
You should be able to see, what happens / fails.

Kind regards,
Marius Tomaschewski <mt@xxxxxxx>
--
SuSE Linux AG, Nürnberg -- Product Developement
PGP public key on: http://www.suse.de/~mt/mt.pgp
DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0

< Previous Next >
List Navigation
References