Firewall configuration for WiKID Enterprise Server 5.4+

WiKID servers use the nftables firewall interface to the kernel netfilter API.  For more information on
nftables and details on configuration, please see the nftables documentation at:
https://wiki.nftables.org/wiki-nftables/index.php/Main_Page#Reference

The default server firewall rules are located in /etc/nftables/wikid.nft.  It is not recommended to
edit this file directly as it may be overwritten when updating the server.  A custom set of rules
may be safely included by editing /etc/nftables/custom.nft.

By default, the server will start with only established, loopback and SSH connections allowed.  The WiKID
server will dynamically open ports for configured protocols on server startup and close them when the server
is stopped.

During installation any existing firewall is disabled and masked via systemctl. You may re-enable another firewall
if desired but this may result in hard to isolate firewall issues.  Running multiple firewalls is not a supported
configuration so use at your own risk.  WiKID firewall hooks are placed at priority -10.  Please understand netfilter
rule priorities and the relative priority of secondary firewall rules before implementing.

To disable WiKID management of the system firewall set firewall.manage=false in /etc/WiKID/WiKID.properties

For reference, WiKID dynamically opens the following protocol ports depending on server configuration:
    TCP 49      TACACS+
    TCP 80      HTTP
    TCP 389     LDAP
    TCP 443     HTTPS
    TCP 1812    RADIUS Authentication
    UDP 1812    RADIUS Authentication
    TCP 1813    RADIUS Accounting
    UDP 1813    RADIUS Accounting
    TCP 8343    wAuth REST
    TCP 8385    wAuth events
    TCP 8388    wAuth Socket