Skip to main content
New Member
Oct 7, 2026 2:45 PM UTC
Question

restrict vpn traffic

Is there a way to restrict vpn traffic from my external ip to IP that vpn would connect to using fortigate?

    2 replies

    funkylicious
    SuperUser
    SuperUser
    Oct 7, 2026 3:41 PM UTC

    but instead of a object type geography ( in the first link ) , you create a subnet one. this would be for inbound traffic, towards the fortigate.

     

    Translate
    "jack of all trades, master of none"
    osoleimani
    Staff
    Staff
    Oct 7, 2026 5:24 PM UTC

    Hi tankguru,

    One distinction that may help is where you want the restriction to apply.

    If the goal is to restrict which external public IP addresses are allowed to establish the IPsec VPN, a Local-In policy is the appropriate control point for the incoming VPN traffic. Fortinet documents that Local-In policies can restrict services such as VPN based on source addresses.

    A useful reference is Local-in policy — FortiOS 7.6.

    If the goal is instead to restrict traffic after the VPN tunnel has been established, that is handled through the firewall policy associated with the IPsec interface. Fortinet documents this separately in VPN security policies — FortiOS 7.6.

    So, for a fixed external/public source IP that should be allowed to establish the VPN, I would look at the Local-In policy approach described above.

    Hope this helps clarify which control point to use for the restriction.

    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