Quantcast
Channel: GIDBlog » Linux
Browsing all 10 articles
Browse latest View live

Match IP in CIDR

Recently, I needed a simple PHP function that will match an IP Address in a CIDR block. I have a list of CIDR notations/blocks in a text file, like this: CIDR is Classless Inter-Domain Routing. Every...

View Article



Configuring iptables for Webmin Servers Index Module

Earlier today I implemented stricter iptables rules on this web server – finally completing one essential task I have been ignoring for so long. Minutes later, just when I was beginning to feel good...

View Article

Running Linux Programs at Boot Time

If, like me, you want to easily have some program start every time you boot up your Linux server, you need to find and edit the rc.local file in your file-system. /etc/rc.local is really a simple place...

View Article

Configure sshd Securely

Every time I set up a server, the very next thing I do is secure the Secure SHell Daemon (sshd). My checklist looks something like this: Permit no root logins. SSH Protocol 2 only. Implement a...

View Article

Managing sshd Brute-force Attacks with iptables

One effective method to minimise brute-force attacks and attempts to break into your public server via the SSH daemon is to use the appropriate iptables rule to specifically handle such an abuse. There...

View Article


Is MySQL Up?

These days I’m trying to develop a script to help me quickly copy my MySQL database from my (live) remote site straight into my , where I do all my development work. Right at the top of the script I...

View Article

Enable Compression for SSH

I use a lot, and I mean, A LOT! Because I manage 3 other servers, and they are located in different parts of the world, I rely completely on to keep them up and running optimally. Naturally, I keep...

View Article

Invalid command ‘RewriteLog’

A couple of days ago, I “upgraded” Fedora on my main and everything seemed to be working really well until I tried to set up a local development version of one of my sites back on the machine. When I...

View Article


Class ‘HttpResponse’ Not Found

After I “upgraded” Fedora (to Fedora 19) on my main recently, I only had one other essential post-installation task to complete before I could get back to my regular programming on this machine. I just...

View Article


Cannot Login to Ubuntu

I could not log into my laptop (running on Ubuntu) yesterday. Every time I entered my password — a password I haven’t changed in years — I was returned to the same login screen all over again! But I...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images