added support for the iptables string match
authorMichael Rash <mbr@cipherdyne.org>
Thu, 8 Mar 2012 04:26:54 +0000 (23:26 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Thu, 8 Mar 2012 04:26:54 +0000 (23:26 -0500)
lib/IPTables/Parse.pm

index a8bb8a8..ede3c45 100644 (file)
@@ -138,6 +138,12 @@ sub parse_keys() {
                 'ipt_match'  => '-m comment --comment',
                 'use_quotes' => 1
             },
+            'string' => {
+                'regex'      => qr|STRING\smatch\s\"(.*?)\"|,
+                'ipt_match'  => '-m string --algo bm --string',
+                'use_quotes' => 1
+            },
+
         },
         'raw' => ''
     );