How To Install Squid Proxy on Centos


Cara instal squid proxy di centos

Squid adalah sebuah daemon yang digunakan sebagai proxy server dan web cache. Squid memiliki banyak jenis penggunaan, mulai dari mempercepat server web dengan melakukan caching permintaan yang berulang-ulang, caching DNS, caching situs web, dan caching pencarian komputer di dalam jaringan untuk sekelompok komputer yang menggunakan sumber daya jaringan yang sama, hingga pada membantu keamanan dengan cara melakukan penyaringan (filter) lalu lintas. Meskipun seringnya digunakan untuk protokol HTTP dan FTP, Squid juga menawarkan dukungan terbatas untuk beberapa protokol lainnya termasuk Transport Layer Security (TLS), Secure Socket Layer (SSL), Internet Gopher, dan HTTPS

Berikut langkah mudah instal squid proxy
login puty sebagai root lalu ketik perintah berikut

yum install squid

Delete configurasi bawaannya

rm  /etc/squid/squid.conf

Diminta y/n ketik y lalu enter,kemudian masukan config yang baru ketik

nano /etc/squid/squid.conf

masukan config berikut

http_port 8000

visible_hostname anyarcell
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object

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
acl Denied_ports port 1025-65535

#http_access allow all
#http_access deny all
http_access allow manager all
icp_access allow all
forwarded_for off
http_access deny Denied_ports
http_access deny CONNECT Denied_ports

access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
refresh_pattern .               0       20%     4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid
cache_mgr anyar_cell@yahoo.co.id

Keluar sekaligus save config diatas tekan ctrl + x  bersamaan ketik y enter
Terakhir jalankan squidnya ketik

service squid start

Selesai

Berikut tutorial videonya :



Wallpapers
comments powered by Disqus

Posting Komentar

 
Copyright © 2012-2013. Doktrin Teknologi - All Rights Reserved
Blogger Việt
Templates by : Blogger Templates