- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Using R80.10 APIs to update dynamic public IP addr...
- 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
- Report Inappropriate Content
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:
-
Access Policy
-
General
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very nice!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very nice. I am use this script with modifications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The updated script as mentioned by @Charles_Currier can be found here.
