sempat pusing gara-gara coba make aplikasi proxy caching untuk di warnet, nanya mang Google tetep aja gak jadi tuh proxy,
akhirnya ku coba tanya-tanya sama temen-temen mandrivian dan facebooker
kemudian ada teman facebook baik hati yang membagikan squid.conf nya pada ku, nah disini juga saya akan membaginya buat para pembaca, simak ya baik-baik
#Recommended minimum configuration:
visible_hostname squid.com #boleh diubah dengan nama lain asal ada .com nya
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
# 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/24 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
#INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
acl porno url_regex -i "/home/riski/blokir/blokir.txt"
http_access deny porno
acl lan src 192.168.2.0/24 # ini ip client
http_access allow lan
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow localnet
http_access allow localhost
# And finally deny all other access to this proxy
http_access deny all
#Default:
#reply_body_max_size 40960000 allow download #utk membatasi besar file upload (1mb=1024kb)
#Default:
delay_pool_uses_indirect_client on
# Squid normally listens to port 3128
http_port 3128 transparent #Utk memaksa semua klient harus lewat port squid
#We recommend you to use at least the following line.acl youtube dstdomain -i .youtube.com
hierarchy_stoplist cgi-bin ?
#Suggested default:
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
#Default:
# reply_header_max_size 20 KB
# TAG: request_body_max_size (KB)
# This specifies the maximum size for an HTTP request body.
# In other words, the maximum size of a PUT/POST request.
# A user who attempts to send a request with a body larger
# than this limit receives an "Invalid Request" error message.
# If you set this parameter to a zero (the default), there will
# be no limit imposed.
#
#Default:
# request_body_max_size 0 KB #Utk membatasi besar file yg ingin di download klien (kb)
# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
# TAG: cache_mgr
# Email-address of local cache manager who will receive
# mail if the cache dies. The default is "webmaster".
#
#Default:
# cache_mgr webmaster
# DELAY POOL PARAMETERS
# -----------------------------------------------------------------------------
delay_pools 1
delay_access 1 allow lan
delay_access 1 deny all
delay_class 1 2
delay_parameters 1 -1/-1 12000/64000 # yang ini buat membagi BW di setiap client
nah itu dia konfigurasinya,,,
tapi coba juga yang ini:
caranya, buka konsole lalu masukan perintah #urpmi gadmin-squid
lumayan ada pake gaya GUI, tapi menurut ku agak ribet
begini penampakannya
nah di bagian ini bisa di kolaborasikan dengan configurasi di atas, tinggal kopi-pasteu, terus save
hati-hati untuk catatan jangan klik apply nanti robah lagi sesuai konfigurasi di poto pertama
setelah di save tinggal di klik deactivate , tunggu sampe status menjadi deactivate, kemudian klik activate
sip lah selamat mencoba.... kurangnya nanti nyusul
semoga bermanfaat.
terimakasih buat kang Agustin nurulfahmi
5 comments:
[...] Setting Proxy squid bisa Anda lihat disini: http://abusayyaf.wordpress.com/2010/03/14/contoh-kecil-konfigurasi-squid/ [...]
thank you for reading my articel, yeah...... if we have a slow Internet connection, the proxy can also be overcome
Good Site. You should consider a lot more about RSS Feeds as a site visitors source. They bring me a great bit of site visitors.
thank for your visit, but I do not know much about RSS :D
thank yo so much :D ....
Post a Comment