Changes

From SME Server
Jump to navigationJump to search
1,288 bytes added ,  23:23, 10 December 2018
Correct path error /dguardianurlipc to /tmp/.dguardianurlipc
Line 225: Line 225:  
  /etc/dansguardian/languages/(languagename)/template.html
 
  /etc/dansguardian/languages/(languagename)/template.html
 
or in some newer versions
 
or in some newer versions
:/usr/share/dansguardian/languages/(languagename)/template.html
+
/usr/share/dansguardian/languages/(languagename)/template.html
    
e.g.
 
e.g.
Line 436: Line 436:     
DansGuardian should block the download!
 
DansGuardian should block the download!
 +
 +
=====ClamAV & Dansguardian on SME 9+=====
 +
The path to clamd.socket changed with SME 9, and [https://forums.contribs.org/index.php/topic,52519.msg269937.html#msg269937 users report] file access rights issues between dansguardian and clamav.
 +
 +
After installing DansGuardian and completing the clamav setup instructions above, there are 3 extra steps to take on SME9:
 +
 +
1. The path to clamd.socket must match the path given in /etc/clamd.conf
 +
* edit <span style="color:blue;">/etc/dansguardian/contentscanners/clamdscan.conf</span> and set clamdudsfile to:
 +
  clamdudsfile = '/var/clamav/clamd.socket'
 +
 +
2. Dansguardian and Clamav must run as the same user for clamav scanning to work.  Set Dansguardian to run as 'clamav' as follows:
 +
* edit <span style="color:blue;">/etc/dansguardian/dansguardian.conf</span>
 +
** uncomment 'daemonuser' and 'daemongroup'
 +
** set 'daemonuser' to 'clamav':
 +
  daemonuser = 'clamav'
 +
  daemongroup = 'dansguardian
 +
 +
3. Correct the ownership on existing files and folders that belong to the original dansguardian user account.
 +
* Execute the commands below
 +
  chown clamav /var/log/dansguardian/access.log
 +
  'rm' -rf /tmp/.dguardianipc
 +
  'rm' -rf /tmp/.dguardianurlipc
 +
 +
 +
Restart dansguardian and test
 +
  /etc/init.d/dansguardian restart
    
====Other Dansguardian Config Files====
 
====Other Dansguardian Config Files====
Line 532: Line 558:  
[[Category:Administration:Content Spam Virus Blocking]]
 
[[Category:Administration:Content Spam Virus Blocking]]
 
[[Category:Security]]
 
[[Category:Security]]
 +
[[Category:Contrib:webfiltering]]

Navigation menu