<?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: custom-script example for autoprovision of autoscale gateways in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/69165#M3404</link>
    <description>Hi Martin,&lt;BR /&gt;thanks, but where do I find the "-cg" option?&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;[Expert@cpmgmt:0]# autoprov-cfg init Azure -tn "autoprovisioning_template" -h&lt;BR /&gt;usage: autoprov-cfg init Azure [-h] -mn MANAGEMENT NAME -tn TEMPLATE NAME -otp&lt;BR /&gt;ONE TIME PASSWORD -ver&lt;BR /&gt;{R77.30,R80.10,R80.20,R80.30,R80.40} -po POLICY&lt;BR /&gt;-cn CONTROLLER NAME -sb SUBSCRIPTION&lt;BR /&gt;[-at SERVICE PRINCIPAL CREDENTIALS TENANT]&lt;BR /&gt;[-aci SERVICE PRINCIPAL CREDENTIALS CLIENT ID]&lt;BR /&gt;[-acs SERVICE PRINCIPAL CREDENTIALS CLIENT SECRET]&lt;BR /&gt;[-au AZURE USERNAME] [-ap AZURE PASSWORD]&lt;BR /&gt;[...]</description>
    <pubDate>Tue, 03 Dec 2019 14:07:08 GMT</pubDate>
    <dc:creator>Carsten_R</dc:creator>
    <dc:date>2019-12-03T14:07:08Z</dc:date>
    <item>
      <title>custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40346#M3397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This file is to be used as an example for autoscale and VMSS groups that require custom settings on the gateway at provisioning time. These script rely on Check Point API and professional services are usually recommended for complex customizations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:27:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40346#M3397</guid>
      <dc:creator>Javier_Hijas</dc:creator>
      <dc:date>2018-08-31T07:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40347#M3398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;So this script is for changing parts of the gateway objects.&lt;/P&gt;&lt;P&gt;Am I'm correct, that if I need to change parts in GAIA, I have to configure a bootstrap file? - like for adding different routes, adding users....?&lt;/P&gt;&lt;P&gt;How can I change or add this bootstrap file to an already existing VMSS? I mean, that future deployed (dynamic) gateways would have this settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2019 07:35:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40347#M3398</guid>
      <dc:creator>Carsten_R</dc:creator>
      <dc:date>2019-03-02T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40348#M3399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carsten! Instead of using the azure bootstrap options, the way for VMSS is to use the same autoprovision configuration file at the Check Point management server. These custom settings are described in the following doc:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #1f497d;"&gt;&lt;A href="https://github.com/CheckPointSW/sddc"&gt;https://github.com/CheckPointSW/sddc&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #1f497d;"&gt;HTHs,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 18:12:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40348#M3399</guid>
      <dc:creator>Javier_Hijas</dc:creator>
      <dc:date>2019-03-04T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40349#M3400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but how do I use the script?&lt;/P&gt;&lt;P&gt;How looks the CLI syntax?&lt;/P&gt;&lt;P&gt;#&amp;gt; python monitor.pv file.json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:37:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/40349#M3400</guid>
      <dc:creator>Carsten_R</dc:creator>
      <dc:date>2019-03-05T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/46929#M3401</link>
      <description>Hi,&lt;BR /&gt;is there no solution or aren't there any examples how to execute the script?</description>
      <pubDate>Thu, 14 Mar 2019 13:21:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/46929#M3401</guid>
      <dc:creator>Carsten_R</dc:creator>
      <dc:date>2019-03-14T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/63543#M3402</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1522"&gt;@Javier_Hijas&lt;/a&gt;&amp;nbsp; , I am working on deploying a VMSS with MTA enabled on the Gateway firewall. Do you have any recommendation or experience with the same?? Any specific flag or setting on the custom script that I can use for the gateways being spinup by the VMSS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 11:13:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/63543#M3402</guid>
      <dc:creator>Abhishek_Singh1</dc:creator>
      <dc:date>2019-09-24T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/64472#M3403</link>
      <description>&lt;P&gt;Hi Carsten&lt;BR /&gt;for each template you can specify custom gateway script, like this:&lt;BR /&gt;&lt;BR /&gt;autoprov-cfg set template -tn &amp;lt;templateName -cg "/home/admin/myscript.sh"&lt;BR /&gt;"Intranet": {&lt;BR /&gt;"application-control": true,&lt;BR /&gt;"custom-gateway-script": "/home/admin/myscript.sh",&lt;BR /&gt;&lt;BR /&gt;and script can look like this:&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;. /tmp/.CPprofile.sh&lt;BR /&gt;cd /home/admin/&lt;BR /&gt;echo "Downloanding config file..."&lt;BR /&gt;curl_cli -k -O &lt;A href="https://10.223.227.31/azure.txt" target="_blank" rel="noopener"&gt;https://10.223.227.31/azure.txt&lt;/A&gt;&lt;BR /&gt;clish -i -f /home/admin/config-azure.txt&lt;BR /&gt;&lt;BR /&gt;In our case i've use it for rolling out system level settings per our standards and static routes..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 08:50:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/64472#M3403</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2019-10-12T08:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/69165#M3404</link>
      <description>Hi Martin,&lt;BR /&gt;thanks, but where do I find the "-cg" option?&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;[Expert@cpmgmt:0]# autoprov-cfg init Azure -tn "autoprovisioning_template" -h&lt;BR /&gt;usage: autoprov-cfg init Azure [-h] -mn MANAGEMENT NAME -tn TEMPLATE NAME -otp&lt;BR /&gt;ONE TIME PASSWORD -ver&lt;BR /&gt;{R77.30,R80.10,R80.20,R80.30,R80.40} -po POLICY&lt;BR /&gt;-cn CONTROLLER NAME -sb SUBSCRIPTION&lt;BR /&gt;[-at SERVICE PRINCIPAL CREDENTIALS TENANT]&lt;BR /&gt;[-aci SERVICE PRINCIPAL CREDENTIALS CLIENT ID]&lt;BR /&gt;[-acs SERVICE PRINCIPAL CREDENTIALS CLIENT SECRET]&lt;BR /&gt;[-au AZURE USERNAME] [-ap AZURE PASSWORD]&lt;BR /&gt;[...]</description>
      <pubDate>Tue, 03 Dec 2019 14:07:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/69165#M3404</guid>
      <dc:creator>Carsten_R</dc:creator>
      <dc:date>2019-12-03T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/69166#M3405</link>
      <description>Hi, once you do init, you can then do "set template -tn abc -cg /home/script.sh"</description>
      <pubDate>Tue, 03 Dec 2019 14:17:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/69166#M3405</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2019-12-03T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102120#M3406</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share the script which you are using for adding routes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 08:10:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102120#M3406</guid>
      <dc:creator>H4ppyM3</dc:creator>
      <dc:date>2020-11-16T08:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102122#M3407</link>
      <description>&lt;P&gt;normally via "set static-route" command, those lines are part of script, which is run on gateway during provisioning.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 08:14:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102122#M3407</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2020-11-16T08:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102349#M3408</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;thank you for reply. So the steps should looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) In /home/admin directory I add a txt file "add_route.txt" with command inside:&lt;/P&gt;&lt;P&gt;set static-route 192.168.0.0/24 nexthop gateway address 10.0.0.1&lt;/P&gt;&lt;P&gt;2) Create a script run.sh&lt;/P&gt;&lt;P&gt;!/bin/bash&lt;BR /&gt;. /tmp/.CPprofile.sh&lt;BR /&gt;clish -i -f /home/admin/add_route.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3) autoprov-cfg set template -tn &amp;lt;templateName&amp;gt; -cg "/home/admin/run.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will add a route to the gateway each time scaling occur ? right ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 14:52:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102349#M3408</guid>
      <dc:creator>H4ppyM3</dc:creator>
      <dc:date>2020-11-17T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102413#M3409</link>
      <description>&lt;P&gt;no, you should run directly clish -s -c 'set static-route' inside of provisioning script.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 06:58:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102413#M3409</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2020-11-18T06:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: custom-script example for autoprovision of autoscale gateways</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102600#M3410</link>
      <description>&lt;P&gt;it works. thank you Martin &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 11:10:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/custom-script-example-for-autoprovision-of-autoscale-gateways/m-p/102600#M3410</guid>
      <dc:creator>H4ppyM3</dc:creator>
      <dc:date>2020-11-19T11:10:01Z</dc:date>
    </item>
  </channel>
</rss>

