Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9998
  • Last Modified:

How to check if a port is not blocked by the firewall?

Hello,
Here is my working evn:
Server: linux redhat
Client: winxp

My client machine needs to connect to the server using port 1521 to run an application. For some reason (which I am trying to figure out), the application doesn't run. The first step I would like to try in the debug process is to see if the port is not blocked by the server firewall, but not sure which method is accurate.
What I did is to try netstat on the server and got the following:
tcp        0      0 xxx.xxx.xxx.xx:1521     *:*                     LISTEN
where xxx.xxx.xxx.xx is the IP of the server.
Does that mean the server firewall doesn't block this port??
Thanks,
Do
0
dttai
Asked:
dttai
2 Solutions
 
blklineCommented:
No.  It simply means that the a program is listening on the port.  You should be able to see this anytime if logged on at the server.  

I can almost guarantee you that if you installed the firewall with RH, and did not specify that you wanted that port open during configuration, then it's blocked from the outside.

As root on the server use:   service iptables status

and you'll see the rules that have been established.  Post them here if you'd like us to be able to tell you one way or the other.  Of course, this assumes that you are referring to the firewall in RH.     If these boxes are all on the inside network (not available from the internet) then you can easily test this by issuing:

service iptables stop

and the firewall will be brought down.  Try your connection again.
0
 
vn77Commented:
blkline's suggestion would work wonderfully.

Another (simpler) way is to use the lokkit utility (for beginner)
>>gnome -lokkit
or >>lokkit /*for text only*/
then enable the port: 1521:tcp

For your tutorial, go here: http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/ch-basic-firewall.html
G' luck,
vn
0
 
dttaiAuthor Commented:
blkline and vn77:
I'll try both (service iptables stop) and lokkit. They both seem to work.

Thanks experts,
Do
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now