LinuxQuestions.org
Review your favorite Linux distribution.
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 03-28-2014, 12:10 AM   #1
shishirms
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Rep: Reputation: Disabled
How to open a port in linux when firewall/Iptables is off


Firewall is off, but still not able to telnet to port 9002? can anyone please help me how to open this port with no firewall?

[root@MT-VYGRM-VM12 ~]# service iptables status
Firewall is stopped.
[root@MT-VYGRM-VM12 ~]# telnet localhost 9002
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

[root@MT-VYGRM-VM12 ~]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2014-03-28 16:00 IST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1675 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
631/tcp open ipp
705/tcp open unknown
 
Old 03-28-2014, 12:46 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Like nmap is telling you, nothing is listening on 127.0.0.1, port 9002, so obviously you can't connect
 
Old 03-28-2014, 12:52 AM   #3
shishirms
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your response Chris...

Any idea how can i make 9002 port working without firewall?
 
Old 03-28-2014, 01:26 AM   #4
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
You can block/unblock ports by firewall. But if you want to open any particular port, you need to attach any service/daemon to it. Its like many information counters at airport. If you goto any counter, you need a person on the other side of the counter, so he can *listen* to you. Here counters are ports, and the other person is service/daemon.

So, if you want to open port 80, you install web-server, at which it will install httpd daemon, which will listen on port 80 for any traffic.

In Redhat 6, port 9002 is associated with dynamid daemon, i'm not sure to which server its associated with.
 
1 members found this post helpful.
Old 03-28-2014, 05:06 AM   #5
shishirms
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I am installing (OES)Oracle Entitlements Server. Here i am using one script to install it provided by 3rd party.

Last edited by shishirms; 03-28-2014 at 09:52 AM.
 
Old 03-28-2014, 09:50 AM   #6
shishirms
LQ Newbie
 
Registered: Mar 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Issue resolved...

It was nothing related to port or firewall. There was some mistake in /etc/sysconfig/network

Last edited by shishirms; 03-28-2014 at 09:51 AM.
 
  


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
CentOS 5: iptables - cannot open port 80 and nat to port 8080 for Tomcat steve willett Linux - Networking 4 09-24-2010 04:03 AM
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
Graphical Firewall for Linux with alerts to port scans, etc + interact with IPTABLES doraimom Linux - Security 7 04-15-2007 07:49 PM
port 25 filtered despite firewall having port 25 open ille.pugil42 Linux - Security 8 03-09-2007 12:51 AM
Open Port - Linux Firewall - IPtables SBFree Linux - Networking 1 05-12-2006 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 AM.

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