<?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 Re: How to add a rule with multiple actions in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8979#M736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so the thing I could not find in the documentation was the&lt;EM&gt;&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;user-check.interaction "Blocked Message - Access Control"&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;part, that helps to make that last bit clear, thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 15:42:17 GMT</pubDate>
    <dc:creator>Maarten_Sjouw</dc:creator>
    <dc:date>2018-10-23T15:42:17Z</dc:date>
    <item>
      <title>How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8975#M732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a baseline for an inline policy to enable URL Filtering and Application control for a customer that has not used this before, I searched through the questions here but could not find a response that would give me the clue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run into some issues, while most things work just fine, adding and filling groups and creating the Layer with all rules, I'm just hitting a few snags, like when I add a drop rule I would also like to show the default Block Page, however I can only add 1 action Item, how can you add more actions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The layer is added but unless I set it to shared the layer cannot be manually used as an inline layer. After the test I wanted to remove the layer again, it is not in use but delete layer is grayed out, in Manage Policies and Layers.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 12:45:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8975#M732</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-10-23T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8976#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must have App/URL or content awareness enabled on the layer to add other actions. I suspect this is the issue. On the layer be sure the additional blades are checked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:50:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8976#M733</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2018-10-23T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8977#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the create of the rule I had used &lt;SPAN style="color: #0a508b; background-color: #ffffff;"&gt;applications-and-url-filtering "true"&amp;nbsp; when I created the layer, so that part is ok, but what is the syntax for adding multiple actions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:16:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8977#M734</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-10-23T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8978#M735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is per the API?&lt;/P&gt;&lt;P&gt;So under the documentation add-access-rule, you need to supply the user-check object with field interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wasn't clear in the docs(&lt;A href="https://community.checkpoint.com/migrated-users/2192"&gt;Amiad Stern&lt;/A&gt;‌) what was valid for this field, so I reverse engineered by making a rule in SmartConsole, then using show-access-rule to see how it returned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example would be:&lt;/P&gt;&lt;P&gt;#mgmt_cli add-access-rule layer "&amp;lt;layer&amp;gt;" position top action drop user-check.interaction "Blocked Message - Access Control"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This added a rule as drop with standard Blocked Message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:58:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8978#M735</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2018-10-23T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8979#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so the thing I could not find in the documentation was the&lt;EM&gt;&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;user-check.interaction "Blocked Message - Access Control"&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;part, that helps to make that last bit clear, thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:42:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8979#M736</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-10-23T15:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8980#M737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone is interested I can post this script that will create this shared layer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/71995_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;CriticalBlock has the categories Child Abuse, Critical Risk and a newly created category Blacklist in it.&lt;/P&gt;&lt;P&gt;HighBlock only has High risk in it&amp;nbsp; And NormalAllow contains a newly category WhiteList.&lt;/P&gt;&lt;P&gt;Normalblock contains a list of default (best practice) block categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All is very simple to adjust, but it is a nice template to start with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 04:43:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8980#M737</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-10-24T04:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8981#M738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maarten, please do post the script.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2018 13:35:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8981#M738</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2018-12-16T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a rule with multiple actions</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8982#M739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here it is:&lt;/P&gt;&lt;P&gt;mgmt_cli login user admin password &amp;lt;PW&amp;gt; domain &amp;lt;Domain&amp;gt; -m &amp;lt;IP&amp;gt; &amp;gt; id.txt&lt;BR /&gt;mgmt_cli add application-site-category name "WhiteList" description "Custom Whitelist category" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-category name "BlackList" description "Custom Blacklist category" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-group name "CriticalBlock" members.1 "Critical Risk" members.2 "Child Abuse" members.3 "BlackList" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-group name "HighAllow" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-group name "HighBlock" members.1 "High Risk" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-group name "NormalAllow" members.1 "WhiteList" -s id.txt&lt;BR /&gt;mgmt_cli add application-site-group name "NormalBlock" members.1 "Anonymizer" members.2 "Botnets" members.9 "Illegal Drugs" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "File Storage and Sharing" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "File Upload" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Gambling" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Games" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Hate / Racism" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Illegal / Questionable" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Illegal Drugs" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Media Sharing" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Media Streams" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Nudity" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "P2P File Sharing" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Pornography" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Sex" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Spam" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Spyware / Malicious Sites" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Suspicious Content" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Tasteless" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Violence" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Weapons" -s id.txt&lt;BR /&gt;mgmt_cli set application-site-group name "NormalBlock" members.add "Web Advertisements" -s id.txt&lt;BR /&gt;mgmt_cli add service-group name "Blocked-Ports" members.1 "smtp" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "imap" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "IMAP-SSL" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "pop-3" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "POP3S" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "SMTPS" -s id.txt&lt;BR /&gt;mgmt_cli set service-group name "Blocked-Ports" members.add "ssh" -s id.txt&lt;BR /&gt;mgmt_cli add access-layer name "Internet-Filter" firewall "false" applications-and-url-filtering "true" shared "true" add-default-rule "false" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 1 name "Drop Critical" service "CriticalBlock" destination "Internet" action "Drop" user-check.interaction "Blocked Message - Access Control" track "log" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 2 name "Allow High Risk" service "HighAllow" destination "Internet" action "Accept" track "log" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 3 name "Block High Risk" service "HighBlock" destination "Internet" action "Drop" user-check.interaction "Blocked Message - Access Control" track "log" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 4 name "Whitelist" service "NormalAllow" destination "Internet" action "Accept" track "log" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 5 name "Block Normal" service "NormalBlock" destination "Internet" action "Drop" user-check.interaction "Blocked Message - Access Control" track "log" -s id.txt&lt;BR /&gt;mgmt_cli add access-rule layer "Internet-Filter" position 6 name "Allow Rest" destination "Internet" service "Blocked-Ports" service-negate "true" action "Accept" track "log" -s id.txt&lt;BR /&gt;mgmt_cli publish -s id.txt&lt;BR /&gt;mgmt_cli logout -s id.txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 09:04:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-a-rule-with-multiple-actions/m-p/8982#M739</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-12-17T09:04:03Z</dc:date>
    </item>
  </channel>
</rss>

