Firewall
Welcome to Firewall. |
Introduction
IPFW or ipfirewall is an internet-protocol-firewall written for FreeBSD. The ipfw system facility allows filtering, redirecting, and other operations on IP packets travelling through network interfaces. A firewall configuration, or ruleset, is made of a list of rules numbered from 1 to 65535. Packets are passed to the firewall from a number of different places in the protocol stack (depending on the source and destination of the packet, it is possible for the firewall to be invoked multiple times on the same packet). The packet passed to the firewall is compared against each of the rules in the ruleset, in rule-number order (multiple rules with the same number are permitted, in which case they are processed in order of insertion). When a match is found, the action corresponding to the matching rule is performed.
IPFW on GhostBSD
On GhostBSD ipfw is managed by OpenRC.
Attention: Please do not use FreeBSD firewall guidance on the FreeBSD handbook. |
IPFW is already setup to default: Set ipfw to default accept
If you run rc-update
it shows all running services, ipfw included.
OpenRC manages how ipfw (/etc/init.d/ipfw) configuration is initialized.
The old way defined by TrueOS allows you to define the firewall rules via a /etc/ipfw.conf file. You have to create that file as it does not exist by default.
However, OpenRC (main branch) defines the firewall rules within the /etc/ipfw.conf file itself.
See: ipfw on OpenRC
Back to the Wiki |