.\" Automatically generated by Pandoc 2.2.1 .nh .\" .TH "firehol\-policy" "5" "Built 12 Apr 2019" "FireHOL Reference" "3.1.6" .hy .SH NAME .PP firehol\-policy \- set default action for an interface or router .SH SYNOPSIS .PP policy \f[I]action\f[] .SH DESCRIPTION .PP The \f[C]policy\f[] subcommand defines the default policy for an interface or router. .PP The \f[I]action\f[] can be any of the actions listed in firehol\-actions(5). .RS .PP \f[B]Note\f[] .PP 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. .PP It is common to define overlapping router definitions. Changing the policy to anything other than the default \f[C]return\f[] may cause strange results for your configuration. .RE .RS .PP \f[B]Warning\f[] .PP Do not set a policy to \f[C]accept\f[] unless you fully trust all hosts that can reach the interface. FireHOL CANNOT be used to create valid \[lq]accept by default\[rq] firewalls. .RE .SH EXAMPLE .IP .nf \f[C] interface\ eth0\ intranet\ src\ 192.0.2.0/24 \ \ #\ I\ trust\ this\ interface\ absolutely \ \ policy\ accept \f[] .fi .SH SEE ALSO .IP \[bu] 2 firehol(1) \- FireHOL program .IP \[bu] 2 firehol.conf(5) \- FireHOL configuration .IP \[bu] 2 firehol\-interface(5) \- interface definition .IP \[bu] 2 firehol\-router(5) \- router definition .IP \[bu] 2 FireHOL Website (http://firehol.org/) .IP \[bu] 2 FireHOL Online PDF Manual (http://firehol.org/firehol-manual.pdf) .IP \[bu] 2 FireHOL Online Documentation (http://firehol.org/documentation/) .SH AUTHORS FireHOL Team.