JAEN

FortiGate

config firewall policy

CautionEdit firewall policies

config firewall policy → edit <id> → set ...

Creates/edits policies from the CLI — for GUI outages and bulk work. Always re-show the policy afterwards.

Examples

  • config firewall policy edit 12 set status disable next endTemporarily disable a policy

Syntax

config firewall policy → edit <id> → set srcintf/dstintf/srcaddr/dstaddr/service/action → next → end

Before you run it

Mistakes hit traffic instantly.

Related commands

You can carry a laptop to the rack. Signal will not follow.

Check syntax standing in front of the hardware, with no connection at all. Free to install, no ads.

Get it free on the App Store