Unable to prevent ip from getting banned

Even after adding the remote endpoint public ip to the “Trusted Networks” in the responsive firewall, it still gets banned. I suspect there is some sort of internet issue at the remote location, perhaps sending incomplete packets with the pjsip password,

Is there any definitive way to actually whitelist an IP so it NEVER gets banned?

I’m using hostname in the Firewall > Networks > “trusted zone”.
The IP gets blocked by Fail2Ban.

Is there a way to whitelist it in Fail2Ban? I’ve had Spectrum Internet out at the remote site several times and they claim there are no problems. What can I do to permanently whitelist this IP? Do I need to add a custom Firewall rule?

I’m running Distro = FreePBX

Admin -> System Admin -> Intrusion Detection -> Whitelist. After making changes, click Restart.

1 Like

Thank you @Stewart1

I should’ve known that!


Has the whitelist been moved?
When running FreePBX
I go to
Admin > System Admin > Intrusion Detection (I’m then redirected to “Connectivity > Firewall”).

I no longer see the whitelist option.

I believe its because the new firewall incorporated the whitelist and ban list into the connected intrusion detection system. You have to enable the new “whitelist” sync option to automatically add extensions that authenticate to the whitelist but I still occasionally get whitelisted IP’s banned. I opened a bug ticket in freepbx. Re: Whitelisted IP get added to Blocked list .

connectivity->firewall, intrusion tab. To enable click the sub menu on the right and then click advanced. then advanced settings. Near the bottom enable " Intrusion Detection Sync Firewall". Now you can not only auto add IP’s that authenticate properly to the whitelist, if an IP ends up o nthe ban list you can individually unban them instead of unbanning all IP’s.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.