AFP548 Changing the world one server at a time.

Security

Stop PPTP dictionary attacks in MOSXS 10.5.x

Mac OS X Server's adaptive firewall (afctl) does a good job of catching brute-force login attacks on most services, but it doesn't catch PPTP attacks. The script below checks the system log for such attacks, and then uses afctl to block offending hosts for a week (you can, of course, change the parameters if you wish).

By jgardner 1 min read

Networking

Augmenting DNS Records Using dnsmasq

DNS can always bite you in the rear. in some case you run your own DNS server and you can correct the issues. In other cases, you're beholden to the powers that be to determine your fate. All is not lost, however, it is possible to run your own DNS proxy to override specific answers.

By arekdreyer 10 min read 2 comments

Networking

New networksetup Features in Snow Leopard

The networksetup command is pretty useful for deploying static network information, which is otherwise tedious (to say the least). In Mac OS X 10.6 there are three major additions to networksetup that have not gotten a lot of attention yet.

By cedge 4 min read

Networking

Source Based Routing Quietly Finds Its Way Into Snow Leopard

On Mac OS X 10.5, if you connect two different ports on a host to two different networks and assign them with two different IP schemes then only one can act as the default gateway. This means that any incoming packets will all, by default, get responded to over the default gateway; despite which interface the packets came in on.

By cedge 1 min read

Files and Storage

Disable WINS in Leopard

Ed. Note: This is interesting as otherwise you'll always be visible over WINS/NetBIOS whether you're actually sharing via SMB or not. Finally I believe I found the magic command to disable WINS on Leopard to stop it from showing on a Windows network.

By cashxx 1 min read