Hi all, as title, a stranger attempts to login our VPN from a specific external IP such as 85.56.83.8, do you know how to block it? or any other solutions?
Thanks in advance.
General answer would be "local-in policy" described in below post.
Toshi
Hi ,
If you have multiple such IPs, you can actually block them using the IP threat feed database and add that into the policy pertaining to VPN.
AFAICT, threat feed cannot be used in local-in policies.
is there any other advice?
local-in policy is the way to go. It's effective and available. What else do you need?
Hi, it's like the commands?
config firewall local-in-policy
edit 0
set intf "WAN"
set srcaddr "81.59.52.3"
set dstaddr "all"
set service "ALL"
set schedule "always"
Yup. Default action is DENY and will not show up using "show", but when you use "show full". Check to be sure.
Over time you will collect some number of 'hostile' public IPs. Put them into an address group and use the group in the local-in policy. This way, to add an address, you only have to edit the group and can leave the policy alone.
Hey junior,
that looks about right - it should block that 81.59.52.3 IP from accessing the FortiGate.
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 |
---|---|
1759 | |
1116 | |
766 | |
447 | |
242 |
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.