How to change shared public IP of Virtualmin for all domain hosts

Steps are pretty straight forward.

Step-1:

Under > Webmin > Networking > Network Configuration > Network Interfaces

You need your VM or server console access. Update the new IP with the old one from the correct interface. You will lose the connection. Reboot the server and re-login to webmin/virtualmin interface.

Step-2

Virtualmin > Addresses and Networking > Change IP Addresses > Change Real Address and simply inserting the new primary IP there.

It’ll take a while to update records of the old IP to the new one.

You’re done.

Share

ZFS Manager Webmin Module

I found this wonderful webmin module of ZFS Manager. Kinda love its feature and functions as it literally shortened the tedious siwtches and values of zfsmanager! I’m just quoting from the developer’s readme section down here-

ZFS administration tool for Webmin

This is in early development, not for production. That being said, try this out in a virtual machine or anywhere else where data is non-critical. My hope is that this will ultimately provide Webmin with similar ZFS functionality to FreeNAS and NAS4Free.

This project lives at https://github.com/jonmatifa/zfsmanager provide all feedback and bug reports there. I am brand new to Perl and Webmin’s API. so first I apologize for the shabby state the code is in, second any further contributions are greatly welcomed. I am learning a fair amount about ZFS along the way as well.

I am currently developing this under ZFS on Linux in Ubuntu, but all varients of ZFS/Webmin are planned to be supported in the future.

Installation

You can either use a *.wbm.gz from the releases tab, or “# git clone https://github.com/jonmatifa/zfsmanager.git” from the webmin root directory (Centos/REHL: /usr/libexec/webmin, Debian/Ubuntu: /usr/share/webmin), this will clone everything into the zfsmanager subfolder (which will be created). Then copy the “config” file to /etc/webmin/zfsmanager once that is done, you can then keep up to date with by “# git pull” from the webmin/zfsmanager directory.

Feedback

I am interested in what you think, even during this early alpha phase. The issue tracker can be used not only for bug reports but also feature requests and comments in general. Tracking and fixing bugs is important, but I also want to know what you think about the idea of the project and things like usability and UI design.

Contribution

Right now its just me developing this. I’m not a programmer by trade, but I’m happy to work on this project whenever I can. I would love help from someone more seasoned at perl (don’t judge me too hard), but also someone who “gets” the design philosophy of this project and understands the Webmin API. I’m a beginner myself so I’m not looking for too much.

Src: https://github.com/jonmatifa/zfsmanager/

Installation:

Download the ZFS Manager Alpha 0.1.5a release:

Read more

Share

Reset Webmin Password

  1. Open a terminal or command prompt on the server where Webmin is installed.
  2. Navigate to the Webmin installation directory. The default location is
    /usr/local/webmin
    cd /usr/local/webmin
  3. To change password run command:on RedHat distributions (i.e. Fedora, CentOS, Gentoo, etc.):
    /usr/libexec/webmin/changepass.pl /etc/webmin admin newPassword
  4. on Debian distributions (i.e. Debian, Ubunto, etc.):
    /usr/share/webmin/changepass.pl /etc/webmin admin newPassword
Share

Configuring SMTPS in Virtualmin

Under System Settings > Server Templates (and under the dropdown menu “Edit template section”) > Mail client auto-configuration. In the section Thunderbird auto-configuration XML, under the heading outgoingServer, I changed the port from $SMTP_PORT to $SMTPS_Port and selected XMLtemplate below as opposed to Automatically generated. My XML template is therefore as follows:

<?xml version="1.0" encoding="UTF-8"?>

<clientConfig version="1.1">
<emailProvider id="$SMTP_DOMAIN">
<domain>$SMTP_DOMAIN</domain>
<displayName>$OWNER Email</displayName>
<displayShortName>$OWNER</displayShortName>
<incomingServer type="imap">
<hostname>$IMAP_HOST</hostname>
<port>$IMAP_PORT</port>
<socketType>$IMAP_TYPE</socketType>
<authentication>$IMAP_ENC</authentication>
<username>$SMTP_LOGIN</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>$SMTP_HOST</hostname>
<port>$SMTPS_PORT</port>
<socketType>$SMTP_TYPE</socketType>
<authentication>$SMTP_ENC</authentication>
<username>$SMTP_LOGIN</username>
</outgoingServer>
</emailProvider>
</clientConfig>

If the variable $SMTPS_Port doesn’t work for you, you can try manually entering port 465.

Src: https://serverfault.com/questions/605090/configuring-smtps-in-virtualmin

Share

Install webmin on Centos 7 using Yum

Create and open this new file using your text editor:

sudo vi /etc/yum.repos.d/webmin.repo

Then add these lines to the file to define the new repository:

nano /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Save the file and exit the editor.

Read more

Share

DNS Slave Using Virtualmin

DNS Slave Auto-Configuration Quickstart

A quick guide to assist administrators who want to use Virtualmin’s automatic DNS slave configuration features. This allows for DNS server redundancy.

Introduction

Virtualmin can automatically manage any number of DNS slave servers for you. Once configured, it will create slave zones on other servers and configure them to automatically update when changes are made on your Virtualmin server. For this to work, you need Virtualmin on your primary server and Webmin (a free download) on your slave server(s). Henceforth, all references will refer to the primary server as the “Virtualmin server” and the DNS slave server as the “slave server”.

Getting Webmin for the Slave

If you don’t have Virtualmin installed on your slave server(s), you’ll need to install Webmin. Webmin is available for nearly every UNIX and Linux variant available, and is free to download and use.

Read more

Share

Create a Linux Router with DHCP services

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

Fig-1

  1. Select right ethernet interface on Default Route
  2. Fillup the correct gateway
  3. Enable “Act as a Router”

On Networking > Linux Firewall > Select “Reset Firewall”

Read more

Share