Purpose:
This guide explains how to whitelist an IP address on a PBXware server using its custom firewall script.


Steps:

  1. SSH into the PBXware server using its IP address.
    Credentials are in the pbxware asset.
    Example:
    ssh root@<PBXWARE_IP>
  2. Edit the firewall script:
    nano /opt/firewall/firewall-pbxware.sh

  3. Add the following line before any DROP or REJECT rules:
    iptables -A INPUT -s %IPADDRESS% -j ACCEPT
    (Replace %IPADDRESS% with the IP you want to whitelist.)

  4. Save and exit the editor:
    (CTRL+O, Enter, then CTRL+X).

  5. Apply the changes:
    /opt/firewall/firewall-pbxware.sh

Note:
Repeat step 3 for each additional IP. This method persists as long as the script is re-applied after any firewall reset or reboot.