• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to get a list of open ports in Linux?

    So you have set up a very secured server but still don't you want to cross check if the machine is really secured and your server has not been compromised by anyone. If is always better to regularly scan your system with open ports and list of connected machines.

    For this blog I will show you the command to get a list of open ports in any machine

    nmap command can be used to do the same. You can download in RedHat machine using yum
    # yum install nmap

    Once installed verify the package
    # rpm -qa | grep nmap

    # nmap <address>

    # nmap localhost
    Starting Nmap 5.51 ( http://nmap.org ) at 2013-09-18 12:04 IST
    Nmap scan report for localhost (
    Host is up (0.0000080s latency).
    Other addresses for localhost (not scanned):
    Not shown: 995 closed ports
    22/tcp open ssh
    25/tcp open smtp
    111/tcp open rpcbind
    631/tcp open ipp
    5989/tcp open wbem-https
    Nmap done: 1 IP address (1 host up) scanned in 0.29 seconds

    Here as you can see I got a long list of opened ports on my machine.
    How to get a list of open ports in Linux? How to get a list of open ports in Linux? Reviewed by admin on Friday, May 03, 2013 Rating: 5

    No comments:

    Powered by Blogger.