How to Create a Service Object on the SonicWall via SSH Console Using Putty
03/26/2020 7 People found this article helpful 484,474 Views
Description
How to create a service object on the sonicwall via ssh console using Putty.
Resolution
1. From the default mode check if port is already open
Type Command: show service-objects
Cli Sample Output:
admin@C00000000000> show service-objects
service-object HTTP TCP 80 80
service-object "HTTP Management" TCP 80 80
service-object HTTPS TCP 443 443
service-object "HTTPS Management" TCP 443 443
service-object "RADIUS Accounting" UDP 1813 1813
service-object IDENT TCP 113 113
service-object IMAP3 TCP 220 220
service-object IMAP4 TCP 143 143
service-object ISAKMP UDP 500 500
service-object LDAP TCP 389 389
service-object "LDAP (UDP)" UDP 389 389
service-object LDAPS TCP 636 636
service-object "LPR (Unix Printer)" TCP 515 515
service-object "MS SQL" TCP 1433 1433
service-object "NNTP (News)" TCP 119 119
service-object NTP UDP 123 123
service-object "POP3 (Retrieve E-Mail)" TCP 110 110
service-object "Terminal Services TCP" TCP 3389 3389
service-object "Terminal Services UDP" UDP 3389 3389
2. Enter configuration mode:
Protocol TCP
Type Command: config
admin@C000000000000> config
config(C000000000000)#
Open TCP port 8080 with description Webserver TCP 8080
Type Command: service-object "Web Server TCP 8080" TCP 8080 8080
config(C000000000000)# service-object "Web Server TCP 8080" TCP 8080 8080
config(C000000000000)# commit
% Applying changes...
% Changes made.
config(C000000000000)# exit
Protocol UDP
Type Command: config
admin@C000000000000> config
config(C000000000000)#
Open UDP port 8080 with description Webserver UDP 8080
Type Command: service-object "Web Server UDP 8080" UDP 8080 8080
config(C000000000000)# service-object "Web Server 2 UDP 8080" UDP 8080 8080
config(C000000000000)# commit
% Applying changes...
% Changes made.
config(C000000000000)# exit
Check ports are open
Show Service Object
admin@C000000000000> show service objects
Cli Sample Output:
service-object Hello OSPF hello
service-object Dbd OSPF database-description
service-object Lsr OSPF link-state-request
service-object Lsu OSPF link-state-update
service-object Lsa OSPF link-state-acknowledge
service-object "FTP TEST 990" TCP 990 990
service-object PBXVoipTeam TCP 44000 44000
service-object "Web Server 2 UDP 8080" UDP 8080 8080
service-object "Web Server 2 TCP 8080" TCP 8080 8080
**Note** Changes that are applied via console will impact current connection sessions as the changes are applied. It is advised to make changes out of office hours for minimum impact on services. Show commands do not make any changes or impact services.
Related Articles
Categories
Was This Article Helpful?
YESNO