Enable and disable firewall
The firewall is enabled by default. Disabling the firewall can be useful or even necessary in many cases, e.g. in a test environment. This step shows how to disable the firewall. Note that without a firewall, incoming and outgoing connections will no longer be scanned. Never disable the firewall permanently.
Proceed as follows:
- 1. Enter the
doas service pf stop
command in the console.
The firewall is disabled. - 2. Enter the
doas service pf start
command in the console to re-enable the firewall.
- The firewall is automatically re-enabled after each restart. This behavior is ensured by the entry
pf_enable="YES"
in therc.conf
file.