Fortigate v7.4.5 build2702 (Mature)
I am trying to block large subnets that are trying to access the management interface of our firewall. Almost just like this page here: https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-FortiGate-Firewall-Policy-to-b...
I've created an address subnet object then created the following firewall policy:
Name: Deny X.0.0.0
Incoming Interface: Any
Outgoing Interface: Any
Source: X.0.0.0-Net
Destination: All
Schedule: always
Service: All
Action: Deny
Log Violation
Enable Policy
Despite this I continue to see connection attempts being made. All of them either end in client-rst or server-rst. What am I missing? Or is there something else i need to do?
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.
create local in policy : https://docs.fortinet.com/document/fortigate/7.6.0/administration-guide/363127/local-in-policy
Thanks, I will check that out. Why does the firewall policy not block that incoming traffic?
It is important to know the difference between a firewall policy and a local-in policy. While firewall policies control traffic flowing through the FortiGate, local-in policies control inbound traffic that is going to a FortiGate interface.
Thanks again. This is a different way of doing things than other firewalls that I am familiar with.
Back to the matter at hand. Since we're using Fortigate OS 7.4.5 I have to use the CLI to add this policy. Problem is that it doesn't take the policy. I don't get any errors but when I go to list the policies either through the CLI or the web interface, the new policy isn't there. What am I missing?
I created geographical regions in the addresses area for China, India, and Russia.
config firewall local-in-policy
edit 11
set intf any
set srcaddr China India Russia
set dstaddr all
set service ALL
set schedule always
set action deny
next
end
EDIT: Ok I take that back sort of. The GUI still does not show the new policy but when input the proper command in the CLI I see the new policy. However the CLI ONLY shows the new policy, and none of the ones that the GUI shows.
EDIT2: It's definitely working as now there's a ton of traffic from those locations that's being denied according to the logs.
on earlier versions, we can only see local in policy from the CLI.
The GUI support for local-in policy is supported on 7.6.0 firmware version
Please refer this link for more information: https://docs.fortinet.com/document/fortigate/7.6.0/new-features/308650/gui-support-for-local-in-poli...
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.