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

How can I modify the id of firewall Policy

Hi,

 

Is there anyway to modify the ID of a policy? for example if i have a firewall policy/security policy with ID 10 and I want to be with ID 9 ? is that possible ?

 

Thank you

2 REPLIES 2
funkylicious
SuperUser
SuperUser

If that ID, 9 doesnt exist, you can do this.

But this number is just and index, it has no real value in how the rules are processed, they can be moved up or down and ID will stay the same.

 

show firewall policy 10

and create it w/ 9

 

config firewall policy

    edit 9

    copy/paste frow show w/o uuid 

end

 

delete 10 

---------------------------
geek
---------------------------
---------------------------geek---------------------------
lol
Staff
Staff

Hello


> Is there anyway to modify the ID of a policy?

 

No you cannot modify an existing policy ID.

It gets created when adding the policy and cannot be modified afterwards.

 

But you can

- copy the content into a new policy wth desired policy ID as mebntioned in the last post from funkylicious
- or another approach would be to clone the ticket from old ticket ID to new ticket ID

 


example (FortiGate-VM64-KVM v7.2.4):

# config firewall policy

# ?
edit Add/edit a table value.
delete Delete a table value.
purge Clear all table values.
move Move an ordered table value.
clone Clone a table entry. <-----
get Get dynamic and system information.
show Show configuration.
end End and save last config.

# clone ?
policyid Policy ID (0 - 4294967294).
10

# clone 10 ?
to clone table entry to

# clone 10 to 9

# edit ?
policyid Policy ID (0 - 4294967294).
10
9

# delete 10

# edit ?
policyid Policy ID (0 - 4294967294).
9

# show


Regards

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors