Mainos / Advertisement:

Ero sivun ”Squid/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Squid is a commonly used proxy software for Linux. It is easy to install and configure.)
(Ak: Uusi sivu: == Additional information ==)
 
(5 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 2: Rivi 2:
 
Squid is a commonly used proxy software for Linux. It is easy to install and configure.
 
Squid is a commonly used proxy software for Linux. It is easy to install and configure.
  
== Asennus  ==
+
== Installation ==
  
Asennetaa Squid pakettihallinnasta
+
We install Squid from package manager.
  
 
  [[aptitude]] install squid
 
  [[aptitude]] install squid
  
== Konfigurointi ==
+
== Configuration ==
  
 
  nano /etc/squid/squid.conf
 
  nano /etc/squid/squid.conf
  
Muokkaa ''squid.conf'' tiedostoa kohdasta missä on ''http_access deny all''.
+
Modify the ''squid.conf'' file from the spot with ''http_access deny all''.
  
 
  #INSERT YOUR OWN RULES HERE
 
  #INSERT YOUR OWN RULES HERE
 
  #http_access allow localhost
 
  #http_access allow localhost
  acl fbesto dstdomain .facebook.com    <small>''#Näin määrittelet access listan jolla voit estää pääsyn kaikille facebook.comin alidomaineille.''</small>
+
  acl fbesto dstdomain .facebook.com    <small>''#This is how you configure the access list which you can use for instance to block all facebook.com subdomains.''</small>
  acl aika time W 08:00-16:00          <small>''#Tämä access lista määrittelee tietyn ajan, tässä tapauksessa keskiviikko 08:00-16:00.''</small>
+
  acl aika time W 08:00-16:00          <small>''#This access list defines a certain time for the block, in this case wednesday 08:00-16:00.''</small>
  http_access deny fbesto aika          <small>''#Tässä määrittelet mitä access listoja käytetään http liikenteen suodatukseen. Tässä tapauksessa fbesto ja aika listoja.''</small>
+
  http_access deny fbesto aika          <small>''#Here you define what access lists are used to filter http traffic. In this case fbesto and aika lists.''</small>
  http_access allow all                <small>''#Lopuksi sallit kaiken muun liikenteen.''</small>
+
  http_access allow all                <small>''#In the end you allow all other traffic.''</small>
  #http_access deny all                <small>''#Tämä rivi on syytä kommentoida jotta liikennettä pääsee läpi.''</small>
+
  #http_access deny all                <small>''#You should comment this line, otherwise traffic will be blocked.''</small>
  
== Lisätietoa ==
+
== Additional information ==
  
 
http://ict-academy.fi/index.php?title=Squid_proxy
 
http://ict-academy.fi/index.php?title=Squid_proxy

Nykyinen versio 24. heinäkuuta 2015 kello 07.46

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.

Additional information

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

Mainos / Advertisement: