FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

Chuck Swiger cswiger at mac.com
Thu Jun 17 20:41:28 UTC 2010


On Jun 17, 2010, at 1:01 PM, Valerian Galeru wrote:
> Does anyone have any ideas how to block all requests using an IPFW-based router (FreeBSD 6.4) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM ????

Start by blocking all traffic, add permit rules to only pass traffic which is allowed.  :-)

Judging by your question, however, it sounds more like you want to use regex based blocking of hostnames within a web proxy like Squid or Varnish than IP-level firewalls.

Regards,
-- 
-Chuck



More information about the freebsd-questions mailing list