Installing Webmin on Red Hat Enterprise Linux 6

If you are using the RPM version of Webmin, first download the file from the downloads page at http://www.webmin.com, or run the command:

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570-1.noarch.rpm

Then run the command :

rpm -U webmin-1.570-1.noarch.rpm

The rest of the install will be done automatically. The administration username is set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://<YOUR-IP-OR-HOSTNAME>:10000.

You will more than likely need to open up port 10000 so modify iptables with the following:

-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT

I just use vi since I’m used to it but you can use your editor of choice.

vi /etc/sysconfig/iptables

Typically SSH is open so I just insert the access list entry below it.

Example of iptables (very basic):

# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT

Restart the iptables (firewall) services with the following command:

/etc/init.d/iptables restart

Example Output

# /etc/init.d/iptables restart

iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]

#

If you launch a connection to the URL http://<YOUR-IP-OR-HOSTNAME>:10000 you should see the Webmin login page. Enter the default root username and root credentials.

Additional Information:

Webmin website
http://www.webmin.com

iptables website:
http://www.netfilter.org/

About Michael O'Coners

President/Owner of Miocon
CCIE No. 8893

Michael has over 15 years of network infrastructure experience with a strong focus on security, routing, switching, unified communications, and wireless. As a technology business owner he understands business objectives should shape technology solutions and not the contrary. Michael combines his technology skill sets with successful business knowledge to provide other business owners and executives new insight into technology decisions.

Speak Your Mind

*

© 2004-2011 Miocon Networks LLC All Rights Reserved