Newsgroup: it.comp.os.linux.iniziare
Titolo: Problemi telnet

Ho installato leafnode seguendo la procedura standard, ma non riesco a 
vederlo tramite telnet:
# telnet localhost 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Stesso discorso vale per 192.168.0.1 (ho una scheda di rete):
# telnet 192.168.0.1 119
Trying 192.168.0.1...
telnet: Unable to connect to remote host: Connection refused
Se faccio partire leafnode sembra che funzioni perfettamente:
# /usr/local/sbin/leafnode
200 Leafnode NNTP Daemon, version 1.9.27.rel running at 192.168.0.1 (my 
fqdn: 192.168.0.1)
Anche fetchnews funziona, ho già scaricato tutta la lista dei ng.
L'unico problema resta la connessione in locale del newsreader (e quindi 
telnet).
Allego alcuni file di configurazione:
# cat /etc/hosts.allow
leafnode: 127.0.0.1 
192.168.0.0/255.255.255.0
# cat /etc/xinetd.conf
defaults
{
         instances               = 60
         log_type                = SYSLOG authpriv
         log_on_success          = HOST PID
         log_on_failure          = HOST
         cps                     = 25 30
}
includedir /etc/xinetd.d
# cat /etc/xinetd.d/nntp
service nntp {
         socket_type     = stream
         protocol        = tcp
         wait    = no
         port    = 119
         user    = root
         group   = root
         server  = /usr/local/sbin/leafnode
}
Se volete altre info dite pure.
Grazie per il vostro aiuto!
-- 
Marco "Duff" Palermo
Marco...@SPAMHotmail.com
http://www.marcoduff.com/

 telnet: Unable to connect to remote host: Connection refused
Ma e' avviato ? netstat che dice ? Firewall ?
Davide

 Firewall ?
No, neanche installato. Appena Telecom si decide a mettermi l'ADSL se ne 
riparla! ;-)
Fammi sapere!


 Con quale opzione devo guardare?
Prima avvii a manella e poi usa 
netstat -an | grep 113
Davide

>>:/OuZ\:<<<
per rispondermi in mail rimuovere TOGLIQUESTO

 netstat -an | grep 113
Intendevi grep 119 forse?
Ok ho aperto due shell
1ma shell:
# /usr/local/sbin/leafnode
200 Leafnode NNTP Daemon, version 1.9.27.rel running at 192.168.0.1 (my 
fqdn: 192.168.0.1)
2da shell:
# netstat -an | grep 119
nessun risultato
# netstat -an | grep 119
nessun risultato
# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 
0.0.0.0:32768
           0.0.0.0:*               LISTEN
tcp        0      0 
127.0.0.1:32770
         0.0.0.0:*               LISTEN
tcp        0      0 
0.0.0.0:111
             0.0.0.0:*               LISTEN
tcp        0      0 
0.0.0.0:6000
            0.0.0.0:*               LISTEN
tcp        0      0 
0.0.0.0:631
             0.0.0.0:*               LISTEN
tcp        0      0 
0.0.0.0:7741
            0.0.0.0:*               LISTEN
udp        0      0 
0.0.0.0:32768
           0.0.0.0:*
udp        0      0 
0.0.0.0:7741
            0.0.0.0:*
udp        0      0 
0.0.0.0:111
             0.0.0.0:*
udp        0      0 
0.0.0.0:631
             0.0.0.0:*
raw        0      0 
0.0.0.0:1
               0.0.0.0:*               7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     3026 
