Bonjour bonjour,
j'ai fait des modifs sur le squidguard en rajoutant pour chaque catégorie un redirect vers le index.html du serveur (proxy et apache sont sur la meme vm)
J'ai un serveur web sous apache avec plusieurs vhost configurés pour plusieurs ports (80/443/3130) pour la generation de rapports html dans un "sous repertoire)
Mais avec mes modifs, quand j'appelle directement le chemin dans les navigateurs clients, il m'affiche le contenu de la page index.html (sans prendre les modifs du css). si j'appel
ip/index.html depuis un navigateur d'un client, la page est ok
J'ai constaté que ipserveur/squid-reports/index.html marche mais pas ipserveur/squid-reports/ (qui lui affiche la page index.html dégradée)
pour essayer d'etre clair:
/var/www/html/index.html (page ultra simple avec une image de fond, 4 lignes et 2 liens) et /var/www/html/style.css --> correspond à la ligne:
""""""""""redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html""""""""""""
/var/www/html/squid-reports/index.html >> déclarée dans les vhost
merci d'avance
Je vous met le fichier de conf squidguard:
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/squidGuard/blacklists
logdir /var/log/squidGuard
#
# TIME RULES:
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
time workhours {
weekly smtwhfa 08:00 - 12:00
weekly smtwhfa 14:00 - 23:00
date *-*-01 08:00 - 23:00
}
#
# REWRITE RULES:
#
# SOURCE ADDRESSES:
#
src OSB {
ip ip coté clients *.*.*.*/24
within workhours
}
src prox{
ip 192.168.55.0/24
within workhours
}
# DESTINATION CLASSES:
#
dest liste_blanche {
domainlist liste_blanche/domains
}
dest adult {
domainlist adult/domains
urllist adult/urls
expressionlist adult/expressions
expressionlist adult/very_restrictive_expression
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest agressif {
domainlist agressif/domains
urllist agressif/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest arjel {
domainlist arjel/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest associations_religieuses {
domainlist associations_religieuses/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest astrology {
domainlist astrology/domains
urllist astrology/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest audio-video {
domainlist audio-video/domains
urllist audio-video/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest bitcoin {
domainlist bitcoin/domains
urllist bitcoin/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest blog {
domainlist blog/domains
urllist blog/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest celebrity {
domainlist celebrity/domains
urllist celebrity/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest chat {
domainlist chat/domains
urllist chat/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest child {
domainlist child/domains
urllist child/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest cleaning {
domainlist cleaning/domains
urllist cleaning/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest cryptojacking {
domainlist cryptojacking/domains
urllist cryptojacking/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest dangerous_material {
domainlist dangerous_material/domains
urllist dangerous_material/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest dating {
domainlist dating/domains
urllist dating/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest ddos {
domainlist ddos/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest dialer {
domainlist dialer/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest doh {
domainlist doh/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest download {
domainlist download/domains
urllist download/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest drogue {
domainlist drogue/domains
urllist drogue/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest drugs {
domainlist drugs/domains
urllist drugs/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest educational_games {
domainlist educational_games/domains
urllist educational_games/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest filehosting {
domainlist filehosting/domains
urllist filehosting/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest financial {
domainlist financial/domains
urllist financial/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest forums {
domainlist forums/domains
urllist forums/urls
expressionlist forums/expressions
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest games {
domainlist games/domains
urllist games/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest lingerie {
domainlist lingerie/domains
domainlist financial/domains
urllist financial/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest malware {
domainlist malware/domains
urllist malware/urls
expressionlist malware/expressions
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest marketingware {
domainlist marketingware/domains
urllist marketingware/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest mixed_adult {
domainlist mixed_adult/domains
urllist mixed_adult/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest categorie_perso {
domainlist categorie_perso/domains
urllist categorie_perso/urls
expressionlist categorie_perso/expressions
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest phishing {
domainlist phishing/domains
urllist phishing/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest porn {
domainlist porn/domains
urllist porn/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest publicite {
domainlist publicite/domains
urllist publicite/urls
expressionlist publicite/expressions
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest remote-control {
domainlist remote-control/domains
urllist remote-control/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest sect {
domainlist sect/domains
urllist sect/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest sexual_education {
domainlist sexual_education/domains
urllist sexual_education/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest shortener {
domainlist shortener/domains
urllist shortener/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest social_networks {
domainlist social_networks/domains
urllist social_networks/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest strict_redirector {
domainlist strict_redirector/domains
urllist strict_redirector/urls
expressionlist strict_redirector/expressions
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest strong_redirector {
domainlist strong_redirector/domains
urllist strong_redirector/urls
expressionlist strong_redirector/expressions
domainlist strong_redirector/domains.18406
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest spyware {
domainlist spyware/domains
urllist spyware/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest stalkerware {
domainlist stalkerware/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest suspect {
domainlist suspect/domains
urllist suspect/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest tricheur {
domainlist tricheur/domains
urllist tricheur/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest update {
domainlist update/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest vpn {
domainlist vpn/domains
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
dest warez {
domainlist warez/domains
expressionlist warez/expressions
urllist warez/urls
redirect 302:http://ip du proxy-apache *.*.*.*/24/index.html
}
acl {
OSB {
pass !in-addr !adult any
pass !aggressive
pass !agressif
pass !arjel
pass !associations_religieuses
pass !astrology
pass !audio-video
pass !bitcoin
pass !blog
pass !celebrity
pass !chat
pass !child
pass !cleaning
pass !cryptojacking
pass !dangerous_material
pass !dating
pass !ddos
pass !dialer
pass !doh
pass !download
pass !drogue
pass !drugs
pass !educational_games
pass !filehosting
pass !financial
pass !forums
pass !gambling
pass !games
pass !hacking
pass !lingerie
pass liste_blanche
pass !malware
pass !marketingware
pass !mixed_adult
pass !categorie_perso
pass !phishing
pass !porn
pass !publicite
pass !remote-control
pass !sect
pass !sexual_education
pass !shortener
pass !social_networks
pass !strict_redirector
pass !strong_redirector
pass !spyware
pass !stalkerware
pass !suspect
pass !tricheur
pass !update
pass !vpn
pass !warez
}
prox {
pass !adult
pass !aggressive
pass !agressif
pass !arjel
pass !associations_religieuses
pass !astrology
pass !audio-video
pass !bitcoin
pass !blog
pass !celebrity
pass !chat
pass !child
pass !cleaning
pass !cryptojacking
pass !dangerous_material
pass !dating
pass !ddos
pass !dialer
pass !doh
pass !download
pass !drogue
pass !drugs
pass !educational_games
pass !filehosting
pass !financial
pass !forums
pass !gambling
pass !games
pass !hacking
pass !lingerie
pass liste_blanche
pass !malware
pass !marketingware
pass !mixed_adult
pass !categorie_perso
pass !phishing
pass !porn
pass !publicite
pass !remote-control
pass !sect
pass !sexual_education
pass !shortener
pass !social_networks
pass !strict_redirector
pass !strong_redirector
pass !spyware
pass !stalkerware
pass !suspect
pass !tricheur
pass !marketingware
pass !mixed_adult
pass !categorie_perso
pass !phishing
pass !porn
pass !publicite
pass !remote-control
pass !sect
pass !sexual_education
pass !shortener
pass !social_networks
pass !strict_redirector
pass !strong_redirector
pass !spyware
pass !stalkerware
pass !suspect
pass !tricheur
pass !update
pass !vpn
pass !warez
}
default {
pass !adult
pass !aggressive
pass !agressif
pass !arjel
pass !associations_religieuses
pass !astrology
pass !audio-video
pass !bitcoin
pass !blog
pass !celebrity
pass !chat
pass !child
pass !cleaning
pass !cryptojacking
pass !dangerous_material
pass !dating
pass !ddos
pass !dialer
pass !doh
pass !download
pass !drogue
pass !drugs
pass !educational_games
pass !filehosting
pass !financial
pass !forums
pass !gambling
pass !games
pass !hacking
pass !lingerie
pass liste_blanche
pass !malware
pass !marketingware
pass !mixed_adult
pass !categorie_perso
pass !phishing
pass !porn
pass !publicite
pass !remote-control
pass !sect
pass !sexual_education
pass !shortener
pass !social_networks
pass !strict_redirector
pass !strong_redirector
pass !spyware
pass !stalkerware
pass !suspect
pass !tricheur
pass !marketingware
pass !mixed_adult
pass !categorie_perso
pass !phishing
pass !porn
pass !publicite
pass !remote-control
pass !sect
pass !sexual_education
pass !shortener
pass !social_networks
pass !strict_redirector
pass !strong_redirector
pass !spyware
pass !stalkerware
pass !suspect
pass !tricheur
pass !update
pass !vpn
pass !warez
}
}
Apache:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
ServerSignature Off
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/squid-reports/
ServerSignature Off
MaxKeepAliveRequests 10
ServerName rapports.com
AcceptPathInfo Off
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/squid-reports/
ServerSignature Off
MaxKeepAliveRequests 10
ServerName rapports.com
AcceptPathInfo Off
</VirtualHost>
<VirtualHost *:3130>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/squid-reports/
ServerSignature Off
MaxKeepAliveRequests 10
ServerName rapports.com
AcceptPathInfo Off
</VirtualHost>
Milles merci pour votre aide