Category Archives: Coding

CTDB – GlusterFS NFS Event Monitor Script

Posted on by 2 comments

There is no CTDB monitor script for the GlusterFS NFS implementation as you cannot use the normal NFS event script that comes with CTDB, this is because GlusterFS manages NFS.

Without a proper monitoring script CTDB will not initiate a failover when NFS services fail, below I have created a script to solve this problem.


CentOS 7 – SELinux

I am assuming you already have SELinux working and configured for your GlusterFS / CTDB environment. If so you will need to add an additional policy for my event script to work properly.

Continue reading

Category: Coding, CTDB

Python – Generate or Apply Rules For Iptables to Block DNS Queries Based on Domain Names

Posted on by 1 comment

This code will generate or apply rules for IPtables to block DNS queries based on domain names. I wrote this script because I did not want to manually convert each section of the domain into hex with their respective sizes every time I needed to block a random set of domains.



Category: Coding, Python