fw defaultgen

Description

Manually generates the Default Filter policy files.

Refer to these related commands:

Syntax

fw [-d] defaultgen

Parameters

Parameter

Description

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

Best Practice - If you use this parameter, then redirect the output to a file, or use the script command to save the entire CLI session.

defaultgen

Generates the Default Filter policy files:

  • For IPv4 traffic:

    $FWDIR/state/default.bin

  • For IPv6 traffic:

    $FWDIR/state/default.bin6

If the Default Filter policy file already exists, the command creates a backupClosed (1) In VRRP Cluster on Gaia OS - State of a Cluster Member that is ready to be promoted to Master state (if Master member fails). (2) In VSX Cluster configured in Virtual System Load Sharing mode with three or more Cluster Members - State of a Virtual System on a third (and so on) VSX Cluster Member. (3) A Cluster Member or Virtual System in this state does not process any traffic passing through cluster. copy ($FWDIR/state/default.bin.bak and $FWDIR/state/default.bin6.bak).

Example

[Expert@MyGW:0]# fw defaultgen
Generating default filter
defaultfilter:
Compiled OK.
defaultfilter:
Compiled OK.
 Backing up default.bin as default.bin.bak
 hostaddr(MyGW) failed
 Backing up default.bin6 as default.bin6.bak
[Expert@MyGW:0]#