Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Deutsche Dokumentation
  • Search

squid havp clamav

Dokumentation, Tipps und Tricks.
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
Marlo
Veteran
Veteran
Posts: 1591
Joined: Sat Jul 26, 2003 1:41 pm

squid havp clamav

  • Quote

Post by Marlo » Sat Mar 19, 2011 9:37 pm

Hier ist etwas für Gentoo Nutzer, die wissen was sie suchen.
That is only for users, they know what they are looking for.

http://www.server-side.de/
http://wiki.squid-cache.org/FrontPage
http://www.perl-online.com/blog/archives/944
http://www.eicar.org/anti_virus_test_file.htm
http://www.google.com/search?hl=en&q=squid+havp+clamav

tux / # emerge squid havp clamav -pv wrote: These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] app-antivirus/clamav-0.97 USE="bzip2 clamdtop iconv milter -ipv6 (-selinux)" 0 kB
[ebuild R ] net-proxy/squid-2.7.9 USE="epoll ldap logrotate pam snmp sqlite ssl -caps (-ipf-transparent) -kerberos (-kqueue) -mysql -nis (-pf-transparent) -postgres -samba -sasl (-selinux) -tproxy -zero-penalty-hit" 0 kB
[ebuild R ] net-proxy/havp-0.90-r1 USE="clamav ssl" 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
Ich benutze squid stable = squid-2.7.9 | squid-3.xx ist nicht stable.
I only use squid stable = squid-2.7.9

[quote="tux / # cat /etc/havp/havp.config | grep "^[^#]""]
USER havp
GROUP havp
DAEMON true
SERVERNUMBER 50
MAXSERVERS 200
ACCESSLOG /var/log/havp/access.log
ERRORLOG /var/log/havp/havp.log
LOGLEVEL 1
SCANTEMPFILE /var/tmp/havp/havp-XXXXXX
TEMPDIR /var/tmp/havp
PARENTPROXY localhost
PARENTPORT 3128
X_FORWARDED_FOR true
PORT 8000
TEMPLATEPATH /etc/havp/templates/en | or your language
FAILSCANERROR true
SCANIMAGES true
KEEPBACKTIME 5
ENABLECLAMLIB true
CLAMMAXRECURSION 8
ENABLECLAMD false
ENABLEFPROT false
ENABLEAVG false
ENABLEAVESERVER false
ENABLESOPHIE false
ENABLETROPHIE false
ENABLENOD32 false
ENABLEAVAST false
ENABLEARCAVIR false
ENABLEDRWEB false[/quote]


[quote="tux / # cat /etc/squid/squid.conf | grep "^[^#]""]
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 3128 transparent
cache_peer localhost parent 8000 0 no-query no-digest no-netdb-exchange default
cache_peer_access localhost allow all
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
strip_query_terms off
buffered_logs on
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
via off
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
half_closed_clients off
shutdown_lifetime 1 seconds
icp_port 0
forwarded_for off
coredump_dir /var/cache/squid
pipeline_prefetch on
[/quote]

Füge diese Zeile in deine /etc/fstab ein.
Add this line to your /etc/fstab.
tux / # cat /etc/fstab | grep havp wrote: tmpfs /var/tmp/havp tmpfs defaults,mand 0 0
Der Browsercache muss gelöscht werde!
Dont forget to delete the browser cache!

Im Browser localhost 8000 einstellen und squid testen. Wenn bei http://localhost/rums eine Squid-Fehlerseite erscheit ist es gut.
Danach havp testen mit http://www.eicar.org/anti_virus_test_file.htm

Configure your Browser to localhost 8000 and test squid. Perhaps with http://localhost/rums if you get a errorpage, squid works.
If so, point out http://www.eicar.org/anti_virus_test_file.htm and enjoy havp.

In der squid.conf sind diverse Optimierungen, ohne sie zu diskutieren.
Without any discussion, into squid.conf are various optimizations, mostly for speed.

have fun
ma
Last edited by Marlo on Wed Sep 07, 2011 5:16 pm, edited 1 time in total.
------------------------------------------------------------------
http://radio.garden/
Top
dertobi123
Retired Dev
Retired Dev
User avatar
Posts: 2679
Joined: Tue Nov 19, 2002 10:11 am
Location: Oberhausen, Germany
Contact:
Contact dertobi123
Website

  • Quote

Post by dertobi123 » Sun Aug 14, 2011 9:04 pm

Und mit aktuellen Squid-3 Versionen geht dann sogar SSL-Scanning :)
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Deutsche Dokumentation”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic