Fortinet white logo
Fortinet white logo

Admin Guide (Standalone)

Move PBR rules

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

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