<?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 CGI-GCP-DEPLOY - CloudGuard Deployer Script for GCP (Google Cloud Platform) in Cloud Deployment</title>
    <link>https://community.checkpoint.com/t5/Cloud-Deployment/CGI-GCP-DEPLOY-CloudGuard-Deployer-Script-for-GCP-Google-Cloud/m-p/105112#M1</link>
    <description>&lt;P&gt;&lt;STRONG&gt;CloudGuard IaaS (Google Cloud Platform) Deployment Helper Script&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Original GitHub post here:&amp;nbsp;&lt;A href="https://github.com/jaydenaung/cgi-gcp-deploy" target="_blank" rel="noopener"&gt;https://github.com/jaydenaung/cgi-gcp-deploy&lt;/A&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image007.jpg" style="width: 721px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9687i9FB7D35247582F6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image007.jpg" alt="image007.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a simple helper script to automate deploying a specific Check Point CloudGuard IaaS gateway image on Google Cloud Platform.&amp;nbsp;&lt;SPAN&gt;I was in an escalation email thread where a partner is having difficulty with deploying a specific image on GCP, and thought this would help simplify the deployment a bit.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Of course, there are other ways to deploy CloudGuard on Google Cloud Platform (e.g. Deployment manager). But if you'd like to deploy a very specific CloudGuard image (even the ones that are not listed in deployment templates) for variety of reasons, this method and script is for you. A couple of reasons you might want to do this may include deploying or restoring a Management HA solution or a log server, and restoring a previous backup, etc.&lt;/P&gt;
