Using firewall rules to block outbound Internet access to computers behind the SonicWall

Description

Using firewall Rules to block outbound Internet access to computers behind the SonicWall

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.

Internet access can be completely blocked by creating a DENY access rule from LAN to WAN on the SonicWall.

In this example, we are going to block outbound Internet access to computers behind the SonicWall.

Procedure

1. Login to your SonicWall management page and click on Policy tab on the top of the page.

2. Navigate to Rules and Policies | Access Rules page.

Image

3. Click on "All Zones -> All Zones" and select From Zone LAN to Zone WAN.

Image

4. Click on Add to get Add Rule Window. Create an access rule from LAN to WAN as below:

  • Action: DENY
  • Source Zone/Interface: LAN
  • Address: ANY -

    NOTE:You may block specific source IP addresses by specifying an appropriate host, network, range or group address object instead of "ANY".

  • Port/Services: ANY
  • Destination Zone/Interface: WAN
  • Port/Services: ANY

Image

5. Click on Add.

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.

Internet access can be completely blocked by creating a DENY access rule from LAN to WAN on the SonicWall.

In this example, we are going to block a computer with IP 192.168.168.2. Created Address Object for IP 192.168.168.2 with name as "My PC"

Procedure

  1. Login to your SonicWall management page and click Manage tab on top of the page.
  2.  Navigate to Rules |Access Rules page. On right side, click Matrix button to get Choose Zones window. 
  3. Click '->' from LAN to WAN as below.
    Image
  4. Click Add button to get Add Rule Window. Create an Access Rule From LAN To WAN zone as below.
    • Action: DENY
    • From Zone: LAN
    • To Zone: WAN
    • Service: ANY
    • Source: ANY -

      NOTE:You may block specific source IP addresses by specifying an appropriate host, network, range or group address object instead of "ANY".

    • Destination: ANY
    • Users Allowed: ALL
    • Schedule: ALWAYS ON
    • Comment: Enter an appropriate description in the comment field.
      Image
  5.  Click ADD button to save settings as below.
    Image

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.

Internet access can be completely blocked by creating a DENY access rule from LAN to WAN on the SonicWall.

Firmware 6.x:

  1. Select Access | Rules.
  2. Click Add.
  3. Create the following rule:
    • Action: DENY
    • Service: ANY
    • Source: LAN / DMZ (the range of IP addresses to which you wish to block access).

      NOTE: The [*] indicates that all the computers behind the selected Interface will be blocked.

    • Destination: WAN. [*]
  4. Enter an appropriate description in the comment field.
  5. Click OK.


SonicOS Standard:

  1. Select Firewall |Access Rules.
  2. Click Add.
  3. Create the following rule:
    • Action: DENY
    • Service: ANY
    • Source: LAN / DMZ (the range of IP addresses to which you wish to block access).

      NOTE: The [*] indicates that all the computers behind the selected Interface will be blocked.

    • Destination: WAN. [*]
  4. Enter an appropriate description in the comment field.
  5. Click OK.


SonicOS Enhanced:

  1. Select Firewall | Access Rules.
  2. Select LAN > WAN from the matrix.
  3. Click Add.
  4. Create the following rule:
    • Action: DENY
    • From Zone: LAN
    • To Zone: WAN
    • Service: ANY
    • Source: ANY -

      NOTE:You may block specific source IP addresses by specifying an appropriate host, network, range or group address object instead of "ANY".

    • Destination: ANY
    • Users Allowed: ALL
    • Schedule: ALWAYS ON
  5. Enter an appropriate description in the comment field.
  6. Click OK.

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?