Set zone to "any" in CLI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Set zone to "any" in CLI

L2 Linker

How can I set the zone for a rule to any in the CLI? If I delete the from / to lines it sets it to "none" which is not valid. If I set it to "any" then it thinks "any" is the name of the zone which is also incorrect. Any ideas?

 

Thanks!

1 REPLY 1

Cyber Elite
Cyber Elite

If you want to see how current rules are set up in cli use following commands:

 

> set cli config-output-format set
> configure
# show | match "rulebase security rules"

 

For example this will do the trick permitting any/any

 

set rulebase security rules "Test Rule 1" to any
set rulebase security rules "Test Rule 1" from any
set rulebase security rules "Test Rule 1" source any
set rulebase security rules "Test Rule 1" destination any
set rulebase security rules "Test Rule 1" source-user any
set rulebase security rules "Test Rule 1" category any
set rulebase security rules "Test Rule 1" application any
set rulebase security rules "Test Rule 1" service any
set rulebase security rules "Test Rule 1" source-hip any
set rulebase security rules "Test Rule 1" destination-hip any
set rulebase security rules "Test Rule 1" action allow

Enterprise Architect, Security @ Cloud Carib Ltd
Palo Alto Networks certified from 2011
  • 1279 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!