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.
Let's update our available packages:
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
Download and install webmin:
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:
tar -xzf csf.tgz
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.
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.
SSH - 22
FTP - 21
Teamspeak3 - 30033, 10011
So TCP_IN line would be 21,22,30033,10011
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.