From: "Jin Gu, Kim" <lilia21@postech.ac.kr>
To: netfilter mailing lists <netfilter@lists.netfilter.org>
Subject: string match?
Date: Fri, 07 Nov 2003 16:37:19 +0900 [thread overview]
Message-ID: <3FAB4BAF.8000107@postech.ac.kr> (raw)
Dear all.
How can I check if iptables string match support is enabled?
I applied patch-o-matic in order to use string match support and
recompiled kernel to support it.
(iptables v1.2.8)
When done, I tried this
--> host_1# iptables -m string -h
,which produced the related help file :
STRING match v1.2.9rc1 options:
--string [!] string Match a string in a packet
--hex-string [!] string Match a hex string in a packet
host_1#
Does it mean that the support can be used?
If yes, when I tried this code, there was no message. What's wrong?
<Run>
--> host_1# iptables -A FORWARD -m string --string "test" -j LOG
--log-prefix "TEST: "
--> host_1# iptables -A FORWARD -m string --string "test" -j DROP
Then I started a netcat server by :
--> host_1# nc -l -p 3456
I connected to this via :
--> host_2# telnet host_1 3456
and type
--> test
--> test
I think this should yield some log or footprint. But I can't see any
messages related to this.
Furthermore, when I check "iptables -L -v", there was no records about it.
-->host_1# iptables -L -v
................
Chain FORWARD (policy DROP 248 packets, 22560 bytes)
pkts bytes target prot opt in out source
destination
0 0 LOG all -- any any anywhere
anywhere STRING match test LOG level info prefix `TEST: '
0 0 DROP all -- any any anywhere
anywhere STRING match test
.....................
What would be wrong?
next reply other threads:[~2003-11-07 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 7:37 Jin Gu, Kim [this message]
2003-11-07 8:16 ` string match? Gerd Zemella
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=3FAB4BAF.8000107@postech.ac.kr \
--to=lilia21@postech.ac.kr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.