Instalasi Squid: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
No edit summary
Line 10: Line 10:


  visible_hostname 192.168.0.1  # IP address server Squid anda
  visible_hostname 192.168.0.1  # IP address server Squid anda
 
  # Example rule allowing access from your local networks.
  # Example rule allowing access from your local networks.
  # Adapt to list your (internal) IP networks from where browsing
  # Adapt to list your (internal) IP networks from where browsing
Line 17: Line 17:
  acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
  acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
  acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
 
   
 
  http_access allow localnet
 
  acl our_networks src 192.168.0.0/24 192.168.11.0/24
  acl our_networks src 192.168.0.0/24 192.168.11.0/24
  http_access allow our_networks
  http_access allow our_networks

Revision as of 23:38, 28 March 2012

Instalasi Squid

# apt-get install squid

Edit konfigurasi squid agar komputer di LAN kita dapat menggunakan Squid tersebut

# vi /etc/squid/squid.conf

Beberapa contoh setting yang penting

visible_hostname 192.168.0.1  # IP address server Squid anda

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network

acl our_networks src 192.168.0.0/24 192.168.11.0/24
http_access allow our_networks

Restart Squid (sekarang)

# service squid restart

dulu menggunakan

# /etc/init.d/squid restart


Setup Client

Tidak banyak yang perlu di set di sisi Client. Arahkan proxy di sisi Client ke

IP address Server Squid
Port       3128


Referensi

Download Video Pembelajaran Squid

wget --no-parent -r -p -U Mozilla http://118.96.136.211/onfile/index.php?dir=Video+Pembelajaran/Squid

Referensi Tambahan

Pranala Menarik