Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2015 16:48:49 +0530
From:      Kulamani Sethi <kulamani.sethi@gmail.com>
To:        freebsd-ipfw@freebsd.org
Subject:   Set a deny rule for a URL in IPFW by its domain name
Message-ID:  <CAC9ZwGa2BTB8PtdshWuHEUUXzQbKpH9PgUBR-PwOHJJa0pf0QA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,
   I am using ipfw3, can i block a URL by its domain name? When i am
setting rules in IPFW by its domain name, it simple set rule by its
corresponding IP.
Here example how i set

C:>ipfw add 1002 deny log ip  from www.google.com to any

As i know most of the websites uses dynamic IP, it simple changes there IP
periodically. This rule i set for google is worked for few moment, then it
allow the packets to my terminal.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC9ZwGa2BTB8PtdshWuHEUUXzQbKpH9PgUBR-PwOHJJa0pf0QA>