Solved

port blocking

Posted on 2001-06-19
5
319 Views
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.
0
Comment
Question by:narayanamoorthy
5 Comments
 
LVL 40

Expert Comment

by:jlevie
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).
0
 
LVL 5

Expert Comment

by:harwantgrewal
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.


Harry
0
 

Expert Comment

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

Accepted Solution

by:
fauzdar earned 10 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.
0
 
LVL 1

Expert Comment

by:vreddypatil
ID: 6232307
Linux# ipchains -L -n

use linuxconf's firewall to block ports.

--Vijayapal
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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