Description
This article provides the solution to block a traffic from particular country.
Scope
FortiGate.
Solution
Name: country name.Example: China.
Type: Geography.
Interface: wan1.
Enable Show in 'Address List' and select 'OK'.
Source: China.
Destination: all
If in case any VIP policies exist, Keep the policy above VIP policies.
conf firewall policy
edit <firewall policy number>
set match-vip enable
The second solution is to create a local policy for the traffic coming from China. Select Local-in-policy from the GUI and create new:
In CLI:
config firewall local-in-policy
edit 1
set uuid fb3ffa72-749c-51ef-9bec-48282427934a
set intf "port1"
set srcaddr "China"
set dstaddr "all"
set service "ALL"
set schedule "always"
next
end
Related articles:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.