Customize the Default 255.255.255.0 PPPoE Subnet Mask to Avoid IP Spoof
03/26/2020 16 13053
SonicOS supports PPPoE WAN Connectivity. The Point-to-Point Protocol (PPP), when used over Ethernet (PPPoE), is a common choice for DSL providers . Most often, customers are acquiring a dynamic, public IP address when connecting to the provider. The SonicWall firewall has its WAN port connected to a DSL modem. SonicOS uses an artificial value of 255.255.255.0 by default. In most cases, no adjustments need to be made to this subnet mask. But this article shows you how you can change it if needed.
The PPP protocol is unusual and subnet masks are actually irrelevant to the host's IP settings. That is why the typical display of a PPP adapter connected in Windows will show a subnet mask of 255.255.255.255, and even the gateway IP is usually set to the same value as the acquired IP address. SonicOS can use this same 'slash 32' subnet mask - 255.255.255.255 - or other values like 255.255.255.240. In some cases, when the customer has multiple WAN connections, a customer may need to change this.
In an example setup, the PPPoE DSL provider is connected to SonicWall firewall's X1 interface, and gives a customer a dynamic IP address 188.8.131.52 (and SonicOS uses 255.255.255.0 by default). Also, the firewall has a second WAN connected on X2, using a static IP of 184.108.40.206 w/ a gateway router of 220.127.116.11. Now, with this multiple WAN scenario, the customer sometimes needs to access a server whose IP address is in the same public range as the PPPoE (e.g., 18.104.22.168).
If the customer has traffic going out their X2 WAN trying to reach the 22.214.171.124 server, it will fail, and SonicOS will log the attempt as an IP Spoof alert. This is because SonicOS has a directly-connected route statement for the entire subnet 126.96.36.199 / 255.255.255.0 (slash 24 network), tied to the X1 interface. This route tells the SonicWall firewall to expect traffic only on that interface and not to allow it on others. This kind of strict enforcement of IP subnet locations is central to the security functions of most firewalls. It is simple to solve using the method below.
Here's how to customize the default 255.255.255.0 PPPoE Subnet mask in SonicOS Enhanced to avoid IP Spoof alerts:
- Log into the SonicWall firewall's web management UI and you will see this in the address bar:
- Edit the URL in the address bar of your browser so that it reads
and hit enter (see below).
3. Once you are in the diag page, click the “Internal Settings” button, then scroll down until you find the PPPoE Settings section.
The PPPoE Client Subnet Mask on the SonicWall will work fine when we change the PPPoE net mask on the diag.html from “255.255.255.0” to “255.255.255.255” (which is the same as the subnet mask provided by the PPPoE Server when a PC is directly connected to Modem).
4. After changing the subnet mask, disconnect the PPPoE connection from the SNWL and connect it again. The subnet mask will take effect on that new connection.