Patchwork iptables: libxt_string.man add example

login
register
mail settings
Submitter Laurence J. Lane
Date Aug. 23, 2013, 6:41 a.m.
Message ID <1377240085-15466-1-git-send-email-ljlane@debian.org>
Download mbox | patch
Permalink /patch/269300/
State Superseded
Headers show

Comments

Laurence J. Lane - Aug. 23, 2013, 6:41 a.m.
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(+)
Laurence J. Lane - Aug. 23, 2013, 7:38 p.m.
The markup is wrong.

On Fri, Aug 23, 2013 at 2:41 AM, Laurence J. Lane <ljlane@debian.org> wrote:
> 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
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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