aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-31 18:26:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-31 18:26:33 +0000
commit368149264a399c2da397402aa3d42ee5d4f152cb (patch)
treef29e71e2914fb7e6eeb2b40194590403dbc203bd
parent61f528778885f48f5fcd5bd85f96b88b496cf7f2 (diff)
downloadpfsense-packages-368149264a399c2da397402aa3d42ee5d4f152cb.tar.gz
pfsense-packages-368149264a399c2da397402aa3d42ee5d4f152cb.tar.bz2
pfsense-packages-368149264a399c2da397402aa3d42ee5d4f152cb.zip
Force logs on
Ticket #813
-rw-r--r--packages/squid_ng.inc23
-rw-r--r--packages/squid_ng.xml6
2 files changed, 7 insertions, 22 deletions
diff --git a/packages/squid_ng.inc b/packages/squid_ng.inc
index d8adea19..5360797d 100644
--- a/packages/squid_ng.inc
+++ b/packages/squid_ng.inc
@@ -212,19 +212,13 @@ function global_write_squid_config()
$config_array[] = 'cache_replacement_policy ' . $cache_replacement . "\n\n";
unset($cache_replacement);
- if (isset($log_enabled) && ($log_enabled == "on" )) {
- if (!file_exists("/var/squid/logs")) {
- mwexec("mkdir -p /var/squid/logs");
- mwexec("chown squid:squid /var/squid/logs");
- }
- $config_array[] = 'cache_access_log /var/squid/logs/access.log' . "\n";
- $config_array[] = 'cache_log /var/squid/logs/cache.log' . "\n";
- $config_array[] = 'cache_store_log none' . "\n";
- } else {
- $config_array[] = 'cache_access_log /dev/null' . "\n";
- $config_array[] = 'cache_log /dev/null' . "\n";
- $config_array[] = 'cache_store_log none' . "\n";
+ if (!file_exists("/var/squid/logs")) {
+ mwexec("mkdir -p /var/squid/logs");
+ mwexec("chown squid:squid /var/squid/logs");
}
+ $config_array[] = 'cache_access_log /var/squid/logs/access.log' . "\n";
+ $config_array[] = 'cache_log /var/squid/logs/cache.log' . "\n";
+ $config_array[] = 'cache_store_log none' . "\n";
unset($log_enabled);
if (isset($log_query_terms) && ($log_query_terms == "on")) {
@@ -234,10 +228,7 @@ function global_write_squid_config()
}
unset($log_query_terms);
- if (isset($log_user_agents) && ($log_user_agents == "on")) {
- if (!file_exists("/var/squid/logs")) mwexec("mkdir -p /var/squid/logs");
- $config_array[] = 'useragent_log /var/squid/logs/useragent.log' . "\n\n";
- }
+ $config_array[] = 'useragent_log /var/squid/logs/useragent.log' . "\n\n";
unset($log_user_agents);
$config_array[] = 'log_mime_hdrs off' . "\n";
diff --git a/packages/squid_ng.xml b/packages/squid_ng.xml
index c1d73d43..10bbaecc 100644
--- a/packages/squid_ng.xml
+++ b/packages/squid_ng.xml
@@ -102,12 +102,6 @@
<type>checkbox</type>
</field>
<field>
- <fielddescr>Log Enabled</fielddescr>
- <fieldname>log_enabled</fieldname>
- <description>This enables the Web Proxy logging feature. All clients requests will be written to a log file viewable under Services -> Proxy Log.</description>
- <type>checkbox</type>
- </field>
- <field>
<fielddescr>URL Filtering Enabled</fielddescr>
<fieldname>urlfilter_enable</fieldname>
<description>This enables the advanced functionality in conjunction with squidGuard to provide an array of URL filtering options. This squidGuard functionality can be additionally configured from Services -> Advanced Proxy Filtering</description>