Solved Blacklisted IPs 0.0.0.0 - 255.255.255.255 - 3CX Debian

Status
Not open for further replies.

Lukasz Kolanowski

Customer
Joined
Mar 2, 2017
Messages
2
Reaction score
0
Hi,

I'm using 3CX based on Debian and had list on IPs to block.
Unfortunatelly I gave this job to my intern and he add full range of addresses to block from 0.0.0.0 to 255.255.255.255 for 20 years...

Now I can't login to panel, I have only connection to Debian console where 3CX is installed.
I havn't got allowed internal IP and I can't wait for 20 years :)

Is there any possibility to remove blacklisted IPs in 3CX or even whole list from Debian console?

If not, is it possible to just remove 3CX and it's database just by apt-get remove --purge, install it and restore backup?
 
If you do that it will just restore the black listed ip`s. But if you have a back up you can try editing black list number using Note++ In the back up zip file there is an .xml document open with Note++ do a search (I just searched for black) use next button to find all black listed ip`s. Find your ip range and change the block type from a 0 which = block to a 1 which = allow. Save the file and use the zip to restore the system. I tried on a current system that I had access too and it did change an ip from blocked to allow. So use this information at your own risk. Good luck let me know. In theory it should work but we all know about theories.
 
  • Like
Reactions: VoIPTools
Also when(?) that works go to blacklisted ip`s and delete that rule
 
Well you could restore an earlier backup if you had one, otherwise yes you would have to try the method @curtcar21 outlined.
 
Maybe I can learn something here.
If I understand the OP right, he can’t log in the 3CX Management Console because the full IP-range is blacklisted.

So how to execute a restore from a previous made backup if you can’t access the 3CX Backup and Restore routine?

I think the only way is to completely remove 3CX, re-install and restore backup.
 
  • Like
Reactions: craigreilly
I was clarifying that while restoring a backup post blacklist change wouldn't work, restoring one pre-blacklist change would work. After uninstalling of course.
 
Thank you for all suggestions.
I tried to connect to 3CX base using Debian console, unfortunatelly there is no way to change things like XML, etc everything is secured or I'm not so familiar with.

The only way is to reinstall 3CX and restore backup, so below short descrition what I did:

1. Login to Debian console ( if you're not root, ~su and password)
2. apt-get remove 3cxpbx --purge (confirm- > yes)
3. apt-get remove net-tools --purge (confirm -> yes)

Now 3CX has been uninstalled, so you need to install it again.

4. apt-get install 3cxpbx (confirm -> yes)
5. apt-get install net-tools (confirm -> yes)

When 3CX is installed you need to choose will you use it by console or browser:
https://www.3cx.com/docs/manual/configuring-your-pbx/

Browser is much easier for anyone who is not much connected with Linux.
Afterwards use Restore option in panel (of course after login to panel).

___________________________________________________________

AD 4. If there will be any kind of problem with installing at point 4, add:

wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | apt-key add -

echo "deb http://downloads-global.3cx.com/downloads/debian stretch main" | tee /etc/apt/sources.list.d/3cxpbx.list
 
Status
Not open for further replies.

Forum statistics

Threads
111,893
Messages
589,595
Members
164,760
Latest member
SaschaA_