Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
junior
New Contributor II

how to block specific external IP avoiding from VPN login?

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.

8 REPLIES 8
Toshi_Esumi
Esteemed Contributor III

General answer would be "local-in policy" described in below post.

https://community.fortinet.com/t5/Fortinet-Forum/How-to-block-external-IP-to-avoid-connection-from-i...

 

Toshi

sharmaj
Staff
Staff

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.

 

https://docs.fortinet.com/document/fortigate/6.2.0/new-features/625349/external-block-list-threat-fe...

Jay sharma
ede_pfau
Esteemed Contributor III

AFAICT, threat feed cannot be used in local-in policies.


Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
junior
New Contributor II

is there any other advice?

ede_pfau
Esteemed Contributor III

local-in policy is the way to go. It's effective and available. What else do you need?


Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
junior
New Contributor II

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"

ede_pfau
Esteemed Contributor III

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.


Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
Debbie_FTNT

Hey junior,

that looks about right - it should block that 81.59.52.3 IP from accessing the FortiGate.

+++ Divide by Cucumber Error. Please Reinstall Universe and Reboot +++
Labels
Top Kudoed Authors