Skip to content

4.6 Configuration Auto Indexing

Gurdeep Singh (Guru) edited this page Aug 12, 2024 · 2 revisions

Configuration - Auto Indexing

Indexing is covered in the later chapters. Benefits of indexing and methods to clear and reindex.

With configuration option of auto indexing enabled, the firewall indexes the ip lookup for hosts that match any filter. So, instead of looping through the whole lookup process to find the filter that matches the IP Host address, it looks up in the index file to get the exact filter information.

Via CLI

admin@phpterminal:firewall(config)# set auto indexing disable

...
FIREWALL DETAILS > AUTO_INDEXING : No
...

admin@phpterminal:firewall(config)#

Via PHP Firewall Class

$firewall->setAutoIndexing('disable');

TIP: For faster lookup, it is advised to keep auto indexing enabled. Only disable this if you think there is a bug with the lookup and index mechanism.