Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
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.

Labels (3)
5 Replies
Employee++
Employee++

Very nice!

0 Kudos
Reply

Very nice. I am use this script with modifications.

0 Kudos
Reply
Advisor

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! 

R80 CCSA / CCSE
Employee+
Employee+

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.

Champion
Champion

The updated script as mentioned by @Charles_Currier can be found here.

0 Kudos
Reply