netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Match strings with periods
@ 2011-05-03 23:46 James Lay
  2011-05-04  2:15 ` /dev/rob0
  0 siblings, 1 reply; 3+ messages in thread
From: James Lay @ 2011-05-03 23:46 UTC (permalink / raw)
  To: Netfilter

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-04 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 23:46 Match strings with periods James Lay
2011-05-04  2:15 ` /dev/rob0
2011-05-04 12:25   ` James Lay

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).