LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2011, 03:27 AM   #1
lekhrajdeshmukh
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Need to open telnet port


Hi All,

I am trying to open the telnet port on my system with port 4100 and for the same i have inserted the entries in iptables file using below command.
/sbin/iptables -A INPUT -s 132.186.208.83/24 -p tcp -dport 4100 -j ACCEPT

After that i fire the following command
service iptables save
132.186.208.83 this is my own server ip and when i tried to telnet this IP with 4100 port I received connection refused response message.

Request you all to help me and correct me if I am doing anything wrong....

Thanks & Regards,
Lekhraj
 
Old 05-06-2011, 04:00 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 877

Rep: Reputation: 184Reputation: 184
Is telnet actually listening on port 4100? It should either be running and should show up as open in the output of "netstat -antp" or it should be configured in inetd or xinetd and the incomming connection attempt should run the telnet process which will open the port.

You also need to check that you don't have another rule above this one blocking the port before this rule gets reached.
 
1 members found this post helpful.
Old 01-17-2013, 03:21 AM   #3
sudeepnarayan.banerjee
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
Hi All,

Can any one tell me how to open this port 4100 from linux server?

I did the same iptables command but in netstat -antp output it shows only Listen. But telnet <ip> 4100 does not work!

Thanks in advance
Sudeep
 
Old 01-17-2013, 06:57 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,263

Rep: Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329
As baldy3105 pointed out, just opening a port is insufficient; you also need to ensure the telnet server is installed and listening on that port.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
telnet port not open nish154 Red Hat 2 09-05-2005 05:12 PM
How to open the telnet port? vous Linux - Networking 5 02-06-2004 10:09 AM
open telnet port???? stonegold84 Linux - Networking 9 07-31-2003 01:59 AM
Need help to open Telnet port trocaking Linux - Networking 4 08-05-2002 12:32 AM


All times are GMT -5. The time now is 01:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration