CMIIW,.. semoga bisa membantu (ini dengan distro debian, utk distro lain di improve sendiri,.. karena gak jauh beda koq..)
1. Install squid buraq:~# apt-get -yf install squid 2. Masukkan CD-2 Debian setelah muncul perintah berikut : Need to get 0B/684kB of archives. After unpacking 2334kB will be used. Media Change: Please insert the disc labeled 'Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-2 (20020718)' in the drive '/cdrom/' and press enter 3. Squid akan mereconfigure dirinya secara default dengan konfig standar pada /etc/squid.conf Selecting previously deselected package squid. (Reading database ... 69263 files and directories currently installed.) Unpacking squid (from .../s/squid/squid_2.4.6-2_i386.deb) ... Setting up squid (2.4.6-2) ... Creating squid spool directory structure 2003/01/14 18:51:24| Creating Swap Directories Starting proxy server: squid. 4. Secara default squid akan bekerja dengan : port 3128 cache_mem 8 cache_dir ufs /var/spool/squid 100 16 256 Dengan konfigurasi ini, squid hanya dapat di akses via localhost (127.0.0.1) saja. Untuk membuat squid mampu bekerja pada LAN (misal 192.168.1.0/24 dan ip pc proxy 192.168.1.1), maka perlu di buatkan acl baru : acl LAN src 192.168.1.0/255.255.255.0 http_access allow all LAN Catatan : letakkan baris "http_access allow all LAN" sebelum "http_access deny all" Simpan perubahan pada file /etc/squid.conf dan beritahu squid untuk mengenali perubhana konfigurasi dengan : buraq:~# squid -k reconfigure Sekarang semua host pada LAN 192.168.1.0/24 sudah dapat menikmati proxy squid pada soket 192.168.1.1:3128 5. Untuk mengecek apakah : - ada yang mengakses : buraq:~# tail -f /var/log/squid/access.log -- outputnya : 1042545897.593 471 192.168.1.1 TCP_MISS/200 50228 GET http://localhost/doc/HOWTO/en-txt/ - DIRECT/127.0.0.1 text/html 1042545898.371 23 192.168.1.1 TCP_MISS/200 1414 GET http://localhost/icons/compressed.gif - DIRECT/127.0.0.1 image/gif - system squid bekerja : buraq:~# tail -f /var/log/squid/cache.log -- outputnya : 2003/01/14 19:02:38| 0 Objects expired. 2003/01/14 19:02:38| 0 Objects cancelled. 2003/01/14 19:02:38| 0 Duplicate URLs purged. 2003/01/14 19:02:38| 0 Swapfile clashes avoided. 2003/01/14 19:02:38| Took 1.0 seconds ( 3.9 objects/sec). 2003/01/14 19:02:38| Beginning Validation Procedure 2003/01/14 19:02:38| Completed Validation Procedure 2003/01/14 19:02:38| Validated 4 Entries 2003/01/14 19:02:38| store_swap_size = 120k 2003/01/14 19:02:39| storeLateRelease: released 0 objects - squid sudah bekerja pada port berapa buraq:~# netstat -lntup | grep squid | grep LISTEN -- outputnya : tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 554/(squid) 6. Di sisi klien, arahkan setting proxy browser ke arah host yang tadi diset , misal 192.168.1.1 dengan port 3128 wassalam dhadhank --------------------------------------------------------------------- Jumlah pelanggan (updated daily): 189 Untuk berhenti berlangganan, kirim email ke: [EMAIL PROTECTED] Arsip milis, hyperlink: http://www.mail-archive.com/[email protected]/
