• # chezmoiçamarche.com

    Posté par . En réponse au message Gestion des https avec squid ou autre. Évalué à 2.

    Squid Cache: Version 3.1.6 / Postes client type Windows utilisant IE/FF/Chrome etc.. / Proxy obligatoire (pas de NAT Internet direct) autoconfiguré via wpad / Restrictions off entre "midi et deux" et après 19h

    squid.conf

    ## Facebook
    acl fck_url url_regex -i facebook.com fbcdn.net
    ## Facebook Chat
    acl fck_chat url_regex -i facebook.com/ajax/chat facebook.com/images/chat facebook.com/ajax/presence
    # Hours definitions
    acl workday1 time 08:30-12:00
    acl workday2 time 12:00-14:00
    acl workday3 time 14:00-19:00
    #Method CONNECT
    acl met_connect method CONNECT
    ##Postes autorisés (via MAC)
    acl mac_authorized arp "/etc/squid3/mac_authorized.txt"
    ## Facebook Restriction
    http_access deny all met_connect fck_url workday1 !mac_authorized
    http_access deny all met_connect fck_url workday3 !mac_authorized
    ## Facebook Chat Deny
    http_access deny all fck_chat