Solved! Go to Solution.
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.
VicAndr wrote:emnoc wrote:Could you elaborate - how you actually do it via the CLI, please? ...I mean for FortiOS v.5.2.X.
You can also do it via the cli under config firewall policy and the move option
check this
config firewall policy
move <policyid> <before/after> <policy id>
emnoc wrote:Could you elaborate - how you actually do it via the CLI, please? ...I mean for FortiOS v.5.2.X.
You can also do it via the cli under config firewall policy and the move option
VicAndr wrote:emnoc wrote:Could you elaborate - how you actually do it via the CLI, please? ...I mean for FortiOS v.5.2.X.
You can also do it via the cli under config firewall policy and the move option
check this
config firewall policy
move <policyid> <before/after> <policy id>
Thank you!
"move" command is not described anywhere in the CLI reference. I did find it mentioned in "System Administration" guide AFTER emnoc and you pointed on it but there are no description or usage examples there.
I can copy a policy and paste it just below or above one line of the existing policy. How is it possible to move policy at position 30 to position 1?
config firewall policy
move 30 before 1
end
But when you mean position, you mean Sequence order? The fwpolicy-id is just a place order, you need to know what fwpolicy-id is at what position ( ordering )
So for example let say you had policy in this order
1
3
12
11
9
4
5
And you cloned #12 to a newpolicyid #13. This by default would add it to last in line so ordering would look like this;
1
3
12
11
9
4
5
13
But if you want to place this behind 12 you could do it like this;
config firewall policy
clone 12 to 13
move 13 after 12
end
We should never assume fwpolicy-id #1 is the 1st policy in the ordering.
Ken
PCNSE
NSE
StrongSwan
Hi Ken,
Thank you for your valuable response.
So CLI is the only option I can move the policies? My concern is that I want to copy a policy from GUI which is at position 1 and drag it to position 20. How can I do that through GUI?
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 |
---|---|
1634 | |
1063 | |
751 | |
443 | |
210 |
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.