SonicOS 8 Rules and Policies for Classic Mode

Table of Contents

About Stateful Packet Inspection Default Access Rules

By default, the SonicWall firewall stateful packet inspection (SPI) allows all communication from the LAN to the Internet and blocks all traffic to the LAN from the Internet. In SonicOS 8.2.3 and later, the default inter-zone access rules for inbound traffic use the Discard action on new installations and factory-default configurations. This action provides out-of-the-box stealth mode protection. For more information, see Stealth Mode in the SonicOS 8 Firewall Administration Guide. The following table lists the default rules:

From Zone To Zone Action
LAN or WLAN WAN or DMZ Allow all sessions, except sessions addressed to the WAN interface of the firewall.
DMZ WAN Allow all sessions.
WAN DMZ Discard all sessions.
WAN or DMZ LAN or WLAN Discard all sessions.

Deny vs. Discard Default Actions

  • Discard: Drops packets silently. The firewall does not send an ICMP destination unreachable message or a TCP RST packet to the sender. This makes it harder for port scanners and external probes to identify open ports or fingerprint the firewall.

  • Deny: Rejects packets. The firewall sends a TCP RST packet to end TCP connections, or an ICMP destination unreachable message for UDP. Traffic that the firewall blocks from trusted zones continues to use Deny so that you can troubleshoot.

Firmware Upgrade and New Zones

  • Upgrades: When you upgrade from a previous SonicOS release, existing default rules keep their configured Deny action for backward compatibility. An upgraded firewall can therefore have both Deny rules (for existing zones) and Discard rules (for new zones). To change the action of an existing rule, edit the rule and select the action you want.

  • New Zones: Any new zone that you create after an upgrade automatically generates default inter-zone rules with the Discard action.

You can define additional network access rules to extend or override the default access rules. For example, you can create access rules that allow access from the LAN zone to the WAN Primary IP address, block certain types of traffic such as IRC from the LAN to the WAN, or allow specific inbound services to designated internal hosts.

Custom access rules evaluate the source IP address, destination IP address, and IP protocol type of network traffic, and compare this information to the access rules on the firewall. Custom access rules take precedence over the default access rules and can override the stateful packet inspection of the firewall. For example, an access rule that blocks IRC traffic takes precedence over the default setting of the firewall that allows this type of traffic.

Custom access rules can disable firewall protection or block all Internet access. Review each rule before you save or delete it.