<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there CLI - Enable and Commit Policy in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428086#M94662</link>
    <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my WebUI is not responding even with a system reboot and management restart by CLI,&amp;nbsp; SSH works fine,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way by CLI to enable and commit Policy?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 12:38:43 GMT</pubDate>
    <dc:creator>SeanDeHarris</dc:creator>
    <dc:date>2021-08-20T12:38:43Z</dc:date>
    <item>
      <title>Is there CLI - Enable and Commit Policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428086#M94662</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my WebUI is not responding even with a system reboot and management restart by CLI,&amp;nbsp; SSH works fine,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way by CLI to enable and commit Policy?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:38:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428086#M94662</guid>
      <dc:creator>SeanDeHarris</dc:creator>
      <dc:date>2021-08-20T12:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there CLI - Enable and Commit Policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428117#M94670</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;If I understand you correctly, once on the cli enter the commands:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;configure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;commit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any policy you want to create will be done once in configuration mode via &lt;STRONG&gt;set&lt;/STRONG&gt; commands, although it is a bit of a minefield if you've not used it before!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've logged onto the CLI run the command: &lt;STRONG&gt;set cli config-output-format set&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The go into &lt;STRONG&gt;configure&lt;/STRONG&gt;, and issue the command &lt;STRONG&gt;show&lt;/STRONG&gt; .... this will display the entire config in set format and give you a good idea how to create/ update policy on the firewall. You can search the configuration with the command &lt;STRONG&gt;show | match foo &lt;/STRONG&gt;where foo should be replaced with the string you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Seb.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 15:43:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428117#M94670</guid>
      <dc:creator>SebRupik</dc:creator>
      <dc:date>2021-08-20T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there CLI - Enable and Commit Policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428193#M94683</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/184443"&gt;@SeanDeHarris&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Absolutely. Anything you can configure in the GUI can also be configured in the CLI. Just log into the CLI and you can easily modify anything in any of the rulebases that you would need. I'm assuming that you need help with the security rulebase in particular, but if you give an exact example of what you need we can provide more syntax help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the security rulebase entry as an example it would look something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;configure
set rulebase security rules "Example Entry" from trust source 192.168.1.5 source-user DOMAIN\USER to Mgmt destination 10.10.10.10 application [ ssl ssh ] service application-default action allow log-end yes log-setting Alert-NetOps description "Allows Traffic to Firewall" profile-setting group Default-Protection-Group&lt;/LI-CODE&gt;&lt;P&gt;The syntax follows exactly what you would normally configure in the GUI, and this example includes how you would group things with [] if you need to specify more than one member. Then you can simply do your&amp;nbsp;&lt;STRONG&gt;validate&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;commit&amp;nbsp;&lt;/STRONG&gt;operations to make the new rule active. "?" is your friend in the CLI, as everything has a very good description of what it is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify on&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/143315"&gt;@SebRupik&lt;/a&gt;,&amp;nbsp;you absolutely don't&amp;nbsp;&lt;STRONG&gt;need&amp;nbsp;&lt;/STRONG&gt;to set your output format to set. Some people simply find it easier to read set format then XML. The firewall supports XML (default), JSON, or set output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default/XML output simply displays the configuration as the firewall actually reads it (the entire configuration is just an XML file):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Allow any Web-App" {
  from trust;
  source 10.191.0.0/16;
  to untrust;
  destination any;
  application any;
  service [ service-http service-https];
  log-end yes;
  action allow;
  description "Allows connections to be made to any Web-Application";
  log-setting "Email Alerts";
  group-tag trust;
  tag [ trust untrust ];
  profile-setting {
    group LTSB-Protection-Profile;
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSON displays output like this, which is more machine readable and I'm not sure why anyone would actually want to set their CLI output for this, as it's not very human optimized:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"@name":"Allow any Web-App",
"@uuid":"9cd38668-d9e4-48e1-85d0-4e4a941aa0b6",
"from":
{
"member":["trust"]
}
,
"source":
{
"member":["10.191.0.0/16"]
}
,
"to":
{
"member":["untrust"]
}
,
"destination":
{
"member":["any"]
}
,
"application":
{
"member":["any"]
}
,
"service":
{
"member":["service-http",
"service-https"]
}
,
"log-end":
"yes",
"action":
"allow",
"description":
"Allows connections to be made to any Web-Application",
"log-setting":
"Email Alerts",
"group-tag":
"trust",
"tag":
{
"member":["trust",
"untrust"]
}
,
"profile-setting":
{
"group":
{
"member":["LTSB-Protection-Profile"]
}
}
}
[edit]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set format is how you actually issue the commands, which is why some people prefer it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set rulebase security rules "Allow any Web-App" from trust
set rulebase security rules "Allow any Web-App" source 10.191.0.0/16
set rulebase security rules "Allow any Web-App" to untrust
set rulebase security rules "Allow any Web-App" destination any
set rulebase security rules "Allow any Web-App" application any
set rulebase security rules "Allow any Web-App" service [ service-http service-https ]
set rulebase security rules "Allow any Web-App" log-end yes
set rulebase security rules "Allow any Web-App" action allow
set rulebase security rules "Allow any Web-App" description "Allows connections to be made to any Web-Application"
set rulebase security rules "Allow any Web-App" log-setting "Email Alerts"
set rulebase security rules "Allow any Web-App" group-tag trust
set rulebase security rules "Allow any Web-App" tag [ trust untrust ]
set rulebase security rules "Allow any Web-App" profile-setting group LTSB-Protection-Profile&lt;/LI-CODE&gt;&lt;P&gt;You may notice that this example while in set breaks out everything into it's own command. When you are configuring a new entry you can simply lump everything together instead of separating it out like this like I did in my first example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:07:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428193#M94683</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2021-08-20T20:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there CLI - Enable and Commit Policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428237#M94690</link>
      <description>&lt;P&gt;Excellent responses!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/143315"&gt;@SebRupik&lt;/a&gt;'s point was that if you set the output format to set, then you can see the proper syntax for configuration.&amp;nbsp; Another excellent CLI option is to use the context sensitive help "?" to see what options are available.&amp;nbsp; You can view sections of the config such as "show network dhcp".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myfirewall# show ?&lt;BR /&gt;address address&lt;BR /&gt;address-group address-group&lt;BR /&gt;application application&lt;BR /&gt;application-filter application-filter&lt;BR /&gt;application-group application-group&lt;BR /&gt;application-tag application-tag&lt;BR /&gt;authentication-object authentication-object&lt;BR /&gt;captive-portal captive-portal&lt;BR /&gt;cloud-identity-engine cloud-identity-engine&lt;BR /&gt;device-object device-object&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 13:03:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/is-there-cli-enable-and-commit-policy/m-p/428237#M94690</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2021-08-21T13:03:24Z</dc:date>
    </item>
  </channel>
</rss>

