4 069
contributi
Riga 269: | Riga 269: | ||
# IP dell'amministratore di rete | # IP dell'amministratore di rete | ||
src admin { | src admin { | ||
ip 192.168. | ip 192.168.10.1 | ||
} | } | ||
# IP del capo | |||
src notadminbutbigboss { | src notadminbutbigboss { | ||
ip | ip 192.168.10.253 | ||
} | } | ||
# Range IP dell'ufficio | |||
src workers { | src workers { | ||
ip | ip 192.168.10.0/16 | ||
} | } | ||
# Il resto del mondo | |||
src all { | src all { | ||
ip 172.30.0.0/16 | ip 172.30.0.0/16 | ||
} | } | ||
# Definisco le destinazioni di navigazione | |||
# appoggiandomi alle blacklist scaricate | |||
dest adults { | dest adults { | ||
urllist adult/urls | urllist adult/urls | ||
Riga 337: | Riga 342: | ||
s@bikini@ooops@ir | s@bikini@ooops@ir | ||
} | } | ||
# Definisco le regole di navigazione | |||
# L'amministratore e il capo navigano dove vogliono | |||
# Gli uffici navigano solo in orario di lavoro, ma | |||
# non nei siti inclusi nelle blackist utilizzate | |||
# per definire le regole | |||
acl { | acl { | ||
admin { | admin { | ||
Riga 347: | Riga 357: | ||
pass !adults !drogues !phishing !guns !hacking !danger !gambling !lingerie !malware !sexual_education !social_networks !warez any | pass !adults !drogues !phishing !guns !hacking !danger !gambling !lingerie !malware !sexual_education !social_networks !warez any | ||
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | ||
#redirect http:// | #redirect http://192.168.10.254/stop.html | ||
} | } | ||
all { | all { | ||
pass !adults !drogues !phishing !guns !hacking !danger !gambling !lingerie !malware !sexual_education !social_networks !warez any | pass !adults !drogues !phishing !guns !hacking !danger !gambling !lingerie !malware !sexual_education !social_networks !warez any | ||
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | ||
#redirect http:// | #redirect http://192.168.10.254/stop.html | ||
} | } | ||
all within SpecialsDays { | all within SpecialsDays { | ||
pass any | pass any | ||
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | ||
#redirect http:// | #redirect http://192.168.10.254/stop.html | ||
} | } | ||
default { | default { | ||
pass none | pass none | ||
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u | ||
#redirect http:// | #redirect http://192.168.10.254/stop.html | ||
} | } | ||
} | } | ||
</pre> | </pre> |