KUMPULAN ARTIKRL NUNUTJOE

Langganan Artikel Via Email

Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch



Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch

Download Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch.pdf

Download Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch.pdf

Download Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch.pdf





Fungsi:


  1. Menyimpan cache tampilan halaman web




  2. Mengatur bandwidth internet ke client




  3. Mengontrol aktivitas client (misalnya hak akses situs tertentu, melihat situs-situs yang dikunjungi client).


Bahan Membuat proxy:


  1. Komputer minimal 2 lan card.




  2. puter client




  3. Sambungan internet



Langkah-langkah membuat proxy:


  1. Setting ip server
    #vim /etc/network/interfaces
    iface eth1 inet static
    address 192.168.2.29
    netmask 255.255.255.128
    network 192.168.2.0
    broadcast 192.168.2.127
    gateway 192.168.2.1
    # dns-* options are implemented by the resolvconf package, if             installed
    dns-nameservers 202.134.0.155
    dns-search smkn1-tuban.sch.id


    Simpan esc:wq
    Restart /etc/init.d/networking restart ->>merestrat lan card







  1. Instalasi squid3


    debian:~# apt-get install squid3
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
squid3-common
Suggested packages:
squid3-client squid3-cgi resolvconf smbclient
The following NEW packages will be installed:
squid3 squid3-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 985kB of archives.
After unpacking 6312kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
squid3-common squid3
Install these packages without verification [y/N]? Y
Get:1 ftp://118.98.171.229 etch/main squid3-common 3.0.PRE5-5 [246kB]
Get:2 ftp://118.98.171.229 etch/main squid3 3.0.PRE5-5 [739kB]
Fetched 985kB in 0s (7922kB/s)
Selecting previously deselected package squid3-common.
(Reading database ... 65462 files and directories currently installed.)
Unpacking squid3-common (from .../squid3-common_3.0.PRE5-5_all.deb) ...
Selecting previously deselected package squid3.
Unpacking squid3 (from .../squid3_3.0.PRE5-5_i386.deb) ...
Setting up squid3-common (3.0.PRE5-5) ...
Setting up squid3 (3.0.PRE5-5) ...
Creating Squid HTTP proxy 3.0 spool directory structure
2009/11/26 05:33:15| Creating Swap Directories
2009/11/26 05:33:15| /var/spool/squid3 exists
2009/11/26 05:33:15| Making directories in /var/spool/squid3/00
2009/11/26 05:33:15| Making directories in /var/spool/squid3/01
2009/11/26 05:33:16| Making directories in /var/spool/squid3/02
2009/11/26 05:33:16| Making directories in /var/spool/squid3/03
2009/11/26 05:33:16| Making directories in /var/spool/squid3/04
2009/11/26 05:33:16| Making directories in /var/spool/squid3/05
2009/11/26 05:33:16| Making directories in /var/spool/squid3/06
2009/11/26 05:33:16| Making directories in /var/spool/squid3/07
2009/11/26 05:33:16| Making directories in /var/spool/squid3/08
2009/11/26 05:33:16| Making directories in /var/spool/squid3/09
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0A
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0B
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0C
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0D
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0E
2009/11/26 05:33:16| Making directories in /var/spool/squid3/0F
Restarting Squid HTTP Proxy 3.0: squid3.




  1. Membuat Partisi
    debian:~# squid3 -z


2009/11/26 05:45:45| Squid is already running! Process ID 3254




  1. Konfigurasi Squid
    #cp /etc/squid3/squid.conf /etc/squid3/squid.conf.ASLI
    vim /etc/squid3/squid.conf




yang di blog merah harus di edit


# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS


# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed


acl our_networks src 192.168.1.0/24 192.168.2.0/25 {isi dengan jaringan anda}
http_access allow our_networks
http_access allow localhost


  1. Menjalankan squid


debian:~# /etc/init.d/squid3 restart
Restarting Squid HTTP Proxy 3.0: squid3 Waiting.....................done.
.




  1. Menguji Proxy
    a. Client


lakukan setting pada Browser

  • klik Tools >>Options
  • pilih tab Advance
  • pilih Bagian Network
  • Pada bagian Connection Klik SETTING
  • kemudian isikan alamat proxy server kita dengan port 3128


b Server proxy
debian:/etc/squid3# tail -f /var/log/squid3/access.log


1259233445.417 9649 192.168.2.42 TCP_MISS/301 744 GET http://google.c om/ - DIRECT/74.125.67.100 text/html
1259233453.882 8459 192.168.2.42 TCP_MISS/302 692 GET http://www.goog le.com/ - DIRECT/216.239.61.104 text/html
1259233465.741 11851 192.168.2.42 TCP_MISS/200 4136 GET http://www.goo gle.co.id/ - DIRECT/216.239.61.104 text/html
1259233475.348 5969 192.168.2.54 TCP_MISS/200 22633 GET http://smkn1- tuban.sch.id/blog/? - DIRECT/118.98.171.227 text/html
1259233480.397 14585 192.168.2.42 TCP_MISS/200 12358 GET http://www.go ogle.co.id/extern_js/f/CgJpZBICaWQrMAo4QUAdLCswDjgKLCswFjgULCswFzgELCsw GDgELCswHTgbLCswJTjJiAEsKzAmOAgsKzAnOAIsKzAqOAIsKzArOAgsKzBFOAAs/Qmf2fA ic6VA.js - NONE/- text/javascript
1259233481.653 1185 192.168.2.42 TCP_MISS/204 428 GET http://clients1 .google.co.id/generate_204 - DIRECT/74.125.153.138 text/html
1259233481.952 394 192.168.2.54 TCP_MISS/200 19532 POST http://smkn1 -tuban.sch.id/blog/? - DIRECT/118.98.171.227 text/html
1259233482.595 7177 192.168.2.54 TCP_MISS/302 640 GET http://www.grav atar.com/avatar/0cef7edb45bce8144ade993abaef3413? - DIRECT/72.233.61.12 5 text/html
1259233483.038 1358 192.168.2.42 TCP_MISS/204 481 GET http://www.goog le.co.id/csi? - NONE/- text/html
1259233518.967 11316 192.168.2.42 TCP_MISS/200 719 GET http://translat e.google.com/translate_a/t? - DIRECT/74.125.153.138 text/plain


Download file PDF disini untuk tutor dengan gambar





Comments
0 Comments

Responses

0 Respones to "Cara Konfigurasi Proxy Dengan Squid3 di Debian Etch"

Post a Comment

 
Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors