How to restrict Ping to SonicWall WAN interfaces from specific public IP addresses
12/06/2023
76 People found this article helpful
452,616 Views
Description
How to restrict Ping to SonicWall WAN interfaces from specific public IP addresses from outside the network
Resolution
Resolution for SonicOS 7.X
This release includes significant user interface changes and many new features that are different from the SonicOS 6.5 and earlier firmware. The below resolution is for customers using SonicOS 7.X firmware.
Feature:
Restrictions can be applied to WAN interfaces so that only a specific IP address or a range of IP address can ping the WAN interface from outside the network. This involves the following steps:
Step 1: Allowing Ping on the WAN interface.
Step 2: Creating an address object or address group containing the IP addresses that are allowed to Ping the interface.
Step 3: Modifying the Firewall Access Rule so that only that specific address or range of IP addresses can ping the interface.
Scenario:
The following scenario covers how to restrict the Ping on the X1 WAN interface so that only 1 public IP address (111.111.111.111) can ping the interface.
Procedure:
Step 1. Enabling the Ping on the X1 WAN interface:
Navigate to Network | System | Interfaces tab and edit WAN interface by clicking on the "configure" button located on hovering over to the X1 WAN interface and Enable Ping.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090231206598908.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 2. Create an address object in the WAN zone containing the IP address (111.111.111.111) that is allowed to ping the interface.
Navigate to Object | Match Objects | Addresses and create an address object as shown below:
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090231206254575.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 3: Modify the Firewall Access Rule so that only that specific address can ping the interface.
a. Go to Policy | Rules and Policies | Access Rules click on the "Matrix" radio button and click on the intersection from WAN to WAN zone.
b. Edit the rule that allows the Ping to the X1 WAN interface by clicking on the edit button by hovering over to the rule in question.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090231206655243.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
c. Change the source to the address object we created at Step 2.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090231206125076.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
NOTE: If you are unable to modify the default access rule, then you will have to allow first the ability to modify default access rules from diag page. But make sure to disable the ability once you will be done making the changes as it is not recommended to keep them on always enabled mode. Follow below article for help:
How To Enable the Ability To Remove and Fully Edit Auto-added Access Rules
Now only the public IP address 111.111.111.111 will be allowed to ping the X1 WAN interface.
Resolution for SonicOS 6.5
This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.
Feature:
Restrictions can be applied to WAN interfaces so that only a specific IP address or a range of IP address can ping the WAN interface from outside the network. This involves the following steps:
Step 1: Allowing Ping on the WAN interface.
Step 2: Creating an address object or address group containing the IP addresses that are allowed to Ping the interface.
Step 3: Modifying the Firewall Access Rule so that only that specific address or range of IP addresses can ping the interface.
Scenario:
The following scenario covers how to restrict the Ping on the X1 WAN interface so that only 1 public IP address (111.111.111.111) can ping the interface.
Procedure:
Step 1. Enabling the Ping on the X1 WAN interface:
Navigate to Manage | Network | Interfaces tab and edit WAN interface by clicking on the "configure" button located on the right-hand side of the X1 WAN interface and Enable Ping.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170912060005.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 2. Create an address object in the WAN zone containing the IP address (111.111.111.111) that is allowed to ping the interface.
Navigate to Manage | Objects | Address Objects and create an address object as shown below
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170912247494.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 3: Modify the Firewall Access Rule so that only that specific address can ping the interface.
a. Go to Manage | Rules | Access Rules click on the "Matrix" radio button and click on the intersection from WAN to WAN zone.
b. Edit the rule that allows the Ping to the x1 WAN interface by clicking on the edit button located on the right-hand side.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170912213741.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
c. Change the source to the address object we created at Step 2.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170912601752.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
NOTE: If you are unable to modify the default access rule, then you will have to allow first the ability to modify default access rules from diag page. But make sure to disable the ability once you will be done making the changes as it is not recommended to keep them on always enabled mode. Follow below article for help:
How To Enable the Ability To Remove and Fully Edit Auto-added Access Rules
Now only the public IP address 111.111.111.111 will be allowed to ping the X1 WAN interface.
Resolution for SonicOS 6.2 and Below
The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.
Feature:
Restrictions can be applied to WAN interfaces so that only a specific IP address or a range of IP address can ping the interface. This involves the following steps:
Step 1: Allowing Ping on the WAN interface.
Step 2: Creating an address object or address group containing the IP addresses that are allowed to Ping the interface.
Step 3: Modifying the Firewall Access Rule so that only that specific address or range of IP addresses can ping the interface.
Scenario
The following scenario covers how to restrict the Ping in the x1 interface so that only 1 public IP address (111.111.111.111) can ping the interface.
Procedure
Step 1. Enabling the Ping on the x1 WAN interface:
Enable the Ping on the WAN interface by clicking on the "configure" button located on the right-hand side of the x1 WAN interface and enable the "Ping" checkbox:
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801478176.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801941522.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 2. Create an address object in the WAN zone containing the IP address (111.111.111.111) that is allowed to ping the interface.
To do that, go to Firewall | Address Objects and create an address object as shown below
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801258283.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801609158.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Step 3: Modify the Firewall Access Rule so that only that specific address can ping the interface.
a. Go to "Firewall" > "Access Rules" > click on the "Matrix" radio button and click on the intersection FROM WAN TO WAN zone.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801122024.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
b. Edit the rule that allows the Ping to the x1 WAN interface by clicking on the edit button located on the right-hand side.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801170479.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
c. Change the source to the address object we created at Step 2.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170801885584.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk1MTUsImlhdCI6MTcyNTA3MzUxNX0.YKU7aUrYRjTJRsVsk8VrazfHlzT-UNa0AWuqjfEBYz4)
Now only the public IP address 111.111.111.111 will be allowed to ping the x1 WAN interface.
Related Articles
Categories