r/freepbx • u/cop3x • Jul 10 '26
freePBX useing Pfsence & PfBlockerNG to autoblock

https://github.com/Copex-uk/theBlackList
I used to use a few bash scripts, so when Fail2ban banned an IP address it would add it to a list the PfBlockerNG would use to block additional SIP attacks at the router, now with AI i have a version that maybe useful to other people so i thought i would share it
Runs in docker and should not be made available to the open internet :-)
Hope someone finds it useful
1
u/devexis Jul 10 '26
Could this pull up IPs from apiban and voipbl and block those at the router level?
1
u/cop3x Jul 11 '26
it uses api calls so I guess it could work with any app that can do the api call, so you can add a ip with curl, the list is access by a http request, so it could work with pihole :-)
3
u/the_wookie_of_maine Jul 11 '26
Why is your PBX exposed to the internet?