This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
антивирусная_защита_web_трафика_squid [2014/09/25 09:55] val |
антивирусная_защита_web_трафика_squid [2016/09/02 11:15] val [Squid] |
||
---|---|---|---|
Line 5: | Line 5: | ||
===== Использование HAVP - HTTP Antivirus Proxy ===== | ===== Использование HAVP - HTTP Antivirus Proxy ===== | ||
- | * Ubuntu Server. Настраиваем антивирусный фильтр роутера (ClamAV)[[http://interface31.ru/tech_it/2010/06/ubuntu-server-nastraivaem-antivirusnyj-fil-tr-routera-clamav.html]] | + | * [[http://interface31.ru/tech_it/2010/06/ubuntu-server-nastraivaem-antivirusnyj-fil-tr-routera-clamav.html|Ubuntu Server. Настраиваем антивирусный фильтр роутера (ClamAV)]] |
==== Ubuntu ==== | ==== Ubuntu ==== | ||
<code> | <code> | ||
- | root@gate:~# apt-get install havp | + | root@gate:~# apt install havp |
root@gate:~# cat /etc/havp/havp.config | root@gate:~# cat /etc/havp/havp.config | ||
Line 19: | Line 19: | ||
... | ... | ||
BIND_ADDRESS 127.0.0.1 | BIND_ADDRESS 127.0.0.1 | ||
+ | ... | ||
+ | # ENABLECLAMLIB true | ||
+ | ... | ||
+ | ENABLECLAMD true | ||
+ | ... | ||
+ | CLAMDSOCKET /var/run/clamav/clamd.ctl | ||
... | ... | ||
</code><code> | </code><code> | ||
- | root@gate:~# havp reload | + | root@gate:~# usermod clamav -G 'havp' |
+ | |||
+ | root@gate:~# service clamav-daemon restart | ||
+ | |||
+ | root@gate:~# service havp restart | ||
</code> | </code> | ||
Line 32: | Line 42: | ||
[gate.corpX.un:~] # touch /usr/local/etc/havp/whitelist | [gate.corpX.un:~] # touch /usr/local/etc/havp/whitelist | ||
[gate.corpX.un:~] # touch /usr/local/etc/havp/blacklist | [gate.corpX.un:~] # touch /usr/local/etc/havp/blacklist | ||
+ | [gate.corpX.un:~] # mkdir -p /usr/local/etc/havp/templates/en/ | ||
+ | [gate.corpX.un:~] # cat /usr/local/etc/havp/templates/en/virus.html | ||
+ | </code><code> | ||
+ | <h1>Virus!!!</h1> | ||
+ | </code><code> | ||
[gate.corpX.un:~] # pw groupmod havp -m clamav | [gate.corpX.un:~] # pw groupmod havp -m clamav | ||
[gate.corpX.un:~] # service clamav-clamd restart | [gate.corpX.un:~] # service clamav-clamd restart | ||
Line 64: | Line 79: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | root@gate:~# restart squid3 | + | root@gate:~# service squid3 restart |
</code> | </code> | ||