Solved

port blocking

Posted on 2001-06-19
5
316 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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