Block outgoing SMTP from untrusted hosts with DD-WRT

One may find himself in the face the scenario of having to fix a friend’s infected computer and needing internet access to install/run cleanup utilities while at the same time trying to avoid spamming the internet and get the public IP blacklisted or even blocked.

Using a router running DD-WRT, this is easy to do using custom firewall rules…