Permission denied when trying to change ip permissions through ssh

Ok type nano /etc/webmin/miniserv.conf you need to edit the file not execute it, which is what you are trying to do

Okay, my beginning issue is that I am locked out of the webmin interface through https://localhost:10000. What should I edit to hopefully fix that? I’m thinking it’s an IP permission problem.

I’m assuming I should try something with the trust_real_ip=1?

I would check fail2ban first or in fact stop fail2ban first then try the webmin interface
Use service fail2ban stop then try to login to webmin if your still locked out then edit the file, remember to restart fail2ban afterwards with service fail2ban start if you can login with fail2ban stopped use webmin->networking->fail2ban and remove your ip from the webmin jail before you start fail2ban again

just delete the line allow=xxx.xxx.xxx.xx, save and then restart webmin

That line is not there

I have that as 0…

It will only show is you added the IP here.

Yeah, that’s how I locked myself out I’m pretty sure

its will be at the end of file, did you go to the bottom not just whats on screen

That is everything in the file except for the port:10000 at the very top

hmmm, try disabling firewall for a minute.
systemctl stop firewalld

see you can get to webmin

then systemctl start firewalld
that will check if its a firewall issue.

More likely fail2ban as the OP states they are locked out which assumes they had access before being locked out which may imply that the firewall is setup correctly

Correct, I had access before. Can you walk me through the fail2ban?

I did in an earlier post service fail2ban stop then try to access webmin

It said Failed to stop fail2ban.service: Unit fail2ban.service not loaded.

you can list the bans

fail2ban-client status webmin-auth

This did not work. It says that fail2ban isn’t installed

That not usual for virtualmin, have you just tried a reboot :slight_smile: