Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Luca_Famà
Employee Alumnus
Employee Alumnus

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.

5 Replies
Robert_Decker
Advisor

Very nice!

0 Kudos
HeikoAnkenbrand
Champion Champion
Champion

Very nice. I am use this script with modifications.

➜ CCSM Elite, CCME, CCTE
0 Kudos
Daniel_Taney
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
Charles_Currier
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.

Danny
Champion Champion
Champion

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

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events