cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Highlighted
Employee
Employee

Using R80.10 APIs to update dynamic public IP address

Overview

A very simple bash script that uses Check Point R80.10 APIs in order to check and update your dynamic public IP address.

Description

This script checks if the object representing your public IP address is the actual public dynamic IP address you received from your ISP. If it's different, it means the IP changed, so the scripts uses several APIs in order to update the object IP address, update the gateway topology and install the policy.

For more details: https://github.com/lfama/updateDynamicIP

Notes

I wrote this script just for fun and to learn (and play) a little bit more about Check Point Management APIs.

Only tested in R80.10 Standalone environment running on 3200 appliance.

4 Replies
Employee++
Employee++

Re: Using R80.10 APIs to update dynamic public IP address

Very nice!

0 Kudos

Re: Using R80.10 APIs to update dynamic public IP address

Very nice. I am use this script with modifications.

0 Kudos

Re: Using R80.10 APIs to update dynamic public IP address

Seriously... thank you so much for this! I was having this exact issue with a 3200 and dynamic WAN addresses and this fixed all my problems! 

Employee+
Employee+

Re: Using R80.10 APIs to update dynamic public IP address

Just submitted to github an update for this script. Updated to R80.20 and added code to recurse the interfaces so that when the Gateway is updated is so to not loose topology or other settings.