Someone had written a Snort module for either DD-WRT or Open-WRT but I can't recall which. I believe it was abandoned a while ago with no new updates for quite some time.
Compiling Snort from source could be difficult if you're not sure how to do cross compiling for the correct architecture of your router.



