Showing posts with label poor. Show all posts
Showing posts with label poor. Show all posts

Monday, November 10, 2008

Poor man's firewall ( debian )

This will work on must linux based systems I imagine. It is blocking an IP, by routing all responses through 127.0.0.1. So instead of sending the response packets it just eats them. This is done by adding a static route which directs the traffic no where.

route add -host 1.1.1.1 netmask 0.0.0.0 lo

Ok so in this example, replace 1.1.1.1 with the offending IP. You can do the same thing with FreeBSD but it's a little different and IMHO makes more sense. I will post that solution later.


This is a quick and dirty solution...never use this as a permanent firewall.