Three different anti-ping Methods

Source: Internet
Author: User

As we all know, the ping command is a very useful network command, which is often used to test network connectivity. But at the same time, it is also a double-edged sword, especially in today's rapid development of the network, some "malicious" people use it in the Internet to detect other people's machines, to achieve ulterior motives. To ensure the security of machines on the network, many people now attach great importance to anti-ping. Of course, there are many anti-ping methods and methods, such as using IPSec security policies, Windows built-in firewalls, third-party firewall tools, routes, and remote access components. Is the anti-ping method suitable for you, let me take you here!

I. Use the IPSec Security Policy "Ping protection" with caution

Using the IPSec Security Policy "Ping protection" is a common method. After a few simple steps of configuring the IPSec Security Policy, the ping protection effect can be achieved. This method is easy to configure, And the IPSec Security Policy is a built-in function component in windows, which does not require additional installation, so it is favored by many users. However, I would like to remind you that you should be cautious when using the IPSec Security Policy "anti-ping.

Why? First, let's take a look at how the IPSec Security Policy "prevents ping". The principle is to filter out all ICMP packets on the local machine by creating an IPsec Policy. This is indeed an effective "anti-ping" option, but it also leaves sequelae.

Because the ping command is closely related to the ICMP protocol (Internet control and message Protocal), there are 11 packet formats in ICMP protocol applications, the ping command uses the "echo request" packet in the ICMP protocol to work. However, the IPSec Security Policy uses the "Do Not" method to prevent ping. All ICMP packets are filtered out, especially many useful messages in other formats. Therefore, some LAN environments with special applications are prone to packet loss, which affects users' normal office work. Therefore, we suggest you use the IPSec Security Policy "Ping protection" with caution ".

Ii. Use third-party firewall tools

We already know the shortcomings of the IPSec Security Policy "Ping protection". To ensure that packets sent by local machines are correctly transmitted to the target host through the network, you can use other more effective methods, such as using the network firewall "anti-ping ".

For Internet users, using the personal network firewall "Ping protection" is the simplest method. Using this method to prevent ping does not require complex settings. As long as you correctly configure the firewall's built-in "anti-ping" rules, you can easily implement "anti-ping. There are many types of personal network firewalls, and almost all of them can effectively implement "Ping Protection", such as Skynet personal firewall, rising personal network firewall, and Windows Firewall (or ICF, next, I will take Rising's personal network firewall as an example to introduce how to configure the firewall to achieve the goal of "anti-ping.

Run rising personal network firewall masterProgramThen, click "Settings> set rules" in the main window, and the "rising personal network firewall rule Settings" window will pop up. In the rule list, select the "Default ICMP inbound" rule, double-click the rule to bring up the "rule attributes" dialog box (1). Here you can set detailed parameters and select the "System" option in the "category" box, select the "receive" option in the "direction" box, select the "ICMP" protocol used by the ping command in the "protocol" box, and select the "Disable" option in the "operation" box. Pay attention to the selection of ICMP message types. Switch to the "ICMP Type" tab, select "echo request" in the "type" drop-down list box, and click "modify, save settings. In this way, Rising's personal network firewall can filter out the ICMP packet "echo request" used by the ping command, while other useful ICMP packets can pass safely. After completing the preceding settings, the personal network firewall is used to effectively prevent Ping attacks.

Figure 1 setting up the rising Firewall

3. Use the "Routing and Remote Access" component

For LAN users, the personal network firewall is difficult to meet their needs. In this case, you need to use the enterprise-level network firewall to "Prevent ping", such as ISA 2004, however, for some small LAN, these enterprise-level firewalls are too expensive and unacceptable. In fact, they can be solved by using the "Routing and Remote Access" component of the Windows 2000/Server 2003 server operating system, this component is built into the Windows system and does not need to be purchased.

The following uses Windows Server 2003 as an example to describe how to use the "route and remote access" component "anti-ping ". As we all know, the "Routing and Remote Access" component has built-in functions such as route table management, VPN service, and IP packet filtering. By default, in Windows Server 2003, Routing and Remote Access Services are not enabled. On the Windows Server 2003 gateway server, go to the "Control Panel> Management Tools" window and run the "Routing and Remote Access" tool. In the "Routing and Remote Access" main window, right-click "local" server and choose "configure and enable Routing and Remote Access" from the shortcut menu, in the "route and Remote Access Server Installation Wizard" dialog box, click "Next", select the "custom configuration" option, and then click "Next ", in the following window, select the "Lan Router" option and click "finish.

In the "route and remote access" Main Window, expand the "IP Route Selection> General" option, right-click the network adapter connected to the Internet in the "General" box (2 ), select the "attribute" option and click the "inbound filter" button in the Properties dialog box. After the "inbound filter" dialog box is displayed, select the "receive all data packets that meet the following conditions" option, click the "new" button below to bring up the "add IP Filter" dialog box (3 ), select "ICMP" from the Protocol drop-down list box, and then select "ICMP type" and "ICMP ".CodeIn the "column, enter" 8 "and" 0 "respectively, and then click" OK. The ICMP message of the "8" type and ICMP code of the "0" type is the "echo request" packet used by the ping command, and then click "OK, complete the ping protection settings.

Figure 2 network adapter

Figure 3 add an IP Filter
I have introduced several different anti-ping methods for different network environments. If you are interested, try them.

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.