<?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 access rule using CLI in r80.30 in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91303#M5038</link>
    <description>&lt;P&gt;I added multi rule but got error&lt;/P&gt;&lt;P&gt;Line 2: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [action]"&lt;/P&gt;&lt;P&gt;Following this Guide in action field is correct "accept" Why I got still error invalid parameter?&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/add-access-rule~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/add-access-rule~v1.6%20&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 09:48:44 GMT</pubDate>
    <dc:creator>Security_Consul</dc:creator>
    <dc:date>2020-07-13T09:48:44Z</dc:date>
    <item>
      <title>How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71513#M5028</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to add an access rule using CLI in firewall r80.30.&lt;/P&gt;&lt;P&gt;Can anyone please guide me to any document or provide the commands?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:43:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71513#M5028</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-02T22:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71516#M5029</link>
      <description>Access roles can only be added on the management, not directly on the gateway. &lt;BR /&gt;Also when you run a standalone setup the only way is to add the access role in the policy on the management and then push the policy to the gateway. Check Point does not use a ACL type rulebase on the gateway, it is compiled on the management server and then sent to the gateway.&lt;BR /&gt;&lt;BR /&gt;To add a rule in a policy on the management server you can use the API of which you can find all documentation online and lotst of information here on the forum.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jan 2020 23:12:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71516#M5029</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2020-01-02T23:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71517#M5030</link>
      <description>I am sorry, in my context, "Access rule" means "policy". I was wondering is there a way to add a policy on management server using CLI?</description>
      <pubDate>Thu, 02 Jan 2020 23:16:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71517#M5030</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-02T23:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71519#M5031</link>
      <description>Like Maarten said, this is possible with mgmt_cli add access-rule.&lt;BR /&gt;For documentation: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.5" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are several examples on the community.&lt;BR /&gt;One that allows you to build the policy that exists in Demo Mode: &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/My-Security-Management-Setup-Script/td-p/40239" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/My-Security-Management-Setup-Script/td-p/40239&lt;/A&gt;</description>
      <pubDate>Thu, 02 Jan 2020 23:41:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71519#M5031</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-02T23:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71574#M5032</link>
      <description>Thank you so much for helping!</description>
      <pubDate>Fri, 03 Jan 2020 17:51:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71574#M5032</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-03T17:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71577#M5033</link>
      <description>Sorry I have one more doubt on same topic. I was able to create a policy using mgmt_cli. I used this syntax:&lt;BR /&gt;&lt;BR /&gt;mgmt_cli add access-rule layer "my_policy Network" source "43.1.1.3" destination "27.1.1.2" service "any" action "accept" track-settings.type "Log" position "1" name "rule1" install-on "chkpt" --port 4434&lt;BR /&gt;&lt;BR /&gt;My doubt: Can i create a source/destination ip address using cli. Because in this scenario, policy gets install if i have already added a source/destination ip. otherwise throws me an error&lt;BR /&gt;code: "generic_err_object_not_found"&lt;BR /&gt;message: "Requested object [43.1.1.3] not found"&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jan 2020 18:11:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71577#M5033</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-03T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71578#M5034</link>
      <description>Nope, for that you first need to create the host object:&lt;BR /&gt;mgmt_cli add host name Myhost ip_address 43.1.1.3 &lt;BR /&gt;Then use Myhost as the source in your access rule.</description>
      <pubDate>Fri, 03 Jan 2020 18:13:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71578#M5034</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2020-01-03T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71579#M5035</link>
      <description>Thank you for your quick response Maarten. Okay So correct me if I am wrong, if I have to create 1000 policies (working on a script) with 1000 different source ip, i have to create 1000 host object manually first?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Jan 2020 18:17:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71579#M5035</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-03T18:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71591#M5036</link>
      <description>Correct.&lt;BR /&gt;Note that a given rule can contain multiple source/destination objects.&lt;BR /&gt;Also, you can create objects for networks as well.&lt;BR /&gt;That might simplify the policy that gets created.</description>
      <pubDate>Fri, 03 Jan 2020 22:05:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71591#M5036</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-03T22:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71592#M5037</link>
      <description>Got it. Thanks</description>
      <pubDate>Fri, 03 Jan 2020 22:07:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/71592#M5037</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-03T22:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91303#M5038</link>
      <description>&lt;P&gt;I added multi rule but got error&lt;/P&gt;&lt;P&gt;Line 2: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [action]"&lt;/P&gt;&lt;P&gt;Following this Guide in action field is correct "accept" Why I got still error invalid parameter?&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/add-access-rule~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/add-access-rule~v1.6%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:48:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91303#M5038</guid>
      <dc:creator>Security_Consul</dc:creator>
      <dc:date>2020-07-13T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91358#M5039</link>
      <description>Try it as Accept instead of accept.&lt;BR /&gt;Some of the API calls are case sensitive.</description>
      <pubDate>Mon, 13 Jul 2020 17:55:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91358#M5039</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-07-13T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add access rule using CLI in r80.30</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91392#M5040</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 05:04:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-add-access-rule-using-CLI-in-r80-30/m-p/91392#M5040</guid>
      <dc:creator>Security_Consul</dc:creator>
      <dc:date>2020-07-14T05:04:11Z</dc:date>
    </item>
  </channel>
</rss>

