PDA

View Full Version : Problema con l'opzione -localhost di x11vnc e inetd.conf


balubeto
25-03-2008, 16:16
CIAO

Ho un Server con GNU/Linux Debian Lenny Testing con il server OpenSSH ed il server x1vnc ed un Client Windows XP SP2 con un client SSH ed il viewer TightVNC.

Ho il file /etc/inetd.conf


PLUTO:~# cat /etc/inetd.conf
# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#time stream tcp nowait root internal

#:STANDARD: These are standard services.

5900 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc.sh
#5901 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-root.sh
#5902 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-balubeto.sh
#5903 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-aldoalex.sh

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services
#<off># ident stream tcp wait identd /usr/sbin/identd identd

#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
#<off># sane-port stream tcp nowait saned:saned /usr/sbin/saned saned


e il file /usr/local/bin/x11vnc.sh


PLUTO:~# cat /usr/local/bin/x11vnc.sh
#!/bin/sh
/usr/bin/x11vnc -inetd -rfbport 5900 -rfbauth /root/.vnc/passwd -localhost -display :0 -auth /var/lib/gdm/:0.Xauth -capslock -forever -logfile /var/log/x11vnc.log


Se effetuo una connessione SSH e, poi, da Windows, carico il viewer VNC, il server x11vnc non sente alcun "segnale" pur restando in ascolto; mentre, se io tolgo l'opzione -localhost dallo script x11vnc , il server x11vnc permette al viewer VNC di connettersi.

Ho notato che, se dalla shell remota SSH, lancio il server x11vnc con il comando /usr/bin/x11vnc -rfbport 5900 -rfbauth /root/.vnc/passwd -localhost -display :0 -auth /var/lib/gdm/:0.Xauth -capslock -forever -logfile /var/log/x11vnc.log, il viewer VNC si connette senza problemi.

Quindi, che cosa non va nel Super-Server inetd?

GRAZIE

CIAO