Purpose:
This guide explains how to whitelist an IP address on a PBXware server using its custom firewall script.
Steps:
- SSH into the PBXware server using its IP address.
Credentials are in the pbxware asset.
Example:
ssh root@<PBXWARE_IP> - Edit the firewall script:
nano /opt/firewall/firewall-pbxware.sh - 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.) - Save and exit the editor:
(CTRL+O, Enter, then CTRL+X). - 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.