Skip to content

4.1 Configuration Status

Gurdeep Singh (Guru) edited this page Aug 10, 2024 · 1 revision

Configuration - Status

PHPFirewall can run in 3 following modes:

enable - Firewall is enabled and is inspecting filters.

disable - Firewall is disabled, all IPs will be allowed.

monitor - Firewall is in monitoring state, it will allow IP even if the filter state is set to deny.

You can change the status of the firewall:

Via CLI

admin@phpterminal:firewall(config)# set status monitor

SET STATUS MONITOR OUTPUT
FIREWALL DETAILS > STATUS : monitor
FIREWALL DETAILS > FILTER_IPV4 : Yes
FIREWALL DETAILS > FILTER_IPV6 : Yes
...

admin@phpterminal:firewall(config)#

Via PHP Firewall Class

$firewall->setConfigStatus('monitor');