From: James Lay <jlay@slave-tothe-box.net>
To: Netfilter <netfilter@vger.kernel.org>
Subject: Re: Match strings with periods
Date: Wed, 04 May 2011 06:25:07 -0600 [thread overview]
Message-ID: <C9E6139B.7331%jlay@slave-tothe-box.net> (raw)
In-Reply-To: <20110504021544.GA15438@cardinal>
On 5/3/11 8:15 PM, "/dev/rob0" <rob0@gmx.co.uk> wrote:
>On Tue, May 03, 2011 at 05:46:19PM -0600, James Lay wrote:
>> Been trying to nuke DNS resolution for a couple domains.
>snip
>> Does anyone have any
>> hints on how to get this to work? Thanks all!
>
>Use an appropriate tool for the job, e.g., dnsmasq(8), available in
>most major GNU/Linux distributions. This would be trivial.
>--
> Offlist mail to this address is discarded unless
> "/dev/rob0" or "not-spam" is in Subject: header
Thanks Rob, I think that's exactly what I'll do. My question still kinda
stand though...is it only possible to match ASCII strings? Maybe since
it's udp? Funny thing is, in my tests I could log pings by matching this:
sudo iptables -I INPUT -p icmp -m string --string "./012" --algo bm -j LOG
--log-prefix "ping test "
Packet below:
06:12:39.283417 IP 192.168.1.2 > 192.168.1.1: ICMP echo request, id 8969,
seq 169, length 64
0x0000: 4500 0054 0794 0000 4001 efc1 c0a8 0102 E..T....@.......
0x0010: c0a8 0101 0800 1099 2309 00a9 4dc1 42b7 ........#...M.B.
0x0020: 0004 4835 0809 0a0b 0c0d 0e0f 1011 1213 ..H5............
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223 .............!"#
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233 $%&'()*+,-./0123
0x0050: 3435 3637 4567
Odd.
James
prev parent reply other threads:[~2011-05-04 12:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=C9E6139B.7331%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).