Bonjour,
coconutyoyo a écrit:Est-il possible d'voir un filtrage plus précis, en fonction de chacune des Ip du Lan..? (Une whitelist par Ip, par exemple)...?
Excuse me for answering in English, I can read and understand a few words in French, but writing will be almost impossible. Merci beaucoup.
IP based filtering with different whitelists isn't easy, but possible ...
Step 1:
Create as many custom whitelists as you need and upload them via GUI. Take a look to existing blacklists (e.g.
http://www.squidguard.org/blacklist ) to learn about their internal structure.
Your whitelist.tar.gz archive file could look like this:
blacklists/white-1/domains
blacklists/white-1/urls
blacklists/white-2/domains
blacklists/white-2/urls
blacklists/white-3/domains
blacklists/white-3/urls
(For more information about the content of the files 'domains' and 'urls', look at
http://www.squidguard.org/config/#Lists )
After uploading this list, you'll see three new categories: white-1, white-2 and white-3.
Step 2:
Block all web access: Advanced settings -> Block all URLs not explicitly allowed: [v]
For the french GUI: Paramètres avancés -> Bloquer toutes les URLs non explicitement autorisées: [v]
This turns off the light for all your clients...
Step 3:
Create the required time constraint rules:
(Définir les constraintes horaires:)
within MTWTFSS 00:00-24:00 192.168.1.101 white-1 allow
(dans LMMJVSD 00:00-24:00 192.168.1.101 white-1 autorisé)
within MTWTFSS 00:00-24:00 192.168.1.102 white-2 allow
(dans LMMJVSD 00:00-24:00 192.168.1.102 white-2 autorisé)
within MTWTFSS 00:00-24:00 192.168.1.103 white-3 allow
(dans LMMJVSD 00:00-24:00 192.168.1.103 white-3 autorisé)
Note: These are no real "time constraints" because they are active 24x7. But they will be useful to assign the different whitelists to the clients.
Step 4:
Restart urlfilter.
Done!
Now client 192.168.1.101 may access only the destinations from white-1, 192.168.1.102 only from white-2, and so on.
The global whitelist (if enabled) works for all clients in addition to their custom whitelists.
Regards, Marco