&lt;H3&gt;&lt;A id="user-content-check-the-exact-cloudguard-iaas-image" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#check-the-exact-cloudguard-iaas-image" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Check the exact CloudGuard IaaS image&lt;/H3&gt;
&lt;P&gt;Check the CloudGuard images available on Google Cloud.&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud compute images list --project=checkpoint-public &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;In this lab, we're gonna deploy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;check-point-r8040-payg-294-759-v20201202&lt;/CODE&gt;. So you can verify the image by executing the following:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud compute images list --project=checkpoint-public  &lt;SPAN class="pl-k"&gt;|&lt;/SPAN&gt; grep check-point-r8040-payg-294-759-v20201202&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;You will also need to update the image variable in the script as well.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&lt;A id="user-content-pre-requisites" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#pre-requisites" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Pre-requisites&lt;/H3&gt;
&lt;P&gt;Please do the following;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Install&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/sdk/docs/install" target="_blank" rel="nofollow noopener"&gt;Google Cloud SDK&lt;/A&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;A service account with proper permission setup for your GCP Project:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/compute/docs/access/service-accounts" target="_blank" rel="nofollow noopener"&gt;https://cloud.google.com/compute/docs/access/service-accounts&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Enable Compute API:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/sdk/gcloud/reference/services/enable" target="_blank" rel="nofollow noopener"&gt;https://cloud.google.com/sdk/gcloud/reference/services/enable&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud services --project &lt;SPAN class="pl-k"&gt;&amp;lt;&lt;/SPAN&gt;project name&lt;SPAN class="pl-k"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;enable&lt;/SPAN&gt; compute.googleapis.com&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Download the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;cgi-gcp-setup.sh&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;script from this repo, and update the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VARIABLES&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the script. (e.g. project, network, etc)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Make the script executable by executing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;chmod +x cgi-gcp-setup.sh&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;And Execute the following:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;./cgi-gcp-setup.sh&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;A id="user-content-expected-output" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#expected-output" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Expected Output&lt;/H3&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;./cgi-gcp-setup.sh
WARNING: You have selected a disk size of under [200GB]. This may result &lt;SPAN class="pl-k"&gt;in&lt;/SPAN&gt; poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
Created [https://www.googleapis.com/compute/v1/projects/helloworld041019/zones/asia-southeast1-a/instances/cg-gateway].
NAME        ZONE               MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP          EXTERNAL_IP    STATUS
cg-gateway  asia-southeast1-a  n1-standard-2               10.0.0.10,10.4.0.10  1.2.3.4  RUNNING
Your CGI Gateway has been created on Thu Dec 10 13:14:41 +08 2020&lt;SPAN class="pl-k"&gt;!&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;A id="user-content-verify-that-your-gateway-is-running" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#verify-that-your-gateway-is-running" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Verify that your Gateway is running&lt;/H3&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;&lt;SPAN class="pl-smi"&gt;$gcloud&lt;/SPAN&gt; compute instances list  

NAME            ZONE               MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP          EXTERNAL_IP    STATUS
cg-gateway      asia-southeast1-a  n1-standard-2               10.0.0.10,10.4.0.10  1.2.3.4  RUNNING&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;Once the gateway is deployed, you can access the public IP via https (or SSH).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="cgi-gcp.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9670iF70350ACC0CE92CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="cgi-gcp.png" alt="cgi-gcp.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check out Check Point SK sk163656 for more information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jayden Aung&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2020 11:33:42 GMT</pubDate>
    <dc:creator>JaydenAung</dc:creator>
    <dc:date>2020-12-12T11:33:42Z</dc:date>
    <item>
      <title>CGI-GCP-DEPLOY - CloudGuard Deployer Script for GCP (Google Cloud Platform)</title>
      <link>https://community.checkpoint.com/t5/Cloud-Deployment/CGI-GCP-DEPLOY-CloudGuard-Deployer-Script-for-GCP-Google-Cloud/m-p/105112#M1</link>
      <description>&lt;P&gt;&lt;STRONG&gt;CloudGuard IaaS (Google Cloud Platform) Deployment Helper Script&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Original GitHub post here:&amp;nbsp;&lt;A href="https://github.com/jaydenaung/cgi-gcp-deploy" target="_blank" rel="noopener"&gt;https://github.com/jaydenaung/cgi-gcp-deploy&lt;/A&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image007.jpg" style="width: 721px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9687i9FB7D35247582F6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image007.jpg" alt="image007.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a simple helper script to automate deploying a specific Check Point CloudGuard IaaS gateway image on Google Cloud Platform.&amp;nbsp;&lt;SPAN&gt;I was in an escalation email thread where a partner is having difficulty with deploying a specific image on GCP, and thought this would help simplify the deployment a bit.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Of course, there are other ways to deploy CloudGuard on Google Cloud Platform (e.g. Deployment manager). But if you'd like to deploy a very specific CloudGuard image (even the ones that are not listed in deployment templates) for variety of reasons, this method and script is for you. A couple of reasons you might want to do this may include deploying or restoring a Management HA solution or a log server, and restoring a previous backup, etc.&lt;/P&gt;
&lt;H3&gt;&lt;A id="user-content-check-the-exact-cloudguard-iaas-image" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#check-the-exact-cloudguard-iaas-image" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Check the exact CloudGuard IaaS image&lt;/H3&gt;
&lt;P&gt;Check the CloudGuard images available on Google Cloud.&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud compute images list --project=checkpoint-public &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;In this lab, we're gonna deploy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;check-point-r8040-payg-294-759-v20201202&lt;/CODE&gt;. So you can verify the image by executing the following:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud compute images list --project=checkpoint-public  &lt;SPAN class="pl-k"&gt;|&lt;/SPAN&gt; grep check-point-r8040-payg-294-759-v20201202&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;You will also need to update the image variable in the script as well.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&lt;A id="user-content-pre-requisites" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#pre-requisites" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Pre-requisites&lt;/H3&gt;
&lt;P&gt;Please do the following;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Install&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/sdk/docs/install" target="_blank" rel="nofollow noopener"&gt;Google Cloud SDK&lt;/A&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;A service account with proper permission setup for your GCP Project:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/compute/docs/access/service-accounts" target="_blank" rel="nofollow noopener"&gt;https://cloud.google.com/compute/docs/access/service-accounts&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Enable Compute API:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cloud.google.com/sdk/gcloud/reference/services/enable" target="_blank" rel="nofollow noopener"&gt;https://cloud.google.com/sdk/gcloud/reference/services/enable&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;gcloud services --project &lt;SPAN class="pl-k"&gt;&amp;lt;&lt;/SPAN&gt;project name&lt;SPAN class="pl-k"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;enable&lt;/SPAN&gt; compute.googleapis.com&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Download the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;cgi-gcp-setup.sh&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;script from this repo, and update the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VARIABLES&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the script. (e.g. project, network, etc)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Make the script executable by executing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;chmod +x cgi-gcp-setup.sh&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;And Execute the following:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;./cgi-gcp-setup.sh&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;A id="user-content-expected-output" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#expected-output" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Expected Output&lt;/H3&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;./cgi-gcp-setup.sh
WARNING: You have selected a disk size of under [200GB]. This may result &lt;SPAN class="pl-k"&gt;in&lt;/SPAN&gt; poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
Created [https://www.googleapis.com/compute/v1/projects/helloworld041019/zones/asia-southeast1-a/instances/cg-gateway].
NAME        ZONE               MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP          EXTERNAL_IP    STATUS
cg-gateway  asia-southeast1-a  n1-standard-2               10.0.0.10,10.4.0.10  1.2.3.4  RUNNING
Your CGI Gateway has been created on Thu Dec 10 13:14:41 +08 2020&lt;SPAN class="pl-k"&gt;!&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;H3&gt;&lt;A id="user-content-verify-that-your-gateway-is-running" class="anchor" href="https://github.com/jaydenaung/cgi-gcp-deploy#verify-that-your-gateway-is-running" target="_blank" rel="noopener" aria-hidden="true"&gt;&lt;/A&gt;Verify that your Gateway is running&lt;/H3&gt;
&lt;DIV class="highlight highlight-source-shell"&gt;
&lt;PRE&gt;&lt;SPAN class="pl-smi"&gt;$gcloud&lt;/SPAN&gt; compute instances list  

NAME            ZONE               MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP          EXTERNAL_IP    STATUS
cg-gateway      asia-southeast1-a  n1-standard-2               10.0.0.10,10.4.0.10  1.2.3.4  RUNNING&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;Once the gateway is deployed, you can access the public IP via https (or SSH).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="cgi-gcp.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9670iF70350ACC0CE92CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="cgi-gcp.png" alt="cgi-gcp.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check out Check Point SK sk163656 for more information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jayden Aung&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 11:33:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Deployment/CGI-GCP-DEPLOY-CloudGuard-Deployer-Script-for-GCP-Google-Cloud/m-p/105112#M1</guid>
      <dc:creator>JaydenAung</dc:creator>
      <dc:date>2020-12-12T11:33:42Z</dc:date>
    </item>
  </channel>
</rss>

