Dumping the route table, with netmasks

From: Chris Bellomy (cbellomy@transcomus.com)
Date: Fri Dec 28 2007 - 23:41:29 EST


All,

I have a mail and Movable Type server that recently has found itself
in a datacenter that has intermittent power problems. (Long story,
not important here.) I defend the server from spammers with the
biggest hammer at my disposal, the nullroute. Specifically, for
overseas netblocks especially, I nullroute CIDR blocks.

netstat -nr produces a network address and a gateway address, but
is silent on the question of netmask. I need to get this info
dumped into a file so that the defenses can be automatically
reloaded at reboot time (which could be at any minute with the
current power problems). Does anybody know how to query the route
table to get more verbose information?

Thanks,

cb
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:38 EDT