You are on page 1of 61

1

Buka VirtualBox, Klik New. Ikuti petunjuk gambar dibawah ini :-D

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

101
0

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Muncul error, klik Continue saja (karena network adapternya di-matikan tadi). Kita
ON nanti setelah instalasi Ubuntu Servernya selesai :-D

http://www.sedekahrombongan.com

Isi nama komputernya

Isi full user name

Isi user name

202
0

Isi password

Isikan lagi password yang sama

Pilih No saja

Pilih Timezone

Pilih Partition Method Guided use entire disk

Enter saja

Yes

Tekan Enter saja

Pilih No automatic update

292
9

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

303
0

Tekan SPASI untuk memilih OpenSSHServer

http://www.sedekahrombongan.com

Pilih Yes

Tekan Enter

Beres. Selesai sudah Install Ubuntu Server. Mudah bukan????.....bukaaaaaaaaaaaaaaan

343
4

Kurangi Rokokmu Tambahin Sedekahmu http://www.sedekahrombongan.com

Lanjut mau aktifkan Network Adapter di VirtualBox


Login lalu shutdown Ubuntu Virtual Machine

http://www.sedekahrombongan.com

Kembali ke VirtualBox, pilih Settings dan centang Enable Network Adapter

Start kembali Ubuntu Server VirtualBox. Login dan aktifkan network adapter eth0
sudo ifconfig eth0 up

Cek apakah eth0 sudah UP atau belum. Ketik ifconfig

Lanjut, isi ip address. Ketik sudo nano /etc/network/interfaces. Isi sesuai ip address di
tempatmu

404
0

Tekan tombol Ctrl+O lalu Enter

Tekan tombol Ctrl+X untuk keluar dari


nano editor. Lanjut dengan test ping ke ip
address gateway

Network is unreachable..hehelupa restart dulu service networkingnya. Ketik sudo


service networking restart

Test ping pasti gagal jugalupa di adapter virtualbox nya belum connect cable
:-D. Powerof dulu, kembali ke VirtualBox SettingsSorry pemirsawis tuo
hahaha

Start lagi bray..wkwkwkw


Test ping ke gateway

Ping ke www.dokter-squid-indonesia.com

Ok. Good. Koneksi internet lancar. Lanjut install squid.

Update Ubuntu Servernya terlebih dahulu


Ketik sudo apt-get update

Sabar menunggu sampai selesai..

Kita lanjut pake Aplikasi WinSCP dan Putty (biar mudah copy
pastenya)..itukan yang kamu mau..heuheuheu. Kalau belum ada
download dan install http://winscp.net/download/winscp556setup.exe
http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.63-installer.exe

Pilih Yes

505
0

Open Putty dengan meng-klik toolbar Putty

Klik Yes

Masukin password user yang tadi dibuat

Install SQUID
Copy paste command dibawah ini :
sudo su
sudo apt-get install
devscripts -y sudo apt-get
install libcap-* -y sudo aptget install openssl -y sudo
apt-get install ccze -y
wget http://www.squid-cache.org/Versions/v3/3.4/squid3.4.9.tar.gz tar xzvf squid-3*
cd squid-3*

./confgure --prefx=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/squid \
--sysconfdir=/etc/squid \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--datadir=/usr/share/squid \
--enable-err-languages=English \
--enable-default-err-language=English \
--infodir=/usr/share/info \
--mandir=/usr/share/man \