/tmp/.font-unix/fs-1
unix  2      [ ACC ]     STREAM     LISTENING     7779 
/tmp/.ICE-unix/dcop2457-1037568624
unix  11     [ ]         DGRAM                    2780   /dev/log
unix  2      [ ACC ]     STREAM     LISTENING     2869   /dev/gpmctl
unix  2      [ ACC ]     STREAM     LISTENING     7834 
/tmp/ksocket-marcoduff/kdeinit-:0
unix  2      [ ACC ]     STREAM     LISTENING     7897 
/tmp/mcop-marcoduff/192_168_0_1-09ae-3dd80a73
unix  2      [ ACC ]     STREAM     LISTENING     7529   /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     7850 
/tmp/ksocket-marcoduff/klauncheraH7Aja.slave-socket
unix  2      [ ACC ]     STREAM     LISTENING     7928   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8810 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8809
unix  3      [ ]         STREAM     CONNECTED     8807   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8806
unix  3      [ ]         STREAM     CONNECTED     8804   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8803
unix  3      [ ]         STREAM     CONNECTED     8600   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8599
unix  3      [ ]         STREAM     CONNECTED     8598 
/tmp/mcop-marcoduff/192_168_0_1-09ae-3dd80a73
unix  3      [ ]         STREAM     CONNECTED     8597
unix  2      [ ]         DGRAM                    8463
unix  3      [ ]         STREAM     CONNECTED     8438   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8437
unix  3      [ ]         STREAM     CONNECTED     8083 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8082
unix  3      [ ]         STREAM     CONNECTED     8080   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8079
unix  3      [ ]         STREAM     CONNECTED     8077   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8076
unix  3      [ ]         DGRAM                    8075
unix  3      [ ]         DGRAM                    8074
unix  3      [ ]         STREAM     CONNECTED     8070   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8069
unix  3      [ ]         STREAM     CONNECTED     8065   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8064
unix  3      [ ]         STREAM     CONNECTED     8060   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8059
unix  3      [ ]         STREAM     CONNECTED     8051   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8050
unix  3      [ ]         STREAM     CONNECTED     8049 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8048
unix  3      [ ]         STREAM     CONNECTED     8045   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8044
unix  3      [ ]         STREAM     CONNECTED     8041 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8040
unix  3      [ ]         STREAM     CONNECTED     8029   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     8028
unix  3      [ ]         STREAM     CONNECTED     8024   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8023
unix  3      [ ]         STREAM     CONNECTED     8022 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8021
unix  3      [ ]         STREAM     CONNECTED     8015   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8014
unix  3      [ ]         STREAM     CONNECTED     8011 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     8010
unix  3      [ ]         STREAM     CONNECTED     7975   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     7974
unix  3      [ ]         STREAM     CONNECTED     7970   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7969
unix  3      [ ]         STREAM     CONNECTED     7968 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7967
unix  3      [ ]         STREAM     CONNECTED     7963 
/tmp/mcop-marcoduff/192_168_0_1-09ae-3dd80a73
unix  3      [ ]         STREAM     CONNECTED     7962
unix  3      [ ]         STREAM     CONNECTED     7958   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     7957
unix  3      [ ]         STREAM     CONNECTED     7953   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7952
unix  3      [ ]         STREAM     CONNECTED     7951 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7950
unix  3      [ ]         STREAM     CONNECTED     7945 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7944
unix  3      [ ]         STREAM     CONNECTED     7938   /tmp/.ICE-unix/2485
unix  3      [ ]         STREAM     CONNECTED     7937
unix  3      [ ]         STREAM     CONNECTED     7935   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7934
unix  3      [ ]         STREAM     CONNECTED     7932 
/tmp/mcop-marcoduff/192_168_0_1-09ae-3dd80a73
unix  3      [ ]         STREAM     CONNECTED     7931
unix  3      [ ]         STREAM     CONNECTED     7927 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7926
unix  3      [ ]         STREAM     CONNECTED     7923   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7922
unix  3      [ ]         STREAM     CONNECTED     7916 
/tmp/ksocket-marcoduff/kdeinit-:0
unix  3      [ ]         STREAM     CONNECTED     7915
unix  3      [ ]         STREAM     CONNECTED     7909   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7908
unix  3      [ ]         STREAM     CONNECTED     7907 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7906
unix  3      [ ]         STREAM     CONNECTED     7866   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7865
unix  3      [ ]         STREAM     CONNECTED     7844 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7843
unix  3      [ ]         STREAM     CONNECTED     7838
unix  3      [ ]         STREAM     CONNECTED     7837
unix  3      [ ]         STREAM     CONNECTED     7831   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7830
unix  3      [ ]         STREAM     CONNECTED     7808 
/tmp/.ICE-unix/dcop2457-1037568624
unix  3      [ ]         STREAM     CONNECTED     7807
unix  3      [ ]         STREAM     CONNECTED     7542 
/tmp/.font-unix/fs-1
unix  3      [ ]         STREAM     CONNECTED     7541
unix  7      [ ]         STREAM     CONNECTED     7543   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     7533
unix  2      [ ]         DGRAM                    5803
unix  2      [ ]         DGRAM                    4235
unix  2      [ ]         DGRAM                    3548
unix  2      [ ]         DGRAM                    3085
unix  2      [ ]         DGRAM                    3029
unix  2      [ ]         DGRAM                    2868
unix  2      [ ]         DGRAM                    2844
unix  2      [ ]         DGRAM                    2791
Non so più che fare!


 che il group nel file qui sopra
Inizialmente erano settati a news, poi per controlli li ho settati a 
root. Tanto se funziona per news funziona anche per root!


 root. Tanto se funziona per news funziona anche per root!
a questo punto non so proprio cosa dirti :(
