Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-19-2008, 01:36 AM
|
#1
|
|
Member
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47
Rep:
|
Cant open port
Hi,
I am using Oracle Enterprise Linux 5.0.Here if I open the port number 2372 by using iptables, it will not open.I am checking this port status by using the command " telnet 192.168.0.1 2372". I get the message as following
telnet: connect to address 192.168.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Is this procedure correct to get the port status? Can anybody please guide me to open this port?
|
|
|
|
12-19-2008, 04:46 AM
|
#2
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
which rule did you used to open the port?
which service are you running behind the port?
telnet is ok to check the port
|
|
|
|
12-19-2008, 04:50 AM
|
#3
|
|
Member
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Rep:
|
Run this command & put here the output of the command
netstat -tanp | grep 2372
|
|
|
|
12-19-2008, 09:56 PM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Just to clarify a bit as to the feedback you've received: For a port to be open, something needs to be listening on it. Making a rule allowing packets into a certain port won't open the port - it will still be closed until something actually listens on it. The netstat command you've been given would show us if anything is actually listening on port 2372, which I suspect isn't the case.
|
|
|
|
12-20-2008, 05:58 AM
|
#5
|
|
Member
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47
Original Poster
Rep:
|
Thanks for your replies
I have added following line in iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2372 -j ACCEPT
I am not running any service behind this port
No response for following command
netstat -tanp | grep 2372
|
|
|
|
12-20-2008, 06:32 AM
|
#6
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Quote:
|
I am not running any service behind this port
|
As told in previous posts, you need to run a service behind the port.
ex. behind port 22 runs ssh deamon.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:57 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|