--disable-dependency-tracking \
--enable-storeio=ufs,aufs,diskd \
--enable-removal-policies=lru,heap \
--enable-icap-client \
--disable-wccp \
--disable-wccpv2 \
--enable-follow-x-forwarded-for \
--enable-x-accelerator-vary \
--enable-zph-qos \
--enable-snmp \
--with-default-user=proxy \
--with-logdir=/var/log/squid \
--with-pidfle=/var/run/squid.pid \
--with-large-fles \
--enable-underscores \
--disable-auth \
--enable-async-io \
--with-pthreads \
--disable-ipv6
make && make install
sudo cp /etc/squid/squid.conf
/etc/squid/squid.conf.asli sudo chmod a-w
/etc/squid/squid.conf.asli
cd
mkdir /cache
chown -R proxy:proxy /cache
chown -R proxy:proxy
/var/log/squid nano
etc/squid/squid.conf
EDIT bagian yang saya HIGHLIGHT KUNING(sesuaikan dengan nama
folder dan besaran cache
And
a)
#
#
Recommended
minimum
confguration:
#
# Example rule allowing access from your
local networks.
# Adapt to list your (internal) IP networks from
where browsing
# should be
allowed
acl localnet src 10.0.0.0/8
# RFC1918 possible
internal network acl localnet src 172.16.0.0/12
#

RFC1918 possible internal network acl localnet src


192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7
# RFC 4193 local private
network range
acl localnet src fe80::/10
# RFC 4291 link-local (directly
plugged) machines

acl SSL_ports port 443


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
# flemaker
acl Safe_ports port 777
#
multiling http acl CONNECT method
CONNECT
#
# Recommended minimum Access Permission confguration:
#
# Deny requests to certain
unsafe ports http_access deny !
Safe_ports
# Deny CONNECT to other than secure
SSL ports http_access deny CONNECT !
SSL_ports
# Only allow cachemgr access from
localhost http_access allow localhost
manager http_access deny manager
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be
allowed http_access allow localnet
http_access allow localhost

# And fnally deny all other access to


this proxy http_access deny all

# Squid normally listens to


port 3128 http_port 3128
# Uncomment and adjust the following to add a disk
cache directory. cache_dir ufs /cache 3000 16 256
# Leave coredumps in the first
cache dir coredump_dir /cache
#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp:
1440 20% 1008
0
refresh_pattern ^gopher: 1440 0%
1440
refresh_pattern -i (/cgi0
0%
0
bin/|\?)
refresh_pattern .
0
20% 4320
tekan Ctrl+o lalu ENTER untuk menyimpan
perubahan tekan Ctrl+x untuk keluar dari
nano editor
lanjut copy paste command
dibawah ini squid -k parse
squid -z
tekan ENTER
saja squid
start
Test Manual Proxy di Browser

Buka salah satu website misalnya detik.com

Tutup dan buka lagi website detik.com, pada Putty ketik command tail -f
/var/log/squid/access.log | ccze

Selesai untuk caching HTTP :-D .Mudah bukan?????


Bukaaaaaaaaaaaaaaaaaaaaaan.wakwow

Lanjut ke HTTPS caching


Untuk caching HTTPS kita butuh feature SSL_BUMP , DynamicSslCert. Feature ini
harus diaktifkan saat confgure
- - enable -ssl - -enable -ssl -crtd

Ayo kita configure ulang


sudo su
Tambahkan dulu paket pendukung
sudo apt-get install libssldev -y sudo apt-get install
libsasl2-dev y sudo apt-get
install cdbs y
cd squid-3*
make clean
./confgure --prefx=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/squid \
--sysconfdir=/etc/squid \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--datadir=/usr/share/squid \
--enable-err-languages=English \
--enable-default-err-language=English \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--disable-dependency-tracking \
--enable-storeio=ufs,aufs,diskd \
--enable-removal-policies=lru,heap \

--enable-icap-client \
--disable-wccp \
--disable-wccpv2 \
--enable-follow-x-forwarded-for \
--enable-x-accelerator-vary \
--enable-zph-qos \
--enable-snmp \
--with-default-user=proxy \
--with-logdir=/var/log/squid \
--with-pidfle=/var/run/squid.pid \
--with-large-fles \
--enable-underscores \
--disable-auth \
--enable-async-io \
--with-pthreads \
--disable-ipv6 \
--enable-ssl
--enable-ssl-crtd
make && make install