[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


port blocking

Posted on 2001-06-19
Medium Priority
Last Modified: 2010-03-18
How to block a particular (software) port and how to see what ports are blocked?  I am using Redhat 6.2 Linux.
Question by:narayanamoorthy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 40

Expert Comment

ID: 6210365
ipchains comes readily to mind if you want to selectively block access to a given port. If you don't use the port and don't want anyone else to you can simply prevent the port from being accessed by disabling server for the port and/or preventing it from being started by inetd (check inetd.conf).

Expert Comment

ID: 6211487
You can see various services using the command ps -A and see that certain demeons are running the good way to block or stop that service use the inetd.conf file mostly places in /etc/inetd.conf and put a # in front on the line which you dont whant to use.


Expert Comment

ID: 6211805
'ps -aux' will give you a more detailed ideal of what is actually running on your system

Accepted Solution

fauzdar earned 30 total points
ID: 6213792
the best way to know what ports are blocked is to see what ports are open. for checking the open ports on you machine use nmap. its a easy utility to use. it tells you what all ports are open.

Expert Comment

ID: 6232307
Linux# ipchains -L -n

use linuxconf's firewall to block ports.


Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question