• 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-5.51-2.el6.i686

    Syntax
    # nmap <address>





    # nmap localhost
    Starting Nmap 5.51 ( http://nmap.org ) at 2013-09-18 12:04 IST
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.0000080s latency).
    Other addresses for localhost (not scanned): 127.0.0.1
    Not shown: 995 closed ports
    PORT STATE SERVICE
    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.
    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+


    Do you also have something to share here?
    Join GoLinuxHub Team as an Author, Click here for more information
    How to get a list of open ports in Linux? How to get a list of open ports in Linux? Reviewed by Deepak Prasad on Friday, May 03, 2013 Rating: 5

    No comments:

    Powered by Blogger.