Gentoo Archives: gentoo-user

From: THUFIR HAWAT <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] telnet localhost
Date: Mon, 27 Mar 2006 14:09:56
Message-Id: bf6b6d5c0603270604o68aa335p5a869972ab8ca2bb@mail.gmail.com
In Reply to: Re: [gentoo-user] telnet localhost by Matt Richards
1 On 3/27/06, Matt Richards <matt@×××××××××.net> wrote:
2 > > THUFIR HAWAT wrote:
3 > >
4 > >> Why can I not telnet to my own localhost?
5 > >
6 > > Is leafnode enabled? Or is it still disabled?
7 > >
8 > > Check your xinetd configuration.
9
10 I think it's enabled, see below.
11
12 > > Alexander Skwar
13 > > --
14 > > People who go to conferences are the ones who shouldn't.
15 > > --
16 > > gentoo-user@g.o mailing list
17 > >
18 > >
19 > you might want to also try a
20 > netstat -an
21 > and see if your computer is listerning on the nntp port
22 > and if it is what interface(s) is it listerning on ?
23
24 None, apparently--see below.
25
26 > --
27 > gentoo-user@g.o mailing list
28 >
29 >
30
31 thufir@localhost ~ $
32 thufir@localhost ~ $
33 thufir@localhost ~ $ cat -n /etc/hosts
34 1 # /etc/hosts: This file describes a number of hostname-to-address
35 2 # mappings for the TCP/IP subsystem. It is mostly
36 3 # used at boot time, when no name servers are running.
37 4 # On small systems, this file can be used instead of a
38 5 # "named" name server. Just add the names, addresses
39 6 # and any aliases to this file...
40 7 # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
41 2003/08/04 20:12:25 azarah Exp $
42 8 #
43 9
44 10 #127.0.0.1 localhost
45 11 127.0.0.1 hawat.thufir.invalid arrakis localhost
46 12 192.168.0.2 gravity.twi-31o2.org gravity
47 thufir@localhost ~ $ cat -n /etc/leafnode/config
48 1 ## Unread articles will be deleted after this many days if
49 2 ## you don't define special expire times. Mandatory.
50 3 expire = 20
51 4
52 5 ## This is the NNTP server leafnode fetches its news from.
53 6 ## You need read and post access to it. Mandatory.
54 7 server = shawnews.vc.shawcable.net
55 8
56 9
57 10 hostname = hawat.thufir.invalid
58 11
59 12 initialfetch = 5
60 thufir@localhost ~ $ cat -n /etc/xinetd.conf
61 1 # /etc/xinetd.conf: sample configuration file for xinetd
62 2
63 3 defaults
64 4 {
65 5 only_from = localhost
66 6 instances = 60
67 7 log_type = SYSLOG authpriv info
68 8 log_on_success = HOST PID
69 9 log_on_failure = HOST
70 10 cps = 25 30
71 11 }
72 12
73 13 includedir /etc/xinetd.d
74 thufir@localhost ~ $ cat -n /etc/xinetd.d/leafnode-nntp
75 1 # default: off
76 2 # description: Leafnode - accepts connections on port 119 (NNTP)
77 3
78 4 service nntp
79 5 {
80 6 socket_type = stream
81 7 protocol = tcp
82 8 wait = no
83 9 user = news
84 10 server = /usr/sbin/leafnode
85 11 disable = no
86 12 }
87 thufir@localhost ~ $ netstat -an | grep nntp
88 thufir@localhost ~ $ date
89 Mon Mar 27 14:59:55 IST 2006
90 thufir@localhost ~ $
91
92 Is it a problem with the FQDN? On re-reading the FAQ, I changed the
93 hostname as I don't own gmail.com, but I *do* have an account with
94 gmail, so...
95
96 I also have a thread on news.softwear.readers, pardon for the
97 multiposting. I was just trying to address the telnet issue here.
98 Most of what's been written in reply goes over my head.
99
100
101 -Thufir
102
103 --
104 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] telnet localhost Alexander Skwar <listen@×××××××××××××××.name>