My IP got accidentally blocked

5 posts / 0 new
Last post
#1 Tue, 10/30/2018 - 09:46
ax

My IP got accidentally blocked

I accidentally got blocked while attempting to log into my hosting via SSH. From my IP address, my website, webmin, SSH are all inaccessible now. Using VPN, I can access Webmin panel, but I can't find where I can unblock my IP. I have searched on this forum and elsewhere but nothing worked so far.

What I attempted:

Tried: Access the folder "etc/webmin/" and right-click to open the file "miniserv.conf" to edit the IP address banned from the website. No "deny" record found in file.

Tried: Access /var/webmin/blocked and delete banned IP. The file is empty.

Searched Linux Firewall records. Found nothing that could resolve the problem.

Appreciate any help from Webmin experts.

Tue, 10/30/2018 - 10:02
TheRavenKing Pro Licensee

Not sure what firewall you use because there are several ones in Webmin, but all you need to do is flush it.

Tue, 10/30/2018 - 10:05
andreychek

Howdy,

I suspect you're seeing an issue with Fail2ban. It should correct itself after a period of time, but you could always disable Fail2ban, or whitelist your IP there.

-Eric

Tue, 10/30/2018 - 10:15 (Reply to #3)
ax

No, Fail2Ban is listed under Unused Modules. Under Networking, I have Linux Firewall and Linux IPv6 Firewall. But I don't see anything relevant in their records.

Tue, 10/30/2018 - 10:34
andreychek

A new installation of Virtualmin configures fail2ban by default. Not necessarily in the GUI, but definitely installs the software and configures it to work with SSH.

That's the only thing on a new install that would be monitoring for SSH login attempts and automatically blocking based on failed logins.

If you're saying you hadn't installed anything else which might do that, I'd recommend logging in as root over SSH and running "service fail2ban stop", just to ensure that doesn't help.

-Eric