How does one define a static route on MacOS X which persists through reboots? The only suggestion I've found on Google advises setting up a launchd service to run at boot, which seems like a horrible hack (does it survive a network restart without rebooting, for instance?)

To set up the route I need temporarily, I can run the following:

route add -net ${network} ${gateway} ${netmask}


How would I make this persist?


Question: Fail2ban for Windows 7?
Answer: An answer to a similar question links to a tool to protect Cygwin's sshd in Windows.

As fail2ban works for all sorts of programs that write (login) log files, this won't necessarily be adequate solution. As you didn't specify what service are you securing, I assume that it is ssh...