Hi!
Fortigate 60D with 5.6.7
I have a some malicious attempts to connect to VPN/IPSec and I would like these ip addresses blocked before reaching ports 500 and 4500.
How can I block/deny certain ip addresses? I have tried Local-In policy but it does not seem to have an affect when I try myself from an external host. Is Local-In policy able to block like I want and is config correct (see attched photo)?
Thanks!
Regards
Jlax
That's what I do, and it does have an effect:
config firewall local-in-policyIt uses whitelisting which is easier for me as I don't have to collect bad addresses in the first place. Be sure to deny-all (policy2) one specific service only, or you will lose remote access etc.
edit 1
set intf "wan1"
set srcaddr "VPN_origin_countries"
set dstaddr "all"
set action accept
set service "IKE"
set schedule "always"
next
edit 2
set intf "wan1"
set srcaddr "all"
set dstaddr "all"
set service "IKE"
set schedule "always"
next
end
If I do a whitelist instead then I have to populate ip's from all Forticlient users?
Thanks again!
I have tried your whitelist and it sure works. I might use that :)
Thanks!
User | Count |
---|---|
2056 | |
1173 | |
770 | |
448 | |
341 |
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.