<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mod_Security+Apache+Proxy]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I installed a pfSense in a vm with three network adapters: lan, wan and dmz<br />
I publish a web site on port 8080 connected to the dmz<br />
the site must be accessible from LAN and Internet<br />
I installed the module Proxy Server with mod_security and configured everything (the options Enable mod_security protection is actived).<br />
The publication of the site works, but the protection of mod_security not working<br />
I added a custom rule like</p>
<p dir="auto">SecRule REQUEST_URI "admin-console" deny</p>
<p dir="auto">in the options "proxy server setting / Custom mod_security rules" but accessing the site url "http://xxxx.xxxxx.xxx/admin-console/login.seam?conversationId=17" this is not blocked<br />
I checked the httpd.conf file and the rule is written correctly.<br />
I also tried a url like http://xxxx.xxxxx.xxx/etc/inetd.conf should be blocked by default by mod_security, but instead responds jboss, which means that mod_security is bypassed.</p>
<p dir="auto">Why?</p>
<p dir="auto">Thanks,<br />
Idi</p>
]]></description><link>https://forum.netgate.com/topic/48684/mod_security-apache-proxy</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 22:43:28 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/48684.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Sep 2012 13:16:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mod_Security+Apache+Proxy on Mon, 24 Sep 2012 15:03:52 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply</p>
<p dir="auto">When I installed the package, restart it turns out the error:</p>
<p dir="auto">…. "Proxy Server with mod_security" ... fetch: /usr/local/apachemodsecurity/rules/rules/default.conf: open (): No such file or directory</p>
<p dir="auto">I edited the file /usr/local/pkg/apache_mod_security.inc at line 114 and the error is no longer out</p>
<p dir="auto">When the server restarts, in the start of the module "Proxy Server with mod_security" returns the error<br />
(48) Address already in use: make_sock: could not bind to address 127.0.0.1:80<br />
no listening sockets available, shutting down<br />
This error comes out even if it is defined an ip different from 127.0.0.1<br />
If the service is restarted manually from the dashboard service starts properly.</p>
<p dir="auto">I followed the instructions to add the two files accf_data.ko and accf_http.ko that I took from the site pfsense.org, I modified the loader.conf file by adding the line accf_http_load = "YES"</p>
<p dir="auto">When I set some parameters of the "mod_security + Apache + Proxy: Settings" in httpd-error.log comes out the following error:</p>
<p dir="auto">[Mon Sep 24 16:37:50 2012] [notice] Graceful restart requested, doing restart<br />
[Mon Sep 24 16:37:50 2012] [warn] (22) Invalid argument: Failed to enable the 'httpready' Accept Filter<br />
[Mon Sep 24 16:37:50 2012] [warn] (22) Invalid argument: Failed to enable the 'httpready' Accept Filter<br />
[Mon Sep 24 16:37:50 2012] [notice] Digest: generating secret for digest authentication …<br />
[Mon Sep 24 16:37:50 2012] [notice] Digest: done<br />
[Mon Sep 24 16:37:51 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8n configured - resuming normal operations</p>
<p dir="auto">The filter mod_security still does not filter, but I can get access to the site in DMZ<br />
That mod_security is not in the path, if I do not set the "mod_security + Apache + Proxy: Proxies Site" the site is not accessible</p>
]]></description><link>https://forum.netgate.com/post/357288</link><guid isPermaLink="true">https://forum.netgate.com/post/357288</guid><dc:creator><![CDATA[Idi]]></dc:creator><pubDate>Mon, 24 Sep 2012 15:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Mod_Security+Apache+Proxy on Wed, 19 Sep 2012 02:50:50 GMT]]></title><description><![CDATA[<p dir="auto">Are you sure that mod_security is in the path, that you didn't just port map directly to the backend server bypassing mod_security entirely? That's just a guess, you didn't give enough detail to know. Checking the mod_security log and the /var/log/httpd-access.log you're definitely seeing the traffic proxied? Maybe you've done that already, but you didn't say, so I have to ask just in case.</p>
]]></description><link>https://forum.netgate.com/post/356593</link><guid isPermaLink="true">https://forum.netgate.com/post/356593</guid><dc:creator><![CDATA[tlum]]></dc:creator><pubDate>Wed, 19 Sep 2012 02:50:50 GMT</pubDate></item></channel></rss>