Category «Linux»

Network install Windows from CentOS 6.X

Intro Setup description and other stuff: NOTE: 192.168.1.104 is the tftp/samba server in my case RouterOS dhcp config comes here CentOS disable fw update yum install xinetd and syslinux configure syslinux install samba configure samba extract iso and share it via samba Windows Download windows AIK from here. Mount the ISO and run StartCD. The …

Protecting Apache against DDoS using Fail2Ban

To protect your LAMP server against brute-force attacks you can use Fail2Ban. It’s a daemon that checks log files and does something if it finds a match according to it’s filters. In it’s simplest configuration it just bans (by adding an iptables rule) an IP address for a period of time. Let’s check it out how we can set it …

Add new HDD to existing CentOS 6.x LVM

Check if you can find the for newly added HDD: or use: If you cannot find your device force a rescan with: Now you should see a new device, with: or: Let’s presume its sdc, meaning it’s the 3th scsi/sata/sas drive added to this system. Create a new partition using fdisk: while in fdisk use …

Creating a HA cluster using two Centos 6.x servers

Important info in regards to CentOS 6.5 Due to consequence of multilib support and PATH handling heartbeat’s init scripts wont work on Centos 6.5. The easiest way to fix it is to install heartbeat 3.0.4-2 that is not currently in the epel repo, but can be downloaded from here: http://koji.fedoraproject.org/koji/taskinfo?taskID=6241294 Note: you will need both heartbeat-3.0.4-2.el6.x86_64.rpm and heartbeat-libs-3.0.4-2.el6.x86_64.rpm packages. …