WordPress Permalink Problems
Posted in Tech
First dog watch, 1 bell (4:43 pm)

Well, it was a problem, I fixed it just now. I used to have to link through the index.php file, so my permanent links would look something like:
http://bogomip.net/blog/index.php/2006/05/03/name-of-post, but now I've got that part removed (although the old mechanism works to support old links) and all you see is /blog/2006/05/03/name-of-post.

I'm real excited about this, because it's fixed my problem with Rob's Now Reading plugin, except the View Full Library link doesn't work for some reason. I can get it to pull up by calling it like so: /blog/index.php?now_reading_library=true, it looks like the rewrite rule in the now-reading.php file isn't behaving properly. Hopefully I'll have that patched up soon.

In the meantime, if you, like me, had trouble getting permalinks to work in WordPress, here's what I did to get it working.

In httpd.conf, under my virtual host record, I added:

    <Directory /physical/path/to/my/blog>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule . /blog/index.php [L]
        </IfModule>
    </Directory>
Leave a Comment »
Easy Way to Ban IPs in Linux
Posted in Tech
Afternoon watch, 2 bells (1:24 pm)

Every now and then some jackass thinks he can hack my system. They don't know that I keep a close eye on my secure remote logins. I've found the easiest way to stop people like that from attempting to crack passwords is to just drop their packets at the firewall level:

/sbin/iptables -A INPUT -s 10.20.30.40 -j DROP
/sbin/iptables -A OUTPUT -s 10.20.30.40 -j DROP

This works very nicely and keeps the script kiddies out. I suppose if I was feeling mean I could ping-flood them from our ftp server (remember the big pipe story?), but that would be evil. Just in case you are feeling evil, here's the ping command you'll want to use:
ping -f -s 1024 10.20.30.40
But remember, you need admin privileges to use the -f switch. Swap the 1024 out with whatever packet size you feel like being evil with, I used 1k as an example. Oh yeah, if they're behind a router that drops ICMP packets, this won't work (other than making their router real busy).

Leave a Comment »
Big Pipe
Posted in Tech
Forenoon watch, 7 bells (11:30 am)

Remember the new bandwidth monitor I installed earlier? I checked up on it and was a bit surprised about the amount of data we're pushing through our FTP site:

Yesterday we received 1,657 MB of data, and transmitted 55,298 MB.

That comes out to an average of 2,304 MB per hour, and 38.4 MB per minute.

Our estimate for today (transmitted) is 65,238 MB.

Leave a Comment »