I think I locked myself out of Webmin

I restricted IP access only to my IP for Webmin, rebooted my server, and now I'm getting "This webpage is not available.

The webpage at https://mysite.com:10000/ might be temporarily down or it may have moved permanently to a new web address."

What did I do wrong? I can get to the files on my server through my console, what file needs to be edited to remove the IP restrictions?

Status: 
Closed (fixed)

Comments

How did you go about restricting the IP?

If you did that in Webmin -> IP Access Control, that would only make it so that a given user can only authenticate when connecting from a given IP address. You'd still see the login screen, it just would keep saying "Login Failed".

The error you're seeing, "This webpage is not available", sounds like a firewall or router issue. Was there by chance a firewall added to the system that's preventing any access?

For example, what does the command "iptables -L -n" show if you run that as root on your server?

I'm sorry. I added another IP to my server after configuring restrict access. The issue is with my server using DHCP instead of static DNS not the restricting access.

Sorry for the inconvenience.

No problem, I'm glad you got it figured out!

You can manually edit the restricted IP lists by SSHing in as root, opening /etc/webmin/miniserv.conf and changing the allow= or deny= line. Then run /etc/webmin/restart

Automatically closed -- issue fixed for 2 weeks with no activity.