Mainos / Advertisement:

Squid

Kohteesta Taisto
Versio hetkellä 24. heinäkuuta 2015 kello 07.45 – tehnyt Frans (keskustelu | muokkaukset) (Ak: Uusi sivu: #INSERT YOUR OWN RULES HERE #http_access allow localhost acl fbesto dstdomain .facebook.com <small>''#This is how you configure the access list which you can use for instance...)
Siirry navigaatioon Siirry hakuun
Muut kielet:
English • ‎suomi

Squid is a commonly used proxy software for Linux. It is easy to install and configure.

Installation

We install Squid from package manager.

aptitude install squid

Configuration

nano /etc/squid/squid.conf

Modify the squid.conf file from the spot with http_access deny all.

#INSERT YOUR OWN RULES HERE
#http_access allow localhost
acl fbesto dstdomain .facebook.com    #This is how you configure the access list which you can use for instance to block all facebook.com subdomains.
acl aika time W 08:00-16:00           #This access list defines a certain time for the block, in this case wednesday 08:00-16:00.
http_access deny fbesto aika          #Here you define what access lists are used to filter http traffic. In this case fbesto and aika lists.
http_access allow all                 #In the end you allow all other traffic.
#http_access deny all                 #You should comment this line, otherwise traffic will be blocked.

Lisätietoa

http://ict-academy.fi/index.php?title=Squid_proxy

Mainos / Advertisement: