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 20:46:52
Message-Id: bf6b6d5c0603271239y1dbe860bv1032937cf6015111@mail.gmail.com
In Reply to: Re: [gentoo-user] telnet localhost by John Jolet
1 On 3/27/06, John Jolet <john@×××××.net> wrote:
2 ..
3 > > As root a netstat -ptln might tell you if xinetd is holding the
4 > > port, but since xinetd is a superdaemon of sorts it might not
5 > > show
6 > > it on the port unless there is a working connection... I'm not
7 > > sure
8 > > and have no desire to install xinetd to find out. :)
9 >
10 > as long as it's configured to not be turned off, xinetd will hold
11 > the
12 > port open. I use netstat -a|grep LISTEN and it should show
13 > up....
14
15
16 Based on the /var/log/messages I don't think I have the FQDN correctly set.
17
18
19
20 localhost ~ #
21 localhost ~ # netstat -ptln
22 Active Internet connections (only servers)
23 Proto Recv-Q Send-Q Local Address Foreign Address
24 State PID/Program name
25 localhost ~ # netstat -a|grep LISTEN
26 unix 2 [ ACC ] STREAM LISTENING 12805 /dev/log
27 unix 2 [ ACC ] STREAM LISTENING 13510 @/tmp/dbus-MfRsQwACax
28 unix 2 [ ACC ] STREAM LISTENING 13937 /tmp/mapping-thufir
29 unix 2 [ ACC ] STREAM LISTENING 13745 @/tmp/fam-thufir-
30 unix 2 [ ACC ] STREAM LISTENING 13478 /tmp/.X11-unix/X0
31 unix 2 [ ACC ] STREAM LISTENING 13516
32 /tmp/ssh-Nyrxjn9813/agent.9813
33 unix 2 [ ACC ] STREAM LISTENING 13541
34 /tmp/orbit-thufir/linc-2672-0-12dd6d02390d6
35 unix 2 [ ACC ] STREAM LISTENING 13547
36 /tmp/orbit-thufir/linc-2655-0-79381fe856347
37 unix 2 [ ACC ] STREAM LISTENING 13693 /tmp/.ICE-unix/9813
38 unix 2 [ ACC ] STREAM LISTENING 13702
39 /tmp/keyring-xfFTos/socket
40 unix 2 [ ACC ] STREAM LISTENING 13714
41 /tmp/orbit-thufir/linc-267a-0-2cecba2f71d48
42 unix 2 [ ACC ] STREAM LISTENING 13736
43 /tmp/orbit-thufir/linc-267c-0-223b7714985c4
44 unix 2 [ ACC ] STREAM LISTENING 13781
45 /tmp/orbit-thufir/linc-2697-0-3e87c9607e27b
46 unix 2 [ ACC ] STREAM LISTENING 13806
47 /tmp/orbit-thufir/linc-269a-0-4fbf78acead8f
48 unix 2 [ ACC ] STREAM LISTENING 13832
49 /tmp/orbit-thufir/linc-269c-0-631b6b07a050a
50 unix 2 [ ACC ] STREAM LISTENING 13860
51 /tmp/orbit-thufir/linc-269e-0-461554275a402
52 unix 2 [ ACC ] STREAM LISTENING 13889
53 /tmp/orbit-thufir/linc-26a2-0-3d68ff798e2f0
54 unix 2 [ ACC ] STREAM LISTENING 13925
55 /tmp/orbit-thufir/linc-26a8-0-74ff7027c3be2
56 unix 2 [ ACC ] STREAM LISTENING 13969
57 /tmp/orbit-thufir/linc-26bf-0-48e175a7e63a
58 unix 2 [ ACC ] STREAM LISTENING 14103
59 /tmp/orbit-thufir/linc-26ca-0-493a1c81bc014
60 unix 2 [ ACC ] STREAM LISTENING 14120
61 /tmp/orbit-thufir/linc-26d1-0-415c7c152252c
62 localhost ~ # cat -n /etc/xinetd.conf
63 1 # /etc/xinetd.conf: sample configuration file for xinetd
64 2
65 3 defaults
66 4 {
67 5 only_from = localhost
68 6 instances = 60
69 7 log_type = SYSLOG authpriv info
70 8 log_on_success = HOST PID
71 9 log_on_failure = HOST
72 10 cps = 25 30
73 11 }
74 12
75 13 includedir /etc/xinetd.d
76 localhost ~ # cat -n /etc/xinetd.d/leafnode-nntp
77 1 # default: off
78 2 # description: Leafnode - accepts connections on port 119 (NNTP)
79 3
80 4 service nntp
81 5 {
82 6 socket_type = stream
83 7 protocol = tcp
84 8 wait = no
85 9 user = news
86 10 server = /usr/sbin/leafnode
87 11 disable = no
88 12 }
89 localhost ~ # cat -n /etc/leafnode/config
90 1 ## Unread articles will be deleted after this many days if
91 2 ## you don't define special expire times. Mandatory.
92 3 expire = 20
93 4
94 5 ## This is the NNTP server leafnode fetches its news from.
95 6 ## You need read and post access to it. Mandatory.
96 7 server = shawnews.vc.shawcable.net
97 8
98 9
99 10 hostname = hawat.thufir.invalid
100 11
101 12 initialfetch = 5
102 localhost ~ # date
103 Mon Mar 27 21:35:53 IST 2006
104 localhost ~ # cat -n /etc/hosts
105 1 # /etc/hosts: This file describes a number of hostname-to-address
106 2 # mappings for the TCP/IP subsystem. It is mostly
107 3 # used at boot time, when no name servers are running.
108 4 # On small systems, this file can be used instead of a
109 5 # "named" name server. Just add the names, addresses
110 6 # and any aliases to this file...
111 7 # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
112 2003/08/04 20:12:25 azarah Exp $
113 8 #
114 9
115 10
116 11 127.0.0.1 localhost
117 12 127.0.0.1 hawat.thufir.invalid hawat arrakis
118 localhost ~ # date
119 Mon Mar 27 21:38:41 IST 2006
120 localhost ~ #
121
122
123
124
125 thanks,
126
127 Thufir
128
129 --
130 gentoo-user@g.o mailing list

Replies

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