netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iptables: libxt_string.man add example
@ 2013-08-23  6:41 Laurence J. Lane
  2013-08-23 19:38 ` Laurence J. Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Laurence J. Lane @ 2013-08-23  6:41 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Laurence J. Lane

Show delimeters for hex string pattern.

http://bugs.debian.org/699904

Signed-off-by: Laurence J. Lane <ljlane@debian.org>
---
 extensions/libxt_string.man | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/extensions/libxt_string.man b/extensions/libxt_string.man
index b6b271d..ebea1d3 100644
--- a/extensions/libxt_string.man
+++ b/extensions/libxt_string.man
@@ -16,3 +16,10 @@ Matches the given pattern.
 .TP
 [\fB!\fP] \fB\-\-hex\-string\fP \fIpattern\fP
 Matches the given pattern in hex notation.
+.TP
+Example:
+.PP
+   Log HTTP GET requests for /test:
+.PP
+   iptables \-A INPUT \-p tcp \-\-dport 80 \-m string \-\-algo bm \-\-string 'GET /test' \-j LOG
+   iptables \-A INPUT \-p tcp \-\-dport 80 \-m string \-\-algo bm \-\-hex\-string '|474554202F74657374|' \-j LOG
-- 
1.8.4.rc3


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

end of thread, other threads:[~2013-08-24 21:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23  6:41 [PATCH] iptables: libxt_string.man add example Laurence J. Lane
2013-08-23 19:38 ` Laurence J. Lane
2013-08-23 20:55   ` [PATCH v2] " Laurence J. Lane
2013-08-24 10:00     ` Florian Westphal
2013-08-24 21:37       ` [PATCH v3] iptables: libxt_string.man add examples Laurence J. Lane
2013-08-24 21:44         ` [PATCH v4] " Laurence J. Lane
2013-08-24 21:51         ` [PATCH v3] " Florian Westphal

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