How to Install Webmin Control Panel on Debian 9 Stretch

Webmin is a web-based system configuration tool for Linux. Webmin allows you to configure internal systems like users, disk quotas, services and configurations. It allows you to install and update applications like Apache, MySQL and IpTables. Webmin works off of modules and as long as there is a Webmin module, you can manage it through Webmin. Webmin requires port 10000 by default, so you will need it open and forwarded as necessary for your network configuration.

First things first, let us update our apt.

Shell

Now let us add the official webmin repository to our apt source list.

Shell

Now add these two sources to our new file and save your changes.

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

We now add the public keys for our new repository source.

Shell

Now that we have a new repository, we need to update apt again. Then we install webmin.

Shell

Now that webmin is installed we tell the service to start and auto start on subsequent reboots.

Shell

By default Webmin uses http and port 10000 to communicate. It also uses a self signed certificate so you will probably get a warning that you will have to accept until you get a trusted internal certificate. Navigate to your ip address in a browser using this format.

https://ipaddress:10000

Your default credentials will normally be any local user and their password. It would probably not be a good idea to regularly log in using root, but we will do it for testing purposes.

Webmin Control Panel
Webmin Control Panel
Continue Reading

How to Unban an IP Address from Fail2Ban

Lets face it, 9 out of 10 times if you are removing an IP address from fail2ban, it is probably your own. I have locked myself out remotely from my own server at a remote location more than once. This is why you always have several methods of getting back into your own box.

First things first, lets look at iptables and get an idea of the jail names.

Shell

Looking at the bottom of this picture you will see where I have a host jailed from failed logins. Now we need to get the actual jail name.

Shell

We will remove this host in the next step.

Shell

That is all to it, if we run the same command again we will see the number in the jail down to one.

Shell
Continue Reading