Skip to main content
mrun1955
New Member
November 20, 2018
Question

Block IP addresses by country in FortiGate

  • November 20, 2018
  • 0 replies
  • 2961 views

I need to block IP traffics from a certain country. I can export a free IP address table list from IP2Location. The sample output file in CIDR format is as below. It supports more than one export format but I'm not sure which one fit FortiGate best. What should I do next to import the list to enable blocking in FortiGate? I don't want to enter the ranges manually.

 

[code lang=css]# -------------------------------------------------------
# Free IP2Location Firewall List by Country
# Source: https://www.ip2location.com/free/visitor-blocker
# Last Generated: 20 Nov 2018 05:39:54 GMT
# [Important] Please update this list every month
# -------------------------------------------------------
27.116.56.0/22
43.230.209.0/24
43.231.131.0/24
43.249.40.0/22
43.250.136.0/22
45.65.58.0/23

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!