Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

What is correct CLI code to add an access rule??

tommlstommls Newbie ✭
edited January 2022 in Entry Level Firewalls

I typed configure, get to the config prompt.

Then I type access-rule and I get this error:


What is the correct way to do this??

After that I need to know how to specify lan to wan, allow, source and destination, which are documented...

But nothing I type works. The above is in a ssh session to the SonicWall.

All SonicWalls involved are 6.5.x and 5.9.x firmware.

Thank you, Tom

Category: Entry Level Firewalls
Reply

Answers

  • tommlstommls Newbie ✭

    I want to ADD a firewall rule via the CLI.

    We have an existing rule like this:

    access-rule from LAN to WAN action allow service group "HTTP HTTPS" destination address group "Zoom Sites"

    I want to make several NEW rules like this with specific different names.

    Also to ensure max-connections 100 as well

    Thank you, Tom

  • prestonpreston All-Knowing Sage ✭✭✭✭

    hi @tommls , here's an example below change to suit, you don't need to add anything which is default like 100 connections etc...

    conf

    access-rule ipv4 from LAN to WAN action allow service name SSLVPN destination address name "X1 IP"

       name "Custom Access Rule"

       enable

       no auto-rule

       from LAN

       to WAN

       action allow

       source address any

       source port any

       service name SSLVPN

       destination address name "X1 IP"

    exit

    commit

  • MitatOngeMitatOnge All-Knowing Sage ✭✭✭✭

    Hi @tommls


    you can find details below link.


Sign In or Register to comment.