$
sudo squid –z
-> klik ok
Jumat, 03 Februari 2012
Konfigurasi Proxy
LANGKAH-LANGKAH
MEMBUAT PROXY SERVER
1.Menginstal UBUNTU dari awal sampai akhir
2.Masukkan perintah:$ sudo nano
/etc/network/interfaces
Untuk
mengesave ip address klik ctrl x -> yes -> enter
4.Untuk
mengisi source.list ketik: $ sudo nano /etc/apt/sources.list
Untuk mensave
sources list klik ctrl x -> yes -> enter
5.Lalu untuk mengupdate network ketik: $ sudo
apt-get update
7. Untuk mengkonfigurasi squid sebagai proxy chacing
server, ikuti langkah-langkah berikut:
- Bagian-bagian yang harus di edit: dengan perintah
ctrl+w
•http_port
#http_port
3128
menjadi:
http_port
3128
•cache_effective_user
#cache_effective_user
proxy
Menjadi:
Cache_effective_user
proxy
•cache_effective_user group
#cache_effective_group
proxy
Menjadi:
Cache_effective_group
proxy
• memori yang
dialokasikan untuk menjalankan squid server
#cache_mem
8 MB
Menjadi:
Cache_mem
16 MB
•Cache_mgr
#cache_mgr
webmaster
Menjadi:
Cache_mgr
webmaster@mail.tkj.net
•Chace dir
#cache_dir
ufs /var/spool/squid 100 16 256
Menjadi:
Cache_dir
ufs /cache 2000 16 256
•Setelah itu cari baris:
http_access
allow local host
#And
finally deny all other access to this proxy
http_access
deny all
•lalu tambahkan:
http_access
allow lan
menjadi:
http_access
allow local host
http_access
allow lan
#And
finally deny all other access to this proxy
http_access
deny all
•lalu cari: acl localhost src
lalu
tambahkan:
acl
lan src 10.10.10.0/24
acl
lan src 192.168.100.30/24
$ sudo
mkdir-p/cache
$ sudo chwon
proxy.proxy/cache
9.buat cache dengan perintah:
10.ketik: $ sudo su
11.untuk mengecek sudah berhasil atau tidaknya,
-> klik start
-> pilih internet explorer
-> kemudian pilih tools
-> klik internet options
-> pilih connections
-> klik LAN setting
-> kemudian isi address virtual box (10.10.10.31)
dan port nya 3128
-> lalu tulis pada address bar google.com
12. Jika
sudah berhasil kita check pada proxy severnya bahwa sudah ada
laporannya.
0 komentar:
Posting Komentar