Problem with outside connections and Inetutils

Sergei Mutovkin surge at mn.ru
Mon Jan 5 13:44:34 PST 2004


Hello everyone,

I'm looking for help/trying to figure out why BLFS compiled Inetutils
doesn't allow any outside connections on ftp/telnet.

I need simpiest implementation of telnet and ftp so I went with Inetutils.
I configured everything in Xinetd and it seemed like both are working
fine if I connect from the same machine but as soon as anyone tried to
connect from the outside it would just get a blank screen (in telnet)
and never receive any more response. Or no response (stalled connection on
ftp).

I decided to compile tcpwrappers as they are the optional prerequisite for
inetutils... however I was unable to comple the package as it returns this
during the compilation:

-----------------------------------------------------
gcc -O2 -DFACILITY=LOG_DAEMON    -DHOSTS_ACCESS  -DNETGROUP    -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO      -DRFC931_TIMEOUT=10  -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"   -DSYS_ERRLIST_DEFINED -DHAVE_WEAKSYMS -D_REENTRANT    -fPIC -shared -D_REENTRANT -c percent_m.c -o shared/percent_m.o
gcc -O2 -DFACILITY=LOG_DAEMON    -DHOSTS_ACCESS  -DNETGROUP    -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO      -DRFC931_TIMEOUT=10  -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"   -DSYS_ERRLIST_DEFINED -DHAVE_WEAKSYMS -D_REENTRANT    -fPIC -shared -D_REENTRANT -c myvsyslog.c -o shared/myvsyslog.o
rm -f shared/libwrap.so.0.7.6
gcc -o shared/libwrap.so.0.7.6 -shared -Xlinker -soname -Xlinker libwrap.so.0 -lc -lnsl shared/hosts_access.o shared/options.o shared/shell_cmd.o shared/rfc931.o shared/eval.o shared/hosts_ctl.o shared/refuse.o shared/percent_x.o shared/clean_exit.o shared/weak_symbols.o shared/fromhost.o shared/fix_options.o shared/socket.o shared/tli.o shared/workarounds.o shared/update.o shared/misc.o shared/diag.o shared/percent_m.o shared/myvsyslog.o;
ln -s libwrap.so.0.7.6 shared/libwrap.so.0
ln -s libwrap.so.0 shared/libwrap.so
gcc -O2 -DFACILITY=LOG_DAEMON    -DHOSTS_ACCESS  -DNETGROUP    -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO      -DRFC931_TIMEOUT=10  -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"   -DSYS_ERRLIST_DEFINED -DHAVE_WEAKSYMS -D_REENTRANT    -o tcpd tcpd.o -Lshared -lwrap
shared/libwrap.so: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
make[1]: *** [tcpd] Error 1
make[1]: Leaving directory `/home/blfs/tcp_wrappers_7.6'
make: *** [linux] Error 2
-----------------------------------------------------

the entries that I have for xinetd are:
-----------------------------------------------------
defaults
{
    instances       = 25
    log_type        = FILE /var/log/servicelog
    log_on_success  = HOST PID
    log_on_failure = HOST
    disabled        = tftp
}
service login
{
    socket_type     = stream
    protocol        = tcp
    wait            = no
    user            = root
    server          = /usr/sbin/rlogind
    log_type        = SYSLOG local4 info
}

service telnet
{
    socket_type     = stream
    wait            = no
    user            = root
    server          = /usr/sbin/telnetd
    bind            = 127.0.0.1
    log_on_failure += USERID
}


service ftp
{
    socket_type     = stream
    wait            = no
    user            = root
    server          = /usr/sbin/ftpd
    server_args     = -l
    instances       = 4
    log_on_success  += DURATION USERID
    log_on_failure += USERID
    nice            = 10
}
------------------------------------------------
and a bunch of others....

I would to know opinion on what could have happened with my system that
prevents it from connecting with outside world (i.e. others connecting to
my "server").


Thank you,
Sergei



More information about the lfs-support mailing list