From: "Wayne McDougall" <netfilter@codeworks.gen.nz>
To: netfilter@lists.netfilter.org
Subject: [Q]: Filtering based on reverse DNS
Date: Sat, 12 Apr 2003 19:24:42 +1200 [thread overview]
Message-ID: <NCBBIBNHAKHDGJGMPLPJCEKBKPAA.netfilter@codeworks.gen.nz> (raw)
What I want to achieve is to filter based on a reverse name lookup on a source (and ideally destination) IP on initiating a connection.
Why? Because I'm in a country (island) where communication within the country is very cheap, and communication outside is metered and expensive. So I'd like to be able to apply traffic shaping (quotas and rate limiting) and policing with different polices applying to whether the IP is in my country or outside. I understand that reverse DNS does not always work and I'm quite happy to treat anyone like that as being outside. But if there IP resolve to *.nz I want to treat them differently to everyone else.
I appreciate that this sort of requirement isn't likely to be found in the USA (where I suspect most of y'all are), and I suspect it may not be very common elsewhere (anywhere else?). So I will understand if there isn't much interest or support for this.
My questions are:
1. Is there anything already like this (or could be adapted)?
2. Are there reasons why I shouldn't be doing this at all. I appreciate that there would be a performance hit , and obviously I only want reverse DNS lookups when connections are initiated - I don't mind latency at that point, and obviously I should use a local caching nameserver. But is it all a real mess and I shouldn't go there? Why not?
3. If there is nothing out there, where should I attack this problem if I was going to try and roll my own? A netfilter module, right?
Thank you for your time. I am new to this, so please forgive (and feel free to correct) any inappropriate use of terminology.
Regards
Wayne McDougall
next reply other threads:[~2003-04-12 7:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-12 7:24 Wayne McDougall [this message]
2003-04-12 7:51 ` [Q]: Filtering based on reverse DNS Athan
2003-04-13 15:46 ` waltdnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NCBBIBNHAKHDGJGMPLPJCEKBKPAA.netfilter@codeworks.gen.nz \
--to=netfilter@codeworks.gen.nz \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox