Re: Firewall novice question
- From: jpd <read_the_sig@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 2 Dec 2005 17:36:05 GMT
Begin <86d5kf1mtj.fsf@xxxxxxxx>
On 2005-12-02, Giorgos Keramidas <keramida@xxxxxxxxxxxxxxx> wrote:
> On Fri, 02 Dec 2005 16:19:25 GMT,
> melsonr@xxxxxxxxxxxxxxxxxxx (Robert Melson) wrote:
^^^^^^^^^^^
This does not appear to be registered, so it showing up here is not a
good idea. If you wish to continue using it, I strongly suggest you
register the domain.
[snip]
>> Don't mean to sound ungrateful - I _am_ the one asking for
>> information, after all! - but what you're point to seems to apply to
>> a single ip address or hostname and not to a domain. I want to block
>> an entire domain, not just a specific ip address from within it. This
>> may not be - probably is not - possible, but I thought I'd ask on the
>> off chance that it is.
>
> I don't think that's very easy. The most serious problems you will
> probably stumble upon are:
>
> - Not all the hosts of example.net have necessarily an IP address
> that is part of a well-defined subnet.
>
> - A name may map to multiple addresses.
While that is true, it also is just the surface of it. The thing is, a
single DNS entry does not contain the information needed to block an
entire domain, period.
There is no built-in aggregation of IPAs used. The DNS does not know
about the concept of a subnet. The firewall code does no DNS lookups[1],
simply because that would create a rather spectacular overhead if it
didn't get stuck in the obvious catch-22. In short, the concept of
``domain'' does not translate into neatly blockable IP subnets.
The best you can do is make a list of IP addresses and subnets and stick
them in a table, then match on that. There are other approaches but they
are probably out of your reach.[2]
[1] The firewall rule maintenance utility does, but it isn't the firewall.
[2] Generating blocklists based on AS announcements, for example. Do not
forget they must be updated regularly, and so you need a BGP feed.
And the ability to write the scripts to drive that.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
.
- Follow-Ups:
- Re: Firewall novice question
- From: Robert Melson
- Re: Firewall novice question
- From: Giorgos Keramidas
- Re: Firewall novice question
- References:
- Re: Firewall novice question
- From: Robert Melson
- Re: Firewall novice question
- From: Giorgos Keramidas
- Re: Firewall novice question
- Prev by Date: Re: kernel: nve0: device timeout (-256)
- Next by Date: Re: Firewall novice question
- Previous by thread: Re: Firewall novice question
- Next by thread: Re: Firewall novice question
- Index(es):
Relevant Pages
|