Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.