Is there a config parameter that I'm issuing that will shut down an existing traffic flow when a firewall policy is disabled? Disabling the policy stops any new connections but doesn't shut down traffic for an existing session which is what I'm trying to do.
Thanks.
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.
You need to kill the session.
kill all of the sessions manually? due to the nature of the environment these are in i will have many sessions.up that all need to be killed immediately upon disabling the firewall rule. seems like a missing feature to not have the ability to match state of existing sessions with a rule state change.
It seems there is a solution with firewall-session-dirty.
Check this tech tip.
Hope it helps.
AEK - this sounds like exactly what I was hoping for. i will do some testing and see. do you happen to know if this is a global param or is this set per individual
policy?
As per the tech tip, I understand that you first need to enable the global parameter, then you will be able to enable it per policy.
You can do a filter for the sessions and kill/clear them, https://community.fortinet.com/t5/FortiGate/Technical-Tip-Using-filters-to-clear-sessions-on-a-Forti...
Hi @Baba_Yaga ,
Once you disable the firewall policy, you can clear the session with this firewall policy as below:
1) Get the policy ID of this firewall policy
In the GUI, if there is a name for the policy, hover the mouse over the name, and you will see the policy ID. Otherwise, right click on the policy to select "_Edit in CLI", it will bring up the CLI widget and show you the policy ID
2) Run the following CLI commands in the VDOM for this firewall policy if you have VDOM enabled:
diag sys session filter clear
diag sys session filter policy xx // xx is the policy ID
diag sys session clear
diag sys session list // It should show 0 count as the result
diag sys session filter clear
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 |
---|---|
1733 | |
1106 | |
752 | |
447 | |
240 |
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.