http://issss.us/In s t all S q uid U bu n tu S e r v e r 9 . 0 4Kebutuhan sistem operasi untuk implementasi server dalam j...
http://issss.us/http_port 3128 transparenticp_port 3130acl query urlpath_regex cgi-bin ? .php$ .asp$ .shtml$ .cfm$ .cfml$....
http://issss.us/  acl   SSL_ports port 443 563  acl   SSL_ports port 2083 2096  acl   Safe_ports port 80 # http  acl   Saf...
http://issss.us/      $ mkdir /usr/local/squid      Membuat direktori cache               $ mkdir /usr/local/squid/cache  ...
http://issss.us/      2009/05/19 05:21:37| Squid is already running! Process ID 49719) Melihat log access client      root...
Upcoming SlideShare
Loading in …5
×

Instalasi Squid Proxy di Ubuntu

1,784 views

Published on

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,784
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
166
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Instalasi Squid Proxy di Ubuntu

  1. 1. http://issss.us/In s t all S q uid U bu n tu S e r v e r 9 . 0 4Kebutuhan sistem operasi untuk implementasi server dalam jaringan baik skala besarmaupun kecil sangat berpengaruh peranannya untuk optimasi kebutuhan akan kelancaranakses.Ubuntu server salah satu solusi yang memberikan kemudahan baik konfigurasinyamaupun dalam installasi serta perawatan untuk update scurity.Kemudahan tersebut salahsatunya dengan satu kali syntax sudo “apt-get update” dan kemdian install squid dengan cara“sudo apt-get install squid”, maka squid yang di install squid yg terbaru dan tidak perlumencari atau download dulu sorce squid.Karena installasi pakednya sudah ada langsung darirepositori.Ini berarti di sisi scurity jg secara otomatis sudah ter-update.Untuk membangunproxy server dengan ubuntu diperlukan salah satunya dengan squid.Berikut ini tutorial singkat cepat install squid proxy server di ubuntu.Dengan sedikit bekal inipenulis berharap dapat menghantarkan bagi pemula belajar squid proxy Ubuntu server untukbisa dikembangkan lebih jauh. 1. Update path repository untuk mendapatkan source terbaru $sudo apt-get update 2. Mengunduh berkas dan menginstall $sudo apt-install squid 3. Backup script squid yg asli jika mengalami error saat di edit bisa di gunakan lagi script squid default $sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.original 4. Edit sesuai kebutuhan file konfigurasi squid $sudo vi /ect/squid/squid.conf contoh squid yang sudah di custumize seperti di bawah ini : #========================================================== #konfigurasi squid.conf #==========================================================
  2. 2. http://issss.us/http_port 3128 transparenticp_port 3130acl query urlpath_regex cgi-bin ? .php$ .asp$ .shtml$ .cfm$ .cfml$.phtml$ .php3$ .js .jspacl nocache-domain dstdomain javatechno.net uns.ac.id siakad.uns.ac.idalways_direct allow queryalways_direct allow nocache-domainno_cache deny queryno_cache deny nocache-domaincache_mem 128 MBcache_swap_low 90cache_swap_high 95maximum_object_size 128 MBmaximum_object_size_in_memory 32 KB#file mp3, exe, zip, dat, avi, 3gp tidak disimpan di cache hardiskacl mp3 urlpath_regex -i .mp3$acl exe urlpath_regex -i .exe$acl zip urlpath_regex -i .zip$acl dat urlpath_regex -i .dat$acl avi urlpath_regex -i .avi$acl 3gp urlpath_regex -i .3gp$no_cache deny mp3no_cache deny exeno_cache deny zipno_cache deny datno_cache deny avino_cache deny 3gp#cache_dir aufs /cache0/aufs 6000 16 128#cache_dir aufs /cache1/aufs 6000 16 128#cache_dir diskd /cache0/diskd 8000 16 256 Q1=72 Q2=64#cache_dir diskd /cache1/diskd 8000 16 256 Q1=72 Q2=64#cache_dir coss /cache0/coss 2000 block-size=512 max-size=131072#cache_dir coss /cache1/coss 2000 block-size=512 max-size=131072cache_dir ufs /cache0/ufs 900 16 256cache_dir ufs /cache1/ufs 900 16 256cache_access_log /usr/local/etc/squid/var/logs/access.logcache_log /usr/local/etc/squid/var/logs/cache.logcache_swap_log /usr/local/etc/squid/var/logs/%scache_store_log none#ACL Network#acl all src 0.0.0.0/0.0.0.0acl client src 192.168.0.0/24acl private src 192.168.0.222acl jnp src 222.124.162.0/24acl localhost src 127.0.0.1/255.255.255.255acl to_localhost dst 127.0.0.0/8acl manager proto cache_object#Port yang diijinkan untuk di request
  3. 3. http://issss.us/ acl SSL_ports port 443 563 acl SSL_ports port 2083 2096 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews 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 631 # cups acl Safe_ports port 777 # multiling http acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT acl FTP proto FTP http_access allow localhost http_access allow jnp http_access allow private http_access allow client http_access deny all http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports icp_access allow localhost icp_access allow jnp icp_access allow private icp_access allow client icp_access deny all miss_access allow all always_direct allow client always_direct allow FTP acl cachemgr proto cache_object http_access allow cachemgr client http_access allow cachemgr private http_access allow cachemgr localhost http_access deny cachemgr all cachemgr_passwd admin info stats/objects cachemgr_passwd admin all cache_effective_user squid cache_effective_group squid visible_hostname http://cache.javatechno.net cache_mgr NOC-JNP forwarded_for off5. Membuat file log dan direktory untuk cache Membuat direktori squid
  4. 4. http://issss.us/ $ mkdir /usr/local/squid Membuat direktori cache $ mkdir /usr/local/squid/cache Membuat file cache log yg berfungsi untuk melihat dan memonitoring aktivitas yg sedang di lakukan client $touch /usr/local/squid/cache.logMembuat file access log berfungsi untuk memonitoring aktivitas yg dilakukan olehcache server $touch /usr/local/squid/access.logMembuat user dan group squid sebagai pemilik dari proses squid dan logingnya, inidibuat dengan alasan keamanan jika sistem squid diserang cracker dan bisa di aksesoleh cracker bukan root yg di ambil alih $sudo adduser squidMemberikan attribut dan hak milik atas direktori squid berserta sub sub direktori + filefile yg ada didalamnya $chown -Rf squid.squid /usr/local/squid $sudo chown squid.squid /var/spool/squid -Rf $ sudo chown squid.squid -Rf /etc/squid6) Membuat struktur cache directory root@kuthuknet:/etc/squid# squid -z 2009/05/19 05:19:49| Squid is already running! Process ID 49717) Test Squid root@kuthuknet:/etc/squid# squid -d 1 -D 2009/05/19 05:20:55| Squid is already running! Process ID 49718) Menjalankan Squid root@kuthuknet:/etc/squid# squid -sYD
  5. 5. http://issss.us/ 2009/05/19 05:21:37| Squid is already running! Process ID 49719) Melihat log access client root@kuthuknet:~# tail -f /usr/local/squid/access.log 1242725175.667 1212 192.168.0.200 TCP_MISS/302 898 GET http://www.google.com/search?q=install+squid+ubuntu&ie=utf-8&oe=utf- 8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a - DIRECT/74.125.19.147 text/htmlSelamat mencoba....

×