From: tingwei liu <tingw.liu@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: iptables domain match
Date: Tue, 3 May 2011 17:08:51 +0800 [thread overview]
Message-ID: <BANLkTi=2XpuuqMZgwVggH6-RPH_XvywGyA@mail.gmail.com> (raw)
I have written a netfilter match called domain.
Such as: iptables -A OUTPUT -m domain --domain ".google.com" -j DROP
Then it will drop the dns query which domain like
"www.google.com,news.google.com,mail.google.com,..."
iptables -I OUTPUT -m domain --domain "map.google.com" -j ACCEPT
Then it will accept the dns query which domain is
"map.google.com".
I known this match is trival,but I want to know how to submit this patch.
Thanks for any response.
next reply other threads:[~2011-05-03 9:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 9:08 tingwei liu [this message]
2011-05-05 3:44 ` iptables domain match tingwei liu
2011-05-05 5:15 ` Jozsef Kadlecsik
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='BANLkTi=2XpuuqMZgwVggH6-RPH_XvywGyA@mail.gmail.com' \
--to=tingw.liu@gmail.com \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).