Support on SonicWall Products, Services and Solutions
Browse Knowledgebase by Category
Creating Service Objects and Groups in Command-Line Interface (CLI) for SonicOs Enhanced (5.8
03/26/2020 6 13414
Creating Service Objects and Groups in Command-Line Interface (CLI) for SonicOs Enhanced (5.8 & below)
Please Note: This article applies to firmware version prior to SonicOS 18.104.22.168
This article describes how to create Service Objects and Service Groups in the SonicWall CLI.
Login to the SonicWall CLI using either SSH or Serial connection. For more information on how to login to the CLI, please refer KB ID 6180
Enter the administrator username and password.
You will be presented with the root prompt of the CLI.
Enter "configure" <enter> to enter the device configuration mode.
- All commands should be in lowercase.
- Names of objects are case sensitive
- An object name containing spaces should be enclosed by double quotes (example"Webserver Services ")
- Default Service Objects or Groups cannot be edited nor deleted.
- Service objects are created in the following directory of the SonicWall CLI:
Creating a Service Object
>add <name for the Service Object>
>ip-type 6 (6 = TCP. 17=UDP)
Creating a Service Group
>add <name for the Service Group>
>service-group "FTP All"
Editing a Service Object
>modify <name of an existing custom Service Object>
Note: When changing port number to a higher value than the existing port number, change the port-end first
Editing a Service Group
Deleting a Service Object
>modify <name of an existing custom Service Group>
>no service-group <name of a Service Group in this group>
>no service <name of a Service Object in this group>
>delete <name of an existing custom Service Object>
Deleting a Service Group
>delete <name of an existing custom Service Group>