Fortinet black logo

Admin Guide (Standalone)

Move PBR rules

Copy Link
Copy Doc ID 9e8a98cd-5de9-11ec-bdf2-fa163e15d75b:329500
Download PDF

Move PBR rules

You can use the move command to change the order of the PBR rules you've created.

In the following example, you have created two policy rules:

config router policy

edit one

set input-device nas1

set srcaddr

set dstaddr all

set service

set target target.lo

set status enable

set comment

next

edit two

set input-device lo

set srcaddr

set dstaddr

set service

set target target.eth1

set status enable

set comment

next

If you want to move policy one after two, you can use either of the following commands:

move one after two

or

move two before one

Move PBR rules

You can use the move command to change the order of the PBR rules you've created.

In the following example, you have created two policy rules:

config router policy

edit one

set input-device nas1

set srcaddr

set dstaddr all

set service

set target target.lo

set status enable

set comment

next

edit two

set input-device lo

set srcaddr

set dstaddr

set service

set target target.eth1

set status enable

set comment

next

If you want to move policy one after two, you can use either of the following commands:

move one after two

or

move two before one