Last active
January 2, 2020 20:43
Revisions
-
linuxoracledev revised this gist
Jan 2, 2020 . 1 changed file with 60 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,63 @@ sudo apt-get update sudo apt-get install webmin #Access Webmin #https://localhost:10000/ #How To Install and Configure Config Server Firewall (CSF) on Ubuntu #Download ConfigServer Firewall wget http://download.configserver.com/csf.tgz #ncompressing tar -xzf csf.tgz #disable Firewall ufw disable #Install ConfigServer Firewall cd csf sudo sh install.sh #check if the required iptables modules are available sudo perl /usr/local/csf/bin/csftest.pl #Basic Configuration nano /etc/csf/csf.conf #TESTING = "0" #Apply changes csf -r #Configuring ports ################################################ #On any server: #TCP_IN: 22,53 #TCP_OUT: 22,53,80,113,443 #UPD_IN: 53 #UPD_OUT: 53,113,123 #Apache: #TCP_IN: 80,443 #FTP server: #TCP_IN: 20,21 #TCP_OUT: 20,21 #UPD_IN: 20,21 #UPD_OUT:20,21 #Mail server: #TCP_IN: 25,110,143,587,993,995 #TCP_OUT: 25,110 #MySQL server #TCP_IN: 3306 #TCP_OUT: 3306 #Blocking IP addresses nano /etc/csf/csf.deny #Allowing IP addresses nano /etc/csf/csf.allow #Ignoring IP addresses nano /etc/csf/csf.ignore -
linuxoracledev created this gist
Jan 2, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #Configure APT Repository sudo nano /etc/apt/sources.list.d/webmin.list #Add below value to this file: # deb http://download.webmin.com/download/repository sarge contrib # deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib #Import the GPG key curl http://www.webmin.com/jcameron-key.asc | sudo apt-key add - #nstall Webmin sudo apt-get update sudo apt-get install webmin #Access Webmin #https://localhost:10000/