How to Prevent NMAP scanning by hackers in Linux

Source: Internet
Author: User

 

Many network services use Linux and install Apache server software. Attackers can use NMAP to scan web sites. Now they share their defense experience.

 

In this example, we can set it to make Linux ignore NMAP scanning. The iptables tool is used to filter network information and prevent the system from responding to scan requests. To

 

To improve the security of the server.

Run the following command: www.2cto.com

# Iptables-F

# Iptables-a input-p tcp -- tcp-flags all fin, URG, PSH-j Drop

# Iptables-a input-p tcp -- tcp-flags SYN, rst syn, RST-j Drop

# Iptables-a input-p tcp -- tcp-flags SYN, fin syn, FIN-j Drop

# Iptables-a input-p tcp -- tcp-flags SYN, SYN -- dport 80-j Drop

 

After running the preceding command, Linux will filter the scan information from NMAP, and hackers will not be able to obtain information such as the active TCP port and operating system version, so the server will be more secure.

From computer manual Network

Related Article

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.