From: James Lay <jlay@slave-tothe-box.net>
To: Netfilter <netfilter@vger.kernel.org>
Subject: Match strings with periods
Date: Tue, 03 May 2011 17:46:19 -0600 [thread overview]
Message-ID: <C9E5EFEB.72C2%jlay@slave-tothe-box.net> (raw)
Hey all!
Soähere's what I have:
LOG udp -- * * 10.0.0.1 0.0.0.0/0
STRING match "myspace" ALGO name bm TO 65535 LOG flags 0 level 4 prefix
`Myspace '
DROP udp -- * * 10.0.0.1 0.0.0.0/0
STRING match "myspace" ALGO name bm TO 65535
LOG udp -- * * 10.0.0.1 0.0.0.0/0
STRING match ".cc" ALGO name bm TO 65535 LOG flags 0 level 4 prefix `cc '
DROP udp -- * * 10.0.0.1 0.0.0.0/0
STRING match ".cc" ALGO name bm TO 65535
Been trying to nuke DNS resolution for a couple domains. The myspace
match works like a champäcan't resolve when I dig myspace.com. The cc one
doesn't seem to work, and I suspect it's because of the . in the string.
I can't just match "cc", or else any domain name with a cc in it would
fail, so I'm attempting to match ".cc". I tried different methods
(--hex-string "|2e|cc") but nothing seems to match. Does anyone have any
hints on how to get this to work? Thanks all!
James
next reply other threads:[~2011-05-03 23:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 23:46 James Lay [this message]
2011-05-04 2:15 ` Match strings with periods /dev/rob0
2011-05-04 12:25 ` James Lay
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=C9E5EFEB.72C2%jlay@slave-tothe-box.net \
--to=jlay@slave-tothe-box.net \
--cc=netfilter@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).