diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-10 19:32:07 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-10 19:32:07 -0500 |
commit | 39eda8d18af808aed889f05faa8a54cc2370381d (patch) | |
tree | aa4389f7227d4a98d06294a4efb203567ef4d728 /config/snort/snort_generate_conf.php | |
parent | 33e8e9609120f6693fdf4513bb4733b2e7756ba0 (diff) | |
download | pfsense-packages-39eda8d18af808aed889f05faa8a54cc2370381d.tar.gz pfsense-packages-39eda8d18af808aed889f05faa8a54cc2370381d.tar.bz2 pfsense-packages-39eda8d18af808aed889f05faa8a54cc2370381d.zip |
Add support for decompress_swf and decompress_pdf HTTP_INSPECT options.
Diffstat (limited to 'config/snort/snort_generate_conf.php')
-rw-r--r-- | config/snort/snort_generate_conf.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/snort/snort_generate_conf.php b/config/snort/snort_generate_conf.php index 646697bf..6780da0a 100644 --- a/config/snort/snort_generate_conf.php +++ b/config/snort/snort_generate_conf.php @@ -1291,7 +1291,7 @@ $http_inspect_default_engine = array( "name" => "default", "bind_to" => "all", " "unlimited_decompress" => "on", "inspect_gzip" => "on", "normalize_cookies" =>"on", "normalize_headers" => "on", "normalize_utf" => "on", "normalize_javascript" => "on", "allow_proxy_use" => "off", "inspect_uri_only" => "off", "max_javascript_whitespaces" => 200, "post_depth" => -1, "max_headers" => 0, "max_spaces" => 0, - "max_header_length" => 0, "ports" => "default" ); + "max_header_length" => 0, "ports" => "default", "decompress_swf" => "off", "decompress_pdf" => "off" ); $http_ports = str_replace(",", " ", snort_expand_port_range($snort_ports['http_ports'])); $http_inspect_servers = ""; @@ -1385,6 +1385,10 @@ if ($snortcfg['http_inspect'] <> "off") { $http_inspect_servers .= " \\\n\tlog_uri"; if ($v['log_hostname'] == "on") $http_inspect_servers .= " \\\n\tlog_hostname"; + if ($v['decompress_swf'] == "on") + $http_inspect_servers .= " \\\n\tdecompress_swf"; + if ($v['decompress_pdf'] == "on") + $http_inspect_servers .= " \\\n\tdecompress_pdf"; // Add a pair of trailing newlines to terminate this server config $http_inspect_servers .= "\n\n"; |