Linux System Administration 30
Blocking Bad UserAgents with ModSecurity and Fail2ban
Many bots crawl websites that do nothing to generate positive traffic for the site. They just use up available resources and bandwidth of the server. You can reduce this drastically by implementing blocking using ModSecurity to detect the bad agents and then fail2ban to block them in iptables for a period of time. This guide […]
mod_fastcgi Installation on Apache 2.2
What is mod_fastcgi? mod_fastcgi is an Apache module for interfacing with CGI programs allowing a server to handle more requests at one time. It does this by keeping an instance of php running in the background. When apache receives the request it forwards it to FasctCGI. It can increase performance and reduce memory useage over […]
How To Use LVM To Create A New Logical Volume
What is LVM Logical Volume Managment (LVM) is an abstraction layer between physical devices and the file systems which they create. This can make disk management easier by adding abilities to shrink or expand filesystems by just adding additional physical devices no longer being limited to a single physical device as the volume can span […]
KVM Virsh Console Access on CentOS 7
By default Kernel-Based Virtual Machines(KVM) are not set up to access a serial console on the host using virsh. To enable a serial virsh console, so you can view text-based output on the host machine from the virtual machine you will need to make modifications to both the virtual machine and the physical machine. Enabling […]
Using Parted To Create A New Swap Disk
What is Parted? Parted is a software package used to manipulate paritition tables. It is useful for formatting new disks, reorganinzing disks, and removing disk data First select the disk you would like to use, if you are unsure you you can use fdisk to list all of the disks available to you fdisk -l […]
SELinux Introduction In CentOS 7
What is SELinux? Security-Enhanced Linux (SELinux) was developed to provide access control for linux. It goes beyond file permissions and ACLs to create a more secure environment by limiting access. It is based on subjects, objects, and actions. A subject is the running command or application(example proftpd), the object is anything that can be accessed […]
FirewallD Introduction On CentOS 7
What is FirewallD? Firewalld was introduced in CentOS 7/ RHEL 7 with both a GUI and command line interface for making changes. It is a alternative for using IPtables. If offers a zone based firewall configuration that allows you to enable different zones with different levels of trust. Different Zone possibilities Zones change be changed, […]
Most Commented