#Filtrarea continutului web cu Vyatta6 Ionel Mocanu Filtrarea continutului web cu Vyatta 6.1 — Ionel Mocanu
Skip to content
 

Filtrarea continutului web cu Vyatta 6.1

Vyatta foloseste squidguard pentru filtrarea continutului. Squidguard este un redirector URL, folosit impreuna cu squid.
Intai trebuie instalate blacklist-urile folosite pentru filtrarea continutului:

WEST@ionel:~$ update webproxy blacklists
Warning: No url-filtering blacklist installed
Would you like to download a default blacklist? [confirm]

Fisierul de configurare are urmatorul continut pentru serverul proxy:

webproxy {
cache-size 1024
default-port 9090
listen-address 172.30.4.1 {
}
url-filtering {
squidguard {
default-action allow
redirect-url http://www.google.com
rule 10 {
block-category adult
block-category malware
block-category porn
block-category proxy
block-category sexual_education
block-category warez
block-category gambling
block-category violence
default-action allow
enable-safe-search
log adult
log gambling
log malware
log phishing
source-group XP1
time-period DAY
}
rule 20 {
block-category porn
block-category adult
default-action allow
log porn
log adult
source-group XP2
time-period NIGHT
}
source-group XP1 {
address 172.30.5.0
description “squid pentru XP1″
}
source-group XP2 {
address 172.30.5.1
description “squid pentru XP2″
}
time-period DAY {
days all {
time 00:00-21:00
}
}
time-period NIGHT {
days all {
time 21:00-24:00
}
}
}
}
}

Leave a Reply