LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am looking for help on service Port Sacn (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-looking-for-help-on-service-port-sacn-132990/)

AZIMBD03 01-09-2004 02:55 AM

I am looking for help on service Port Sacn
 
Hi There
I have got RH 7.2, Looking for help on about service port scan and block an fix any service????


Thank


ZIMMMM

twantrd 01-09-2004 03:26 AM

Nmap is a great port scan.

-twantrd

AZIMBD03 01-09-2004 07:04 AM

Port Scanning
 
Hi

Thanks for your reply...As you may be know I am new on RH Would you plz make me clear about Nmap or twantrd like that.Actually I want to see whice type of command i can use to see all port of services and how i can block a service port or how I can fix any service port...


PLz



ZIM

hw-tph 01-09-2004 07:43 AM

You can "block" ports using at least two ways:

1. Disable the service altogether. This is recommended. If you don't need a specific service you shouldn't be running it at all, period. Read the Redhat docs on how to do this the Redhat way, I know Redhat provides tools for configuring which services should be started on boot (or on request through inetd/xinetd).

2. Block access to the port using either a firewall (hardware or software doesn't really matter). Linux comes with iptables/netfilter that is an excellent software firewall (and it's a lot more too).

To scan the commonly used ports on your system do nmap localhost. Many of the advanced nmap options require you to run it as root.

Håkan

Demonbane 01-09-2004 07:44 AM

If you just want to see open ports on your own machine try "netstat -tulanp"(as root), for blocking them look for info on iptables(or ipchains, not sure about rh7.2), try redhat-config-services if you want to disable them from starting on boot.


All times are GMT -5. The time now is 06:37 PM.