Judulna enda situhuna mesera erbansa hahaha, tapi bage pe anggap lah enggo siangka kai tujunna. Adina usur kita browsing website lit me piga-piga file sibas website e si jarang i sambari, ban lah contohna file gambar, css, javascript ntah pe text. I bas file-file si jarang i ganti endai me banci si ban cache na bas komputer local, jadi akses ku website si rusur sinen banci ercepatna, perban file-file si statik ah ndai enggo i buat arah komputer ntah pe proxy local.

Cara instalasi Squid enda i ban ibas distro Fedora 18, carana mirip nge ras distro-distro linux sidebanna. Mari si mulai tutorialta enda, buka terminal, ketik

su -

dung e ketikken password root linuxndu, dung e install squid na, i jenda perlu koneksi internet.

yum install squid

dung instalasi enda hapus file squid.conf bas /etc/squid/, bas squid.conf enda me si tamaken file-file man konfigurasi squid enda ndai

rm -f /etc/squid/squid.conf

perban isi squid.conf ndai enggo si sasapken, sambari alu script i teruh enda

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 localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
 
acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT
 
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
 
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
 
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
 
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
 
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
 
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
 
# And finally deny all other access to this proxy
http_access deny all
 
# Squid normally listens to port 3128
http_port 3128
 
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
refresh_pattern .		0	20%	4320
cache_dir ufs /home/squid 4000 16 256

sope lenga i pedalan squid enda, ban lebe folder /home/squid perban bas jenda kari i simpan file-file statis squid ndai

mkdir /home/squid

ganti permission na gelahna banci i akses squid-ta kari

chown squid:squid -R /home/squid

enggo kenca dung tahap sidatas, masuk kita ku tahap akhir, generate folder-folder man nyimpan cachena ku /home/squid alu perintah

cd /home/squid; squid -z

Enggo dung tutorial erban Squid Proxy bas Fedora 18 enda ndai, adina make proxy enda atendu bas firefox carana
Klik Edit -> Preferences -> Advanced -> Network klik settings ban bagi gambar teruh enda
setting squid proxy fedora firefox

Erban Proxy SQUID Guna Percepat Akses Website
Tagged on:     

2 thoughts on “Erban Proxy SQUID Guna Percepat Akses Website

  • 18 June 2013 at 16:13
    Permalink

    adi tambahken ate mikrotikna tading tambahi saja ip mikrotikna bas /etc/squid/squid.conf enda bg ?

    Reply
    • 19 June 2013 at 19:31
      Permalink

      tergantung uga banndu atendu šŸ™‚

      bas tiap klien si konek ku internet setting proxyna otomatis bas komputerna, adina lang forward otomatis kerina lewat proxy.

      klien > mikrotik > proxy > internet.

      adina bas mikrotik la kueteh uga perintahna, adina bas linux pake proxychain.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *