---
name: "firehol-policy"
section: "5"
platform: "linux"
package: "firehol-doc"
version: "3.1.8+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/firehol-policy"
---

# firehol-policy(5)

set default action for an interface or router

## NAME

firehol-policy - set default action for an interface or router

## SYNOPSIS

policy *action*

## DESCRIPTION

The `policy` subcommand defines the default policy for an interface or router.

The *action* can be any of the actions listed in [firehol-actions(5)](/firehol-actions/5.md).

**Note**

Change the default policy of a router only if you understand clearly what will be matched by the router statement whose policy is being changed.

It is common to define overlapping router definitions. Changing the policy to anything other than the default `return` may cause strange results for your configuration.

**Warning**

Do not set a policy to `accept` unless you fully trust all hosts that can reach the interface. FireHOL CANNOT be used to create valid “accept by default” firewalls.

## EXAMPLE

-

  ```
  interface eth0 intranet src 192.0.2.0/24
    # I trust this interface absolutely
    policy accept
  ```

## SEE ALSO

- •

  [firehol(1)](/firehol/1.md) - FireHOL program

- •

  [firehol.conf(5)](/firehol.conf/5.md) - FireHOL configuration

- •

  [firehol-interface(5)](/firehol-interface/5.md) - interface definition

- •

  [firehol-router(5)](/firehol-router/5.md) - router definition

- •

  FireHOL Website ⟨http://firehol.org/⟩\\c

- •

  FireHOL Online PDF Manual ⟨http://firehol.org/firehol-manual.pdf⟩\\c

- •

  FireHOL Online Documentation ⟨http://firehol.org/documentation/⟩\\c

## AUTHORS

FireHOL Team.
