This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
антивирусная_защита_web_трафика_squid [2016/09/02 10:55] val [Ubuntu] |
антивирусная_защита_web_трафика_squid [2020/09/01 07:29] (current) val [FreeBSD] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* [[http://interface31.ru/tech_it/2010/06/ubuntu-server-nastraivaem-antivirusnyj-fil-tr-routera-clamav.html|Ubuntu Server. Настраиваем антивирусный фильтр роутера (ClamAV)]] | * [[http://interface31.ru/tech_it/2010/06/ubuntu-server-nastraivaem-antivirusnyj-fil-tr-routera-clamav.html|Ubuntu Server. Настраиваем антивирусный фильтр роутера (ClamAV)]] | ||
- | ==== Ubuntu ==== | + | ==== Debian/Ubuntu ==== |
<code> | <code> | ||
Line 14: | Line 14: | ||
root@gate:~# cat /etc/havp/havp.config | root@gate:~# cat /etc/havp/havp.config | ||
</code><code> | </code><code> | ||
+ | ... | ||
+ | #ubuntu 16 | ||
+ | GROUP clamav | ||
... | ... | ||
# Only for courses | # Only for courses | ||
Line 27: | Line 30: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | root@gate:~# usermod clamav -G 'havp' | + | root@gate:~# usermod clamav -G havp |
root@gate:~# service clamav-daemon restart | root@gate:~# service clamav-daemon restart | ||
Line 34: | Line 37: | ||
</code> | </code> | ||
- | ==== FreeBSD ==== | ||
- | * [[http://www.bsdportal.ru/viewtopic.php?f=9&t=26787|clamav+havp Can't allocate memory]] | ||
- | <code> | ||
- | [gate.corpX.un:~] # pkg install havp | ||
- | [gate.corpX.un:~] # touch /usr/local/etc/havp/whitelist | ||
- | [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:~] # service clamav-clamd restart | ||
- | |||
- | [gate.corpX.un:~] # cat /usr/local/etc/havp/havp.config | ||
- | </code><code> | ||
- | ... | ||
- | # REMOVETHISLINE deleteme | ||
- | ... | ||
- | BIND_ADDRESS 127.0.0.1 | ||
- | ... | ||
- | ENABLECLAMD true | ||
- | ... | ||
- | CLAMDSOCKET /var/run/clamav/clamd.sock | ||
- | ... | ||
- | </code><code> | ||
- | [gate.corpX.un:~] # service havp rcvar | ||
- | |||
- | [gate.corpX.un:~] # service havp start | ||
- | </code> | ||
==== Squid ==== | ==== Squid ==== | ||
<code> | <code> | ||
- | gate# cat squid.conf | + | gate# cat /etc/squid/squid.conf |
</code><code> | </code><code> | ||
... | ... | ||
Line 79: | Line 51: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | root@gate:~# restart squid3 | + | root@gate:~# service squid restart |
</code> | </code> | ||