Subscribe For Free Updates!

We'll not spam mate! We promise.

Selasa, 17 Februari 2009

Konfigurasi proxy squid Debian 4

Install paket squid untuk versi yang terbaru

#apt-get install squid

Mengedit script squid.conf

#nano /etc/squid/squid.conf

visible_hostname (hostname yg diperlukan)

cache_mgr (alamat e-mail)

http_port 3128 transparent

always_direct allow all

cache_dir ufs /var/spool/squid 500 16 256

dan Edit juga script di bawah ini :

acl all src 0.0.0.0/0.0.0.0

acl lab1 src 192.168.1.0/255.255.255.0

acl tidak dstdomain www.friendster.com

acl manager proto cache_object

acl localhost src 127.0.0.1/255.255.255.255

acl to_localhost dst 127.0.0.0/8

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

Serta edit juga script dibawah ini :

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

# Example rule allowing access from your local networks. Adapt

# be allowed

# acl our networks src 192.168.1.0/24 192.168.2.0/24

# http_access allow our_networks

http_access deny tidak

http_access allow lab1

Serta tambahkan juga script pada line 74 :

Visible_hostname www.tkj.com

Ø Membuat cache directory dengan mengetikkan perintah

#squid –z

Ø Merestart daemon Squid

#/etc/init.d/squid restart

Untuk test apakah konfigurasi Anda sudah berhasil, buka Internet Explorer è

tools è

internet options è

connections è

LAN setting è

Pilih use automatic configuration script è

lalu isikan pada address alamat server kita

Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: M. Yusuf Mubarok

2 komentar:

Anonim mengatakan...

Ka...
hrus'a pke gmbr taw pke print screen... supaya lbih jlas...
thx...

Anonim mengatakan...

dari oktanu