- Products
- Learn
- Local User Groups
- Partners
- More
What’s New in Device Diagnostics?
Dec 2nd @ 5pm CET / 11am EST
AI Security Masters
Security in the Pace of AI:
From Threat to Force Multiplier
CPX is Back!
Join us in Las Vegas, Vienna, and/or Bangkok!
Check Point Named a Leader
The Forrester Wave:
Enterprise Firewall Solutions, Q4 2026
What’s New in Agentic Network Orchestration
CheckMates Go:
Fun Ding
Good Morning,
Is there a way to generate/extract the list of countries that we currently block under Geopolicy? we are running on R80.20.
Use this script on management server to show countries and country IP lists.
This script lists all country entries from the file ip2country. csv and displays the countries sorted for R80.10+.
The country code can then be insert. For the selected country all IP Ranges are displayed.
So you can find all IP range, which are blocked by GeoProtection for a country.
Bash script to show IP ranges for countrys from GeoProtection
or
GEO Location Objects in Firewall Policy (with Dynamic Objects)
Regards
Heiko
Do you have such a long list in your Geo Policy?
yes we do, it s a very long list.
Getting this Geo Policy country list does not seem possible through the SmartConsole GUI or the API from what I can see.
However this information can be pulled out of the compiled policy out on the gateway similarly to the antispoofing configuration. The file to look at on the gateway is $FWDIR/state/local/FW1/local.set. There is a section called block_by_countries_protection in that file that shows all the countries listed under "Policy for Specific Countries". A fast way to access the list is the following command you can run on the gateway:
grep country_dispaly_name $FWDIR/state/local/FW1/local.set
(Note that I did not make a typo in the above command, it truly is country_dispaly_name in the file itself)
Obviously this one-liner does not show direction of enforcement and action (Drop/Accept) but if you know that all countries listed have an action of Drop this should be sufficient.
I sense an impending update to the ccc tool...
@Timothy_Hall senses are powerful. Solution here: One-liner to show Geo Policy on gateways
ccc script updated.
Use this script on management server to show countries and country IP lists.
This script lists all country entries from the file ip2country. csv and displays the countries sorted for R80.10+.
The country code can then be insert. For the selected country all IP Ranges are displayed.
So you can find all IP range, which are blocked by GeoProtection for a country.
Bash script to show IP ranges for countrys from GeoProtection
or
GEO Location Objects in Firewall Policy (with Dynamic Objects)
Regards
Heiko
@Basilio_Alcant1 looks for a list of countries, not IP ranges.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 28 | |
| 8 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |
Tue 24 Nov 2026 @ 01:30 PM (GMT)
La nueva realidad de los ataques DDoS: autonomía, escala y el futuro de la defensaWed 02 Dec 2026 @ 03:30 PM (GMT)
The New DDoS Reality: Autonomy, Scale, and the Future of DefenseTue 24 Nov 2026 @ 01:30 PM (GMT)
La nueva realidad de los ataques DDoS: autonomía, escala y el futuro de la defensaWed 02 Dec 2026 @ 03:30 PM (GMT)
The New DDoS Reality: Autonomy, Scale, and the Future of DefenseAbout CheckMates
Learn Check Point
Advanced Learning
WE SECURE YOUR AI TRANSFORMATION