Antwort: Re: [proxy-suite] USER-WRN bad 'USER@' dest
Hi,
I made the changes on the startscript as described below but the same
behavoir.
sordns:~ # ps -e |grep ftp
673 ? 00:00:00 ftp-proxy
sordns:~ # less /proc/673/maps |grep /lib/libnsl -B2 -A2
4016c000-40175000 r-xp 00000000 08:02 21824 /usr/lib/liblber.so.2.0.15
40175000-40176000 rw-p 00008000 08:02 21824 /usr/lib/liblber.so.2.0.15
40176000-40188000 r-xp 00000000 08:02 9446 /lib/libnsl.so.1
40188000-4018a000 rw-p 00011000 08:02 9446 /lib/libnsl.so.1
4018a000-4018d000 rw-p 00000000 00:00 0
4018d000-4019a000 r-xp 00000000 08:02 9456 /lib/libresolv.so.2
The Library is there and is used.
--
Bye
Frank Sackewitz
EDM
HASCO-GERMANY
Marius Tomaschewski
Hi folks,
Hi!
You are running the proxy in a chroot. I mean there is a library
missed - try to add the nsl-library to your script:
--- ftp-proxy/rc.script.in
+++ ftp-proxy/rc.script.in 2002/07/18 23:41:35
@@ -389,7 +360,7 @@
# copy/update nss libraries
if [ -f /etc/nsswitch.conf ] ; then
- LIBS="/lib/libnss* /lib/libresolv* /lib/libdb*"
+ LIBS="/lib/libnss* /lib/libnsl* /lib/libresolv* /lib/libdb*"
fi
[ -n "$LIBS" ] && for lib in $LIBS ; do
if [ -n "$lib" ] && [ -x "$lib" ] ; then
Gruesse,
Marius Tomaschewski
On Wed, Nov 20, 2002 at 02:31:21PM +0100, Frank Sackewitz wrote:
Hi,
Hi!
I made the changes on the startscript as described below but the same behavoir.
sordns:~ # ps -e |grep ftp 673 ? 00:00:00 ftp-proxy
sordns:~ # less /proc/673/maps |grep /lib/libnsl -B2 -A2 4016c000-40175000 r-xp 00000000 08:02 21824 /usr/lib/liblber.so.2.0.15 40175000-40176000 rw-p 00008000 08:02 21824 /usr/lib/liblber.so.2.0.15 40176000-40188000 r-xp 00000000 08:02 9446 /lib/libnsl.so.1 40188000-4018a000 rw-p 00011000 08:02 9446 /lib/libnsl.so.1 4018a000-4018d000 rw-p 00000000 00:00 0 4018d000-4019a000 r-xp 00000000 08:02 9456 /lib/libresolv.so.2
The Library is there and is used.
Hmm... the proxy is not able to resolv hostnames... something
is missed in the chroot. Perhaps some NSS specials you use?
Make sure, the proxy works propelly without a chroot first.
$ host ftp.de.openbsd.org
ftp.de.openbsd.org is a nickname for ftp.fu-berlin.de
ftp.fu-berlin.de has address 130.133.1.100
ftp.fu-berlin.de mail is handled (pri=10) by ftp.fu-berlin.de
ftp.fu-berlin.de mail is handled (pri=20) by mail.fu-berlin.de
Try out if ftp@130.133.1.100" in USER works (MagicUser mode).
To use transparent proxy you have to start
$ ftp ftp.de.openbsd.org
instead of the proxy-ip and see proxy log messages about.
Gruesse,
Marius Tomaschewski
participants (2)
-
Frank Sackewitz
-
Marius Tomaschewski