fail to telnet localhost 106


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu fail to telnet localhost 106
# 15  
Old 12-16-2007
Quote:
Originally Posted by reborg
If you are using netkit-inetd the you need to add:
Code:
poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd

to /etc/inetd.conf assuming you are actually using tcp wappers.
Edit /etc/inetd.conf
adding following line on the file;
Code:
poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd

$ sudo /etc/init.d/inetd restart
Code:
 * Restarting internet superserver...                                                                                                                   [ OK ]

$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

It comes back to the original problem before deleting xinetd.


Quote:
If you are using xinted, you don't add any configuration to xinetd.conf, you create a control file in /etc/xinetd.d (I think that is the correct directory, but since I don't have it I cannot check).
I already deleted xinetd. I won't use it unless necessary.


B.R.
satimis
# 16  
Old 12-16-2007
Quote:
Originally Posted by satimis
Code:
$ telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

Note that it said "Connection closed" not "Connection refused".

Does netstat say anyone is listening on 106?

Code:
netstat -an | grep LISTEN

# 17  
Old 12-16-2007
Also try without tcp wrappers first:

Code:
poppassd stream tcp nowait root /usr/sbin/poppassd in.poppassd

# 18  
Old 12-16-2007
Quote:
Originally Posted by porter
Note that it said "Connection closed" not "Connection refused".

Does netstat say anyone is listening on 106?

Code:
netstat -an | grep LISTEN

$ sudo netstat -an | grep LISTEN
Code:
Password:
tcp        0      0 0.0.0.0:20000           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:106             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
tcp        0      0 192.168.0.10:53         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 192.168.0.10:22         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8222            0.0.0.0:*               LISTEN     
tcp6       0      0 :::993                  :::*                    LISTEN     
tcp6       0      0 :::995                  :::*                    LISTEN     
tcp6       0      0 :::110                  :::*                    LISTEN     
tcp6       0      0 :::143                  :::*                    LISTEN     
tcp6       0      0 :::53                   :::*                    LISTEN     
tcp6       0      0 :::25                   :::*                    LISTEN     
tcp6       0      0 ::1:953                 :::*                    LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     16523    /tmp/.font-unix/fs710
0
unix  2      [ ACC ]     STREAM     LISTENING     17107    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     17213    /tmp/scim-socket-fron
tend-satimis
unix  2      [ ACC ]     STREAM     LISTENING     17232    /tmp/scim-helper-mana
ger-socket-satimis
unix  2      [ ACC ]     STREAM     LISTENING     17236    /tmp/scim-panel-socke
t:0-satimis
unix  2      [ ACC ]     STREAM     LISTENING     14504    @/var/run/hald/dbus-B
dDEyHDCHn
unix  2      [ ACC ]     STREAM     LISTENING     16673    /var/run/vmnat.5114
unix  2      [ ACC ]     STREAM     LISTENING     16359    public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     16366    private/tlsmgr
unix  2      [ ACC ]     STREAM     LISTENING     16704    /var/run/vmware/root/
5119/server-fd
unix  2      [ ACC ]     STREAM     LISTENING     16370    private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     16374    private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     16706    /var/run/vmware/root/
5119/vmx-fd
unix  2      [ ACC ]     STREAM     LISTENING     16378    private/defer
unix  2      [ ACC ]     STREAM     LISTENING     16382    private/trace
unix  2      [ ACC ]     STREAM     LISTENING     16708    /var/run/vmware/root/
5119/server-vcvmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16386    private/verify
unix  2      [ ACC ]     STREAM     LISTENING     16390    public/flush
unix  2      [ ACC ]     STREAM     LISTENING     16710    /var/run/vmware/root/
5119/server-vmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16394    private/proxymap
unix  2      [ ACC ]     STREAM     LISTENING     16398    private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     16712    /var/run/vmware/root/
5119/server-vmxvmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16402    private/relay
unix  2      [ ACC ]     STREAM     LISTENING     14505    @/var/run/hald/dbus-g
t3yconfNt
unix  2      [ ACC ]     STREAM     LISTENING     16406    public/showq
unix  2      [ ACC ]     STREAM     LISTENING     16714    /var/run/vmware/root/
5119/nfc-fd
unix  2      [ ACC ]     STREAM     LISTENING     16410    private/error
unix  2      [ ACC ]     STREAM     LISTENING     16414    private/discard
unix  2      [ ACC ]     STREAM     LISTENING     16716    /var/run/vmware/root/
5119/fsserver-fd
unix  2      [ ACC ]     STREAM     LISTENING     16418    private/local
unix  2      [ ACC ]     STREAM     LISTENING     16422    private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     16426    private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     16430    private/anvil
unix  2      [ ACC ]     STREAM     LISTENING     16434    private/scache
unix  2      [ ACC ]     STREAM     LISTENING     16438    private/maildrop
unix  2      [ ACC ]     STREAM     LISTENING     16442    private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     16446    private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     16450    private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     16454    private/scalemail-bac
kend
unix  2      [ ACC ]     STREAM     LISTENING     16458    private/mailman
unix  2      [ ACC ]     STREAM     LISTENING     16490    /var/spool/postfix/va
r/run/saslauthd/mux
unix  2      [ ACC ]     STREAM     LISTENING     15755    /var/run/cups/cups.so
ck
unix  2      [ ACC ]     STREAM     LISTENING     16012    /var/run/courier/auth
daemon/socket.tmp
unix  2      [ ACC ]     STREAM     LISTENING     14486    /var/run/dbus/system_
bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     16575    /var/run/proftpd/prof
tpd.sock
unix  2      [ ACC ]     STREAM     LISTENING     15841    /var/run/mysqld/mysql
d.sock

