Port Security for Linux

Source: Internet
Author: User

The so-called Port security refers to the software program that can open port , not the port itself.

Services and port corresponding to the document /etc/services, commonly used to observe the port of the program has netstat and the Nmap .

Netstat: Monitor your Port with your own program on this machine

Nmap: Through the network detection software assistance, can detect other non-native network host

Common combinations of netstat options

-TUNL List of network services in the listener

-tun List Online status of a network

-TUNP * * * has been established or is in the monitoring of the online

Nmap(Network Exploration tool and security Port Scanner)

Nmap [ Scan type ] [ scan Parameters ] [hosts address and Range ]

[ Scan type ]

-st Scan TCP packets established online connetc ()

-ss Scan TCP packets with SYN -tagged data

-SP Scan in ping mode

-SU Scan in UDP packet Format

-s0 Host scan with IP Protocol

[ scan Parameters ]

-pt uses a ping scan in TCP to learn that several hosts are currently alive (common)

The-PL uses the actual Ping(with ICMP packets) to scan

-P Port range

[Hosts address and scope ]

There are several ways such as direct write, followed by mask, fuzzy match, specified range, etc.

(not to be continued--close unused port)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.