It’s pretty easy to build a Linux router even on a virutal machine. I’ve used virtualbox to create a LAN NAT router with DHCP services using webmin. However, I’m not going to cover on how to use a virtualbox VM 🙂
Let’s create the NAT Router first.
On Webmin go to Networking > Network Configuration > Routing and Gateways
- Select right ethernet interface on Default Route
- Fillup the correct gateway
- Enable “Act as a Router”
On Networking > Linux Firewall > Select “Reset Firewall” Continue reading “Create a Linux Router with DHCP services” »
The latest webmin has bug! In this tutorials I’m using webmin verison 1.801- that actually works. Don’t know if webmin team really knows are aware of the bug 🙁
So, let’s start. But before that, it’s assumed that you have webmin installed in both the servers.
Configuring Webmin Server Continue reading “Bind DNS Auto Slave Using Webmin” »
Installing the RPM
If you are using the RPM version of Webmin, first download the file from the downloads page, or run the command :
then install optional dependencies with :
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
and then run the command :
rpm -U webmin-1.870-1.noarch.rpm
Continue reading “Webmin installation on Centos” »
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
In our previous article, you have setup your DNS Server using Webmin, refer below link for more information.
In this article We will seen how to configure DHCP Server Using Webmin(web-based interface). Webmin tool offer to new system administrators to perform all system management task from via a web browser, Instead of using the command line console or terminal. You can also manage a system from the console or remotely. Continue reading “Configure DHCP Server Step-by-Step config Guide Using Webmin” »
To install webmin on debian 8 just follow this instructions :
apt-key add jcameron-key.asc
echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list
apt-get -y install webmin
Continue reading “Install webmin on debian 8” »
So the Webmin on Redhat/CentOS is now requiring this particular perl module to be pre-installed before the RPM installer begins.
A very short cut to install this module by using yum-
yum install -y perl-Net-SSLeay
Voila! your done.
First get rid of bind-chroot (if it is installed!)
yum -y remove bind-chroot
edit /etc/sysconfig/named and remove/comment out any lines that look like ROOTDIR="/var/named/chroot"
Fix the owner of /etc/named.conf with
chown named:named /etc/named.conf
In Webmin go to Servers > Bind DNS Server > Module Config and check the following configs Continue reading “Fixing Bind for Webmin” »
Download the latest Webmin RPM to openfiler from this page: (You want "RPM suitable for Redhat, Fedora, CentOS, SuSE or Mandrake Linux")
Copy the link from the webpage to download the correct RPM file and download it on Openfiler using the following command. If you are downloading a more updated copy of Webmin then replace the "webmin-1.510-1.noarch.rpm" with the correct filename:
After it's downloaded in the root users home directory you need to convert the RPM to CPIO format to extract it, do this with the following command. (Once again replacing the "webmin-1.510-1.noarch.rpm" with the correct filename") : Continue reading “Webmin installation on openfiler” »
If you are using the DEB version of webmin, first download the file from the downloads page , or run the command :
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.610_all.debthen run the command :
dpkg --install webmin_1.610_all.deb
The install will be done automatically to /usr/share/webmin, the administration username set toroot and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.
If Debian complains about missing dependencies, you can install them with the command :
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions pythonIf
you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out.
Some Debian-based distributions (Ubuntu in particular) don't allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.
If you want to connect from a remote server and your system has a firewall installed, see this page for instructions on how to open up port 10000.
Installing Nginx Support
Switching a system from the Apache webserver (installed by default by Virtualmin to Nginx should only be done if no virtual servers with websites have been created yet. Ideally the change should be done on a freshly installed system, running RHEL 6.0, CentOS 6.0 or Debian 6.0 or later. Virtualmin version 3.89 or above is also required.
The steps to remove Apache and install Nginx are :
- Shut down Apache with the command
/etc/init.d/httpd stop ; service httpd off (on RHEL or CentOS), or
/etc/init.d/apache2 stop ; update-rc.d apache2 remove (on Debian).
- Install Nginx with the command
yum install nginx (on RHEL or CentOS) or
apt-get install nginx (on Debian).
- Start the Nginx webserver with the command
- Install Virtualmin's Nginx plugin with the command
yum install wbm-virtualmin-nginx wbm-virtualmin-nginx-ssl (on RHEL or CentOS) or
apt-get install webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl (on Debian). Continue reading “Install nginx on virtualmin (GPL) server” »