I have a VPN tunnel to Azure. In the logs, I see random sites attempting Phase I with the VPN Tunnel interface on the Fortigate. They fail of course, as they aren't sourced from the specified IP address nor do they have the pre-shared key. But I don't enjoy seeing these messages in the logs.
How might I go about applying a Policy to prevent these packets from even reaching the IPSec VPN Tunnel interface? As I poke around, I'm realizing that I don't even know how FortiOS handles this -- I don't see any IPv4 Policy which permits IKE / ESP to my tunnel interface. I do see Local In Policies which seem to permit UDP 500 / 4500 / 1701 to *any* interface. And IPv4 Access Control List doesn't seem to be granular enough -- only supports Denies -- no Allows.
Is Local In Policy the place to start, in terms of attempting to lock this down?
--sk
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi,
Welcome to the Forums. Yes, the Local In Policy is the place, but you have to use CLI. Take a look at this Tread https://forum.fortinet.com/tm.aspx?m=148259&tree=true
Best, Markus
________________________________________________________
--- NSE 4 ---
________________________________________________________
Ahh, I see. Thank you for the pointer.
For reference, here is what I did:
config firewall local-in-policy edit 1 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "Remote Azure VPN Gateway" set dstaddr "Local Azure VPN Gateway" set action accept set service "IKE" set schedule "always" set status enable next edit 2 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "Remote Azure VPN Gateway" set dstaddr "Local Azure VPN Gateway" set action accept set service "ESP" set schedule "always" set status enable next edit 3 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "all" set dstaddr "Local Azure VPN Gateway" set action deny set service "IKE" set schedule "always" set status enable next edit 4 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "all" set dstaddr "Local Azure VPN Gateway" set action deny set service "ESP" set schedule "always" set status enable next end
Good to hear and thanks for sharing!
________________________________________________________
--- NSE 4 ---
________________________________________________________
Could you have just set the dst_addr to ALL
edit 3 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "all" set dstaddr "all" set action deny set service "IKE" set schedule "always" set status enable next edit 4 set ha-mgmt-intf-only disable set intf "AzureVPN" set srcaddr "all" set dstaddr "all" set action deny set service "ESP" set schedule "always" set status enable next end
PCNSE
NSE
StrongSwan
Yes, good point, that would seem to work just fine
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1714 | |
1093 | |
752 | |
447 | |
232 |
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 2024 Fortinet, Inc. All Rights Reserved.