Jump to content



Photo

Install Webmin Control Panel + CSF (Configurable from Webmin)


  • Please log in to reply
1 reply to this topic

#1 Khevin

Khevin

    Advanced Member

  • Members
  • PipPipPip
  • 235 posts
  • LocationMauritius

Posted 05 August 2014 - 06:06 PM

Original Thread By brrtsm,

 

Hey, I use this setup in my main VPS and in the Haphost VPS I use it with Webmin only (for now). It is a great control panel, low resource and easy to use so I though to share with you:

Instructions are for Ubuntu/Debian, might post CentOS later.

If you already have CSF installed skip from Step 3 to 5.
If you already have Webmin but not CSF skip the tutorial to Step 4.

Step 1

Let's update our available packages:

apt-get update

Step 2

Install necessary dependencies. If you already have them installed it will tell you anyway:

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

Step 3

Download and install webmin:

cd /tmp

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.630_all.deb

dpkg --install webmin_1.630_all.deb

You can now access it at https://Your-VPS-IP:10000
The Username - Password is the same as any user in your system, eg: root - pass


-- Extra Info from this Step, you can leave it to the end of the tutorial --

Take a time to explore it, you have a lot of things like File Manager, Apache Manager (if you have it installed), FTP Manager (VSFTPD or ProFTPD).

Probably, my most used module is System->Scheduled Cron Jobs.
You can setup a cron-job really easily, just hit "Create a new scheduled cron job." below the cron jobs table and the remaining steps are easy.

Uninstalled modules will be under the category "Un-Used Modules", when I install Webmin I always install ProFTPD from there since it is really easy to configure.

Under Webmin->Webmin Configuration->Webmin Modules, on the 3 dots on both "Standard module from www.webmin.com" and "Third party module from" you can select many more modules. If you get an error you can search them here: Webmin and then install by URL. (Copy the Download Link, in the Webmin Modules select install from URL and paste the link).

Step 4 - CSF Install

It is basically this tutorial, http://www.forum.hos...r-security.html, but we will also install a module so that you can configure from webmin.

Warning: If you already did the tutorial above before, you can skip this step.

Download and install CSF:

wget http://www.configserver.com/free/csf.tgz

tar -xzf csf.tgz

cd csf

sh install.sh

Step 5 - Install CSF Webmin Module

Login to Webmin as explained in step 4.

Go to Webmin->Webmin Configuration->Webmin Modules.

In the same line paste this: /etc/csf/csfwebmin.tgz

Click "Install Module".

Click in the blue link called Config Server & Firewall and you will probably need to click again on the blue link called here. You should be now in the CSF module.

Step 6

Configure CSF:

You should go to Firewall Configuration inside the CSF module.

In the dropdown select IPv4 Port settings.
In TCP_OUT and UDP_OUT it is better to paste this: 0:65535.

This will allow all outgoing ports and will avoid some hassle. In the TCP_IN and UDP_IN you should configure depending on the services you have enabled.

Example:
TCP_IN

SSH - 22
FTP - 21
Teamspeak3 - 30033, 10011

So TCP_IN line would be 21,22,30033,10011

UDP_IN

Teamspeak3 - 9987 (for default server)

So TCP_IN line would be 9987

Feel free to explore also CSF, it has many utilities. Don't forget to disable testing mode once you are ready to deploy the firewall (follow the instructions in the warning at the top)

CSF will always be under System->Config Server & Firewall

Any doubts about these (webmin & csf) feel free to ask as I use these for some time.

Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#2 Ber001

Ber001

    Member

  • Members
  • PipPip
  • 10 posts

Posted 06 August 2014 - 02:48 AM

Nice tutorial brow nice






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users