LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2012, 04:53 AM   #1
franklin.sucre
LQ Newbie
 
Registered: Nov 2010
Location: vadgaon
Posts: 12

Rep: Reputation: 0
telnet localhost 106


Dear all,

I am testing poppassd on my freeBSD machine, my poppassd is working fine but i cant telnet to the localhost with port number 106.


# telnet localhost 106
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host

Please suggest.

Thaank You..
 
Old 03-25-2012, 08:19 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Have you added a poppassd entry to /etc/services?

Is your distribution using inetd or xinetd?
 
Old 03-25-2012, 09:06 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Indeed, this is what my /etc/services file looks like
Code:
# unfortunately the poppassd (Eudora) uses a port which has already
# been assigned to a different service. We list the poppassd as an
# alias here. This should work for programs asking for this service.
# (due to a bug in inetd the 3com-tsmux line is disabled)
#3com-tsmux     106/tcp         poppassd
#3com-tsmux     106/udp         poppassd
note the lines are commented out by default ...
 
Old 03-26-2012, 01:34 AM   #4
franklin.sucre
LQ Newbie
 
Registered: Nov 2010
Location: vadgaon
Posts: 12

Original Poster
Rep: Reputation: 0
Re: telnet localhost 106

Dear sir,

My /etc/services entry from my freeBSD machine is as follows.

poppassd 106/tcp poppassd
poppassd 106/udp poppassd
#3com-tsmux 106/udp

And i dont have a xinetd.d entry and made myself like /etc/xinetd.d/poppassd.c and while compiling this using:

# gcc poppassd.c -o poppassd -lcrypt

I receive the following errors:
-------------------------------------------------------------------
poppassd.c:1: error: syntax error before "poppassd"
poppassd.c:2: error: syntax error before '{' token
poppassd.c:4: error: `no' undeclared here (not in a function)
poppassd.c:4: error: syntax error before "socket_type"
-------------------------------------------------------------------

thank you for your concerns and i expect a quick help again. My version is 6.2-RELEASE FreeBSD 6.2-RELEASE.


Thank You again.
 
Old 03-26-2012, 04:14 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
You're not supposed to put the poppassd executable in /etc/xindetd.d, and the service config file does not need compiling.

You need to do the following:
  • Compile poppassd (or download a precompiled version)
  • Install poppassd to a directory in the path, like, say, /usr/bin
  • Add a service entry to /etc/service (you've done this)
  • Create /etc/xinetd.d/poppassd (google 'poppassd xinetd' for more information)
  • Restart xinetd
 
Old 04-30-2012, 11:19 AM   #6
webaccounts
Member
 
Registered: May 2008
Location: Columbus Ohio
Distribution: CentOS 5.9/6.4 x64
Posts: 44

Rep: Reputation: 19
It sounds like your server is blocking you because you're trying to connect as ::1 instead of 127.0.0.1. With IPv6 you need to allow poppassd to receive from your IPv6 localhost IP.

Edit /etc/xinetd.d/poppassd

Change:
Code:
only_from               = 127.0.0.1
To:
Code:
only_from               = 127.0.0.1 ::1
 
  


Reply

Tags
telnet



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot telnet localhost badihi Linux - Server 7 06-05-2011 06:15 PM
fail to telnet localhost 106 satimis Linux - Server 7 12-16-2007 12:53 PM
Fail to telnet localhost 25 satimis Linux - Server 19 11-27-2006 09:43 AM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration