How to create Custom Zone through SonicWall CLI(Command line Interface)?
03/26/2020 6 12600
This Article explains how to create a custom zone on SonicWall through CLI. You can log into SonicWall CLI through Console (connecting a serial cable directly to SonicWall device console port ) or via SSH (default port is 22 or if custom SSH port which has been changed in the SonicWall)
Log into SonicWall using the administrator username/password, create custom zone & apply it to interface:
Once you logged into CLI , you will be in enable mode. To do any changes you need to enter into configuration mode..
Create a custom zone called employee and here we are placing it in (security-type) TRUSTED ZONE
Apply command "commit" to apply the settings permanently in SonicWall configuration .
Refer screenshot 1:
=>Try the command "show zone employee"
syntax: show zone [custom zone name created]
Currently none of the security services are enabled, you can enable security services for which you have license.
Refer screenshot 2:
Here we have enabled "content-filtering "and "intrusion-irevention" on the custom zone(employee) which we created
Refer screenshot 3:
After applying the CFS and IPS "type show zone employee', you will see CFS and IPS got enabled in the zones.
Refer screenshot 4:
Applying the custom zone(employee) on SonicWall interface:
Refer screenshot: 5
Step 6 :
Assigning ip address to the SonicWall interface, if it's static
Refer the screenshot 6:
Type the command "commit" to apply the settings in SonicWall configuration.
Refer screenshot 7
To see whether the created zone(employee) is available in the zones list:
=>type command "zone"
Refer screenshot 8: