Linux

Testing SSL on the Commandline

This is a useful one for testing dovecot when setting up SSL: openssl s_client -connect localhost:993 -quiet If you get a ‘Connection Refused’, you have my permission to swear loudly. For me, the C bomb echoed around these four walls several times.

By andy, ago
Linux

SMS Alerts with Nagios

I use Nagios a lot. If it’s not for the peace of mind that I know that my, and my clients infrastructure is monitored, its for the obsessive compulsiveness of the statistics. Admittedly, stats-wise I use Munin now, however, for monitoring everything I use Nagios. One of the awesome things Read more…

By andy, ago
Linux

Selectively Deleting from Postfix Queues

postqueue -p | tail -n +2 | awk -v r=**Email Address** 'BEGIN { RS = "" } / r/ { print $1 }' | tr -d '*!' | postsuper -d - This will delete anything from the postfix queue matching whatever email address is in **Email Address**

By andy, ago
Linux

Enable HTTP2 in Apache

HTTP/2 is the second major version of the HTTP protocol used by web servers. It is based on Google’s SPDY protocol. It is the first new version of HTTP since HTTP 1.1, which was standardised way back in 1997. By the end of 2015, most major bowsers (Chrome, Opera, Firefox, Internet Explorer 11, Safari, Read more…

By andy, ago
Coding

PHP RBL Checker

The following code checks an IP address (defaults to the visitors IP address) with 81 RBL servers worldwide! <?php $rbl = array( 'asiaspam.spamblocked.com', 'bl.deadbeef.com', 'bl.emailbasura.org', 'bl.spamcop.net', 'blackholes.five-ten-sg.com', 'blacklist.woody.ch', 'bogons.cymru.com', 'cbl.abuseat.org', 'cdl.anti-spam.org.cn', 'combined.abuse.ch', 'combined.rbl.msrbl.net', 'db.wpbl.info', 'dnsbl-1.uceprotect.net', 'dnsbl-2.uceprotect.net', 'dnsbl-3.uceprotect.net', 'dnsbl.abuse.ch', 'dnsbl.ahbl.org', 'dnsbl.cyberlogic.net', 'dnsbl.inps.de', 'dnsbl.njabl.org', 'dnsbl.sorbs.net', 'drone.abuse.ch', 'duinv.aupads.org', 'dul.dnsbl.sorbs.net', 'dul.ru', 'dyna.spamrats.com', 'dynip.rothen.com', 'eurospam.spamblocked.com', 'fl.chickenboner.biz', 'http.dnsbl.sorbs.net', Read more…

By andy, ago
Linux

Building your own Ad-blocking DNS Server

Ad-blocking software is great, but there are an increasing number of ways to detect and prevent people from viewing the site content. I found that by creating an ad-blocking DNS resolver, this would effectively simulate a connection issue when communicating with one of the advert servers, therefore not triggering this Read more…

By andy, ago
Miscellaneous

Netflix + Android: No Video Fix

One of the benefits of Netflix is that I could install it on both my kids’ tablets. However, my eldest like to fiddle, just like me. Suddenly, Netflix video stops working but you hear sound. Frustrating! To fix it, you need to simply turn off Colour Corrections and Live Display. Read more…

By andy, ago
Linux

Quick and Dirty Rundown for PSAD

This is a very quick and dirty rundown on what to do to set up PSAD to manage blocking naughty people. There are lots of guides with a lot of fluff. This is a bare-bones, no-BS version of this. I have run this through Ubuntu 16.10, but you may be Read more…

By andy, ago
Coding

Floating Trump Balloon!

I’m working on a ‘Floating Trump Blimp’ javascript thing for WordPress using jqFloat and jQuery. Although I have never written anything for wordpress at all in my life apart from borderline crap content, but here it is in its infinite glory: It’s a simple affair- Include jqFloat.js (found at http://www.inwebson.com/jquery/jqfloat-js-a-floating-effect-with-jquery/) after Read more…

By andy, ago