Skip to main content
nithincs
Staff & Editor
Staff & Editor
February 19, 2021

Technical Tip: Working of VPN location map

  • February 19, 2021
  • 0 replies
  • 10599 views

Description

 

This article provides a VPN location map fetching the location information of FortiGate and remote peers.

 

Scope

 

FortiGate.

Solution

 

When FortiGate is connected with a VPN (SSL and IPsec VPN), FortiGate will do a geolocation check for the client or remote peer IP using the FortiGuard IP Geography database.
Once FortiGate fetches the location, latitude, and longitude information for the database, it will place the respective remote peer to a specific location.

For example:

Let's consider remote peer IP is 208.91.112.52.

 

config vpn ipsec phase1-interface
    edit "test"
        set remote-gw 208.91.112.52
    next
end

 

FortiGate will do a geoip-query for 208.91.112.52.

As per the IP information in the database, it will locate the remote peer in the VPN location map.

 

aegon-kvm20 # dia geoip geoip-query 208.91.112.52
IP:208.91.112.52
{"city":{"geoname_id":5959538,"names":{"en":"Burnaby"}},"continent":{"code":"NA","names":{"en":"North America"}},"country":{"iso_code":"CA","names":{"en":"Canada"}},"subdivisions":[{"iso_code":"BC","names":{"en":"British Columbia"}}],"location":{"latitude":49.248810,"longitude":-122.980507,"time_zone":"America/Vancouver"},"postal":{"code":"V5G"}}

 

JeanPhilippe_P_0-1726147201249.png

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.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.