LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to open a port in linux when firewall/Iptables is off (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-open-a-port-in-linux-when-firewall-iptables-is-off-4175499750/)

shishirms 03-28-2014 12:10 AM

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

chrism01 03-28-2014 12:46 AM

Like nmap is telling you, nothing is listening on 127.0.0.1, port 9002, so obviously you can't connect

shishirms 03-28-2014 12:52 AM

Thanks for your response Chris...

Any idea how can i make 9002 port working without firewall?

Madhu Desai 03-28-2014 01:26 AM

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.

shishirms 03-28-2014 05:06 AM

I am installing (OES)Oracle Entitlements Server. Here i am using one script to install it provided by 3rd party.

shishirms 03-28-2014 09:50 AM

Issue resolved... :)

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


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