Wirtualmin access restriced to IP - how to reset via SSH

I have had restricted access for root to Wirtualmin to one IP - now I’m got locked as IP was changed and need to reset it via SSH. Where can I find those settings via terminal access?

Thanks

Hi,

I would suggest you to edit that config from webmin/virtualmin interface in your browser.

How can I edit that when I have locked access to webmin/virtualmin from my IP and was restricted to different which has changed. I have access to that box as a root only via SSH or a console

I see - you restricted access to the box for external IP? If srv is on same lan, and restriction was made for local ip, then it would be easier, however if the case is external IP and your server is within some hosting company, you may have to phone them to make those changes from local terminal… that seems to me the only option. If you have server in home or have physical access to it, then just log in to it directly and edit sshd config…

I’m locked to the Webmin access (web access) not SSH. I can connect via SSH and locally via terminal so I need to unlock Webmin access which was set under Webmin Users -> root -> Security and Limits options -> IP access control

Hi,
you can edit nano /etc/webmin/miniserv.conf and once options changed you need to restart with services webmin restart and you should be able to log in.

Which option to change? Anyway - I have edited miniserv.users to add new IP.

Thanks