diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2013-02-01 23:23:53 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2013-02-01 23:23:53 -0200 |
commit | c6a81561dbec0849d630498e0e1eea47e0fd89cc (patch) | |
tree | 80ad35a2d9294f66f96202ffeeb36875c04794a7 /config/dansguardian/dansguardian.inc | |
parent | 0dd364a3e1753f2edccad58f7212f8bdd81abee9 (diff) | |
download | pfsense-packages-c6a81561dbec0849d630498e0e1eea47e0fd89cc.tar.gz pfsense-packages-c6a81561dbec0849d630498e0e1eea47e0fd89cc.tar.bz2 pfsense-packages-c6a81561dbec0849d630498e0e1eea47e0fd89cc.zip |
dansguardian - include max upload size to group options and include empty ldap user group check
Diffstat (limited to 'config/dansguardian/dansguardian.inc')
-rwxr-xr-x | config/dansguardian/dansguardian.inc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc index 5f06b75a..3077eddb 100755 --- a/config/dansguardian/dansguardian.inc +++ b/config/dansguardian/dansguardian.inc @@ -721,7 +721,7 @@ function sync_package_dansguardian($via_rpc=false,$install_process=false) { 'mode'=> "1", 'report_level'=>"global"); - $groups=array("scancleancache","hexdecodecontent","blockdownloads","enablepics","deepurlanalysis","infectionbypasserrorsonly","disablecontentscan"); + $groups=array("scancleancache","hexdecodecontent","blockdownloads","enablepics","deepurlanalysis","infectionbypasserrorsonly","disablecontentscan","sslcheckcert","sslmitm"); #loop on array $count=1; $user_xml=""; @@ -737,6 +737,7 @@ function sync_package_dansguardian($via_rpc=false,$install_process=false) { $dansguardian_groups['embeddedurlweight']=($dansguardian_groups['embeddedurlweight']?$dansguardian_groups['embeddedurlweight']:"0"); $dansguardian_groups['bypass']=($dansguardian_groups['bypass']?$dansguardian_groups['bypass']:"0"); $dansguardian_groups['infectionbypass']=($dansguardian_groups['infectionbypass']?$dansguardian_groups['infectionbypass']:"0"); + $dansguardian_groups['maxuploadsize']=($dansguardian_groups['maxuploadsize']?$dansguardian_groups['maxuploadsize']:$maxuploadsize); switch ($dansguardian_groups['reportinglevel']){ case "1": case "2": @@ -763,15 +764,7 @@ function sync_package_dansguardian($via_rpc=false,$install_process=false) { foreach ($groups as $group){ $dansguardian_groups[$group]=(preg_match("/$group/",$dansguardian_groups['group_options'])?"on":"off"); } - if (preg_match("/sslmitm/",$dansguardian_groups['group_options'])){ - $dansguardian_groups['mitmkey']="mitmkey = '".substr(md5(rand(100000000,999999999)),1,9)."'"; - $dansguardian_groups["sslmitm"]="on"; - $dansguardian_groups["sslcertcheck"]="on"; - } - else{ - $dansguardian_groups["sslmitm"]="off"; - $dansguardian_groups["sslcertcheck"]="off"; - } + #create group list files $lists=array("phraseacl" => array("bannedphrase","weightedphrase","exceptionphrase"), "siteacl" => array("bannedsite","greysite","exceptionsite","exceptionfilesite","logsite"), |