firehol-policy(5)

firehol-policy5

Set default action for an interface or router

Usage

policy action

Overview

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).

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.

Examples

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

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

FireHOL Team.

From firehol-doc 3.1.8+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.