firehol-interface(5) | 3.1.6 | firehol-interface(5) |
firehol-interface - interface definition
{ interface | interface46 } real-interface name rule-params
interface4 real-interface name rule-params
interface6 real-interface name rule-params
An interface definition creates a firewall for protecting the host on which the firewall is running.
The default policy is DROP, so that if no subcommands are given, the firewall will just drop all incoming and outgoing traffic using this interface.
The behaviour of the defined interface is controlled by adding subcommands from those listed in INTERFACE SUBCOMMANDS.
Note
Forwarded traffic is never matched by the interface rules, even if it was originally destined for the firewall but was redirected using NAT. Any traffic to be passed through the firewall for whatever reason must be in a router (see firehol-router(5)).
Note
Writing interface4 is equivalent to writing ipv4 interface and ensures the defined interface is created only in the IPv4 firewall along with any rules within it.
Writing interface6 is equivalent to writing ipv6 interface and ensures the defined interface is created only in the IPv6 firewall along with any rules within it.
Writing interface46 is equivalent to writing both interface and ensures the defined interface is created in both the IPv4 and IPv6 firewalls. Any rules within it will also be applied to both, unless they specify otherwise.
The + (plus sign) after some text will match all interfaces that start with this text.
Multiple interfaces may be specified by enclosing them within quotes, delimited by spaces for example:
interface "eth0 eth1 ppp0" myname
A name should be unique for all FireHOL interface and router definitions.
See firehol-params(5) for information on the parameters that can be used. Some examples:
interface eth0 intranet src 192.0.2.0/24 interface eth0 internet src not "${UNROUTABLE_IPS}"
See firehol.conf(5) for an explanation of ${UNROUTABLE_IPS}.
FireHOL Team.
Built 12 Apr 2019 | FireHOL Reference |