Categories
Learning Journal

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 about myself, on a remote server some place else, the Webmin System and Server Status module there was reporting that it could no longer access this server!

Damn.

Categories
Learning Journal

Match IP in CIDR

Recently, I needed a simple PHP function that will match an IP Address in a CIDR block.