LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-09-2004, 03:55 AM   #1
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Rep: Reputation: 15
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
 
Old 01-09-2004, 04:26 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Nmap is a great port scan.

-twantrd
 
Old 01-09-2004, 08:04 AM   #3
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
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
 
Old 01-09-2004, 08:43 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 01-09-2004, 08:44 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to proxy any to any port / IP / service nicflatterie Linux - Networking 2 03-14-2005 07:56 AM
Does one service use more than one port? mrpc_cambodia Red Hat 1 10-04-2004 02:26 AM
port 113 used by what service ? saavik Linux - Networking 1 02-02-2004 01:48 PM
need all service port number !!! hitesh_linux Linux - General 4 03-19-2003 08:32 PM
What is 510 port service? minor Linux - Security 1 05-11-2001 04:28 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration