Problème avec xinetd

Page principale

Répondre à ce message
Auteur: Yves Martin
Date:  
À: guilde
Sujet: Problème avec xinetd

Bonjour,

J'ai déjà configuré une vieille version de xinetd pour faire de la redirection
TCP/IP mais si j'utilise le même fichier pour cette version 2.3.7
voici les traces de xinetd en mode debug:

[root@pcyma xinetd.d]# service xinetd start
Starting xinetd: 03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included
configuration file: /etc/xinetd.d/chargen [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/chargen-udp [line=14]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/cups-lpd [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/cvs [line=12]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/daytime [line=12]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/daytime-udp [line=14]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/echo [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/echo-udp [line=14]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/fam [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/linuxconf-web [line=18]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/pcymavm-entirex [line=13]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/proftpd-xinetd [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/rsync [line=15]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/servers [line=13]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/services [line=13]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/time [line=13]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/time-udp [line=14]
03/3/20@13:57:37: DEBUG: {handle_includedir} Reading included configuration
file: /etc/xinetd.d/xadmin [line=15]
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing chargen
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing chargen
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing printer
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing cvspserver
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing daytime
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing daytime
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing echo
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing echo
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing linuxconf
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing rsync
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing services
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing servers
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing time
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing time
03/3/20@13:57:37: DEBUG: {remove_disabled_services} removing xadmin
Service defaults
        Instances = 60
        CPS = max conn:25 wait:30
        Bind = All addresses.
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST


Service configuration: sgi_fam
        id = sgi_fam
        flags = IPv4
        type = RPC UNLISTED
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        Groups = no
        Bind = localhost.localdomain
        Server = /usr/bin/fam
        Server argv = fam
        RPC data
                program number = 391002
                rpc_version = 2
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST


Service configuration: ftp
        id = ftp
        flags = IPv4
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        Nice = 10
        Groups = no
        Bind = All addresses.
        Server = /usr/sbin/in.ftpd
        Server argv = in.ftpd
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST DURATION PID USERID
        Log_on_failure flags = HOST USERID


03/3/20@13:57:37: ERROR: {activate_rpc} pmap_set failed. service=sgi_fam
program=391002 version=2
03/3/20@13:57:38: DEBUG: {activate_rpc} Registered 0 versions of sgi_fam
03/3/20@13:57:38: DEBUG: {cnf_start_services} Started service: ftp
03/3/20@13:57:38: DEBUG: {cnf_start_services} mask_max = 6, services_started = 1
03/3/20@13:57:38: NOTICE: {main} xinetd Version 2.3.7 started with libwrap
options compiled in.
03/3/20@13:57:38: NOTICE: {main} Started working: 1 available service
03/3/20@13:57:38: DEBUG: {main_loop} active_services = 1


Et voici donc le fichier qui semble lu mais pas ajouté à la configuration:

# TCP redirect to VMWare host

service pcymavm_entirex
{
        id = pcymavm_entirex
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        port            = 1971
        redirect        = 192.168.246.129 1971
        #only_from       = localhost pcyma tournesol
        protocol        = tcp
        log_on_failure  += USERID
}


Est-ce qu'il manque quelque chose dans la configuration ?

J'ai vérifié que ce n'est pas un problème de firewall car j'arrive
à faire un telnet 192.168.246.129 1971 sur ma machine et cela fonctionne.
D'ailleurs, j'ai utilisé un tunnel TCP/IP en Java en attendant de régler
ce problème.

Merci d'avance.

--
Yves Martin