# 19  
Old 12-16-2007
Quote:
Originally Posted by satimis
$ sudo netstat -an | grep LISTEN
Code:
Password:
tcp        0      0 0.0.0.0:106             0.0.0.0:*               LISTEN

Yup, something's there. All you need to find out is what it is.

Is there anything in the syslog?

Can you confirm you can execute the command line indicated in /etc/inetd.conf for port 106 from the command prompt?
# 20  
Old 12-16-2007
Quote:
Originally Posted by reborg
Also try without tcp wrappers first:

Code:
poppassd stream tcp nowait root /usr/sbin/poppassd in.poppassd

Sorry I don't follow.

$ cat /etc/pam.d/poppassd
Code:
#
# The PAM configuration file for the `poppassd' daemon
#

@include common-auth
@include common-password

Whether putting the line
Code:
poppassd stream tcp nowait root /usr/sbin/poppassd

on the file /etc/pam.d/poppassd ?


Performed following steps;
$ cat /etc/inetd.conf
Code:
poppassd stream tcp nowait root /usr/sbin/poppassd

$ sudo nano /etc/inetd.conf
Code:
satimis@mail:~$ sudo /etc/init.d/inetd restart
 * Restarting internet superserver...                                       [ OK ]

$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

same result


satimis
# 21  
Old 12-16-2007
Quote:
Originally Posted by porter
Yup, something's there. All you need to find out is what it is.

Is there anything in the syslog?
$ tail /var/log/syslog
Code:
Dec 17 09:50:27 mail inetd[5457]: <off>/stream: unknown service
Dec 17 09:51:14 mail inetd[5475]: <off>/stream: unknown service
Dec 17 09:51:59 mail inetd[5493]: <off>/stream: unknown service
Dec 17 09:52:54 mail inetd[5515]: execv /usr/sbin/tcpd: No such file or directory
Dec 17 09:54:50 mail inetd[5535]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 09:55:41 mail inetd[5537]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:07:54 mail postfix/smtpd[5550]: connect from 125-27-165-208.adsl.totbb.net[125.27.165.208]
Dec 17 10:07:55 mail postfix/smtpd[5550]: warning: support for restriction "reject_maps_rbl" will be removed from Postfix; use "reject_rbl_client domain-name" instead
Dec 17 10:07:55 mail postfix/smtpd[5550]: NOQUEUE: reject: RCPT from 125-27-165-208.adsl.totbb.net[125.27.165.208]: 554 5.7.1 Service unavailable; Client host [125.27.165.208] blocked using bl.spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?125.27.165.208; from=<steven@xerox.m0.net> to=<satimis@satimis.com> proto=ESMTP helo=<125-27-161-107.adsl.totbb.net>
Dec 17 10:07:56 mail postfix/smtpd[5550]: disconnect from 125-27-165-208.adsl.totbb.net[125.27.165.208]

Quote:
Can you confirm you can execute the command line indicated in /etc/inetd.conf for port 106 from the command prompt?
Sorry I don't follow.

I executed all commands on console of the same machine.


satimis
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Telnet failed to localhost.

Hi, I am trying telnet to localhost 514. But the connection is refusing. Port does not appear in netstat. IP table service is also off. (5 Replies)
Discussion started by: Nishit
5 Replies

2. Shell Programming and Scripting

If Telnet fail abort other command..??

Hi Team, I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time.. CONFIG_CHNG.sh printf 'Please Input Node ID : ' read node node="$node" #exec > node_log_$node.log 2>&1 #set -x >... (2 Replies)
Discussion started by: Ganesh Mankar
2 Replies

3. Linux

Telnet fail

Hi, I try to telnet to server: # telnet xx.xxx.1.72 1521 Trying xx.xxx.1.72... telnet: connect to address xx.xxx.1.72: Connection refused telnet: Unable to connect to remote host: Connection refused iptables is off: # service iptables status Firewall is stopped. # And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies
Login or Register to Ask a Question