Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to check all open ports on linux machine and block
unsed ports????????

Answers were Sorted based on User's Feedback



How to check all open ports on linux machine and block unsed ports????????..

Answer / sureshreddy

#netstat -tulp
or
#netstat -tulpn

to verfy the open ports

Is This Answer Correct ?    17 Yes 1 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / raghu

netstat -t

Is This Answer Correct ?    19 Yes 11 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / parthasarathy k

#nmap -v localhost for tcp
#nmap -sU localhost for udp

Is This Answer Correct ?    12 Yes 6 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / manoj

netstat -t(tcp)
netstat -u(udp)or
netstat -tulpn
to verfy the open ports
to block u have to use iptable & tcp_wrappers( hosts.deny
file)

Is This Answer Correct ?    6 Yes 1 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / pankaj pal

To check all the Open Ports use command
netstat - tulpn

To Block Ports for eg.22 and 80 as requested by Ashish
iptables -t filter -A INPUT -s!192.168.0.0/24(IP which you
want to allow) -p tcp -d (destination server IP) --dport
22 -j DROP

iptables -t filter -A INPUT -s!192.168.0.0/24(IP which you
want to allow) -p tcp -d (destination server IP) --dport
80 -j DROP

Is This Answer Correct ?    5 Yes 0 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / boby

netstat -at | grep LISTEN

Is This Answer Correct ?    3 Yes 0 No

How to check all open ports on linux machine and block unsed ports????????..

Answer / ashish

Hi!! All
Can you give an example to block certain ports
like block 22 & 80.

Any help will be appreciated.

Ashish

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Linux AllOther Interview Questions

why you are using nis server

2 Answers  


commands regarding the adding of users into groups n different options with useradd...?

5 Answers   IBM,


Give a Linux shell command to find all files in a directory which contain ip addresses.

1 Answers   Amazon,


My root password has been changed, how can i enter into the system without root password?

6 Answers  


there are many IPC mechanisms available in Linux ? Which one is best to use and when ?

1 Answers   Broadcom,


will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?

1 Answers  


As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

0 Answers   Ondot,


What is the other method of installing Linux O.S other than Text, GUI mode? Why we prefer that for installation of Linux in Real time?

2 Answers  


How to trace any process background processing?

5 Answers  


How To Hide the FTP Version?

3 Answers   Wipro,


what are the default permissions for files and folders..?

8 Answers   IBM,


How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples

0 Answers  


Categories