Skip to main content
michaelleroy
New Member
May 2, 2017 4:49 PM UTC
Question

Geo-Lock VPN traffic

We are wanting to restrict SSL tunnel, SSL web, and IPsec Dial up VPN connections to limited countries. 

 

I can't seem to find any specific documentation on this, other than the generic Geographic options available.

 

What would be the best practice to accomplish this?

2 replies

EMES
New Member
May 2, 2017 7:11 PM UTC

Local-In Policy would work for you. Its only copnfigured in the CLI. You would first create address objects for the countries you want to allow, setting the type to "Geography" and then the country to want to allow. Then in the CLI you would create a policy to allow that country and then create a deny all. 

 

config firewall address 
edit "US"
 
 set type geography
 set country "US"
 next
end
config firewall local-in-policy
 edit 1
 set intf "port2"
 set srcaddr "US"
 set dstaddr "all"
 set action accept
 set service "HTTPS"
 set schedule "always"
 next
 edit 2
 set intf "port2"
 set srcaddr "all"
 set dstaddr "all"
 set service "HTTPS"
 set schedule "always"
 next
end

 

Here is a link to a kb on how to configure it further. http://kb.fortinet.com/kb/documentLink.do?externalID=FD33649 

Translate
emnoc
New Member
May 3, 2017 2:32 AM UTC

I agree geoip and local-policy will get you what you want.

 

Ken

 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024