- CheckMates
- :
- CloudMates Products
- :
- Cloud Network Security
- :
- Custom routes for CloudGuard IaaS in GCP
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Custom routes for CloudGuard IaaS in GCP
I have a question about route injection when using CloudGuard High Availability Clusters on Google Cloud Platform. I know that this behavior is determined in $FWDIR/conf/gcp-ha.json which looks like this, by default:
{
"debug": false,
"public_ip": "mycluster01-primary-cluster-address",
"secondary_public_ip": "mycluster01-secondary-cluster-address",
"dest_ranges": ["0.0.0.0/0"]
}
Instead of a default route, I'd like to advertise the RFC-1918 routes to the internal VPC network. So I modify the last line like this:
"dest_ranges": ["192.168.0.0/16", "172.16.0.0/12", "10.0.0.0/8"]
And perform a reboot. I'd expect all 3 routes to be injected, but I only see 192.168.0.0/16.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi johnnyringo,
Can you elaborate on why you are trying to change the route on the gateway itself? Routing generally is set on the other side (GCP portal).
I also found this link that might be relevant - https://cloud.google.com/vpc/docs/routes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
With HA deployments, the static routes must be injected by the CheckPoint gateway for outbound traffic to be correctly routed to the active member.
Simply adding static routes in GCP is fine for standalones, but not for HA clusters.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi johnnyringo,
We added support for multiple destinations ranges only for higher builds, please see sk147032 for the full list.
You are probably using an older build, so in order to use multiple destinations, please upgrade to the last build.
For more details see CloudGuard Network High Availability for Google Cloud Platform R80.30 and Higher Deployment Guide.
If it's not the case, please Contact Check Point support, and request to open a ticket.
Thanks,
Natanel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
OK, thanks. I took a closer look at $FWDIR/scripts/gcp_had.py and see this line:
def add_route(name, network, priority, next_hop_instance, range=None, project=None):
if not range:
range = conf['dest_ranges'][0]
To support multiple ranges, it would of course need to treat dest_ranges as a list, and then do a for loop or something similar.
We are currently on R80.40 Jumbo HF T158 with no plans to upgrade until next year. Could the gcp_had.py script be copied from an R81.10 gateway and still work in R80.40?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
We do not officially support it, but yes, it should work for you.
If you choose to take the risk, please follow the below:
- Backup gcp_had.py script on both instances.
Run: mv $FWDIR/scripts/gcp_had.py $FWDIR/scripts/gcp_had.py.backup - Extract the attached script, and put it under $FWDIR/scripts/gcp_had.py for both instances.
- Kill the GCP daemon. Run in the Expert mode:
ps aux | grep had
killall had - Make sure the process is running, run: ps aux | grep had
- In the Expert mode, run: cpwd_admin list | grep -E "PID|GCP_HAD"
- Test it again
Thanks
