Membuat virtual host debian

Published on May 2016 | Categories: Documents | Downloads: 22 | Comments: 0 | Views: 245
of 5
Download PDF   Embed   Report

Comments

Content

[Install Squid]
jihad:~# apt-get install squid

[Konfigurasi Squid]
jihad:~# nano /etc/squid/squid.conf -----> Cari paramater dibawah ini, lalu edit.
# Squid normally listens to port 3128 http_port 3128 transparent #Default: # cache_mem 8 MB cache_mem 32 MB #Default: # cache_mgr webmaster cache_mgr [email protected] visible_hostname proxy.irhaby.org #cari acl CONNECT, kemudian tulis parameter dibawah ini acl url dstdomain "/etc/squid/url" #domain yang di blokir acl key url_regex -i "/etc/squid/key" #kata kunci yang di blokir http_access deny url http_access deny key acl lan src 192.168.0.0/16 http_access allow lan http_access allow all negative_ttl 1 minutes negative_dns_ttl 1 minute #DNS dns_nameservers 192.168.101.254 #Default: cache_dir ufs /var/spool/squid 100 16 256 minimum_object_size 0 KB maximum_object_size 204800 KB access_log /var/log/squid/access.log squid ##konfigurasi bisa di sesuaikan sesuai keinginan anda##

© Jihad_Irhaby

Page 1

jihad:~# nano /etc/squid/url
www.facebook.com facebook.com www.rujak.uni.me rujak.uni.me

jihad:~# nano /etc/squid/key Porn Xxx

jihad:~# /etc/init.d/squid restart

[membuat halaman Proxy]

jihad:~# cd /usr/share/squid/errors/English/ jihad:/usr/share/squid/errors/English# nano ERR_ACCESS_DENIED -----> Konfigurasi sesuai keinginan anda jihad:/usr/share/squid/errors/English# nano ERR_DNS_FAIL -----> Konfigurasi sesuai keinginan anda

[Konfigurasi IPTables]
jihad:~# iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 --dport 80 -j DNAT --to-destination 192.168.101.254:3128 -----> Untuk penjelasan perintah ini akan saya sampaikan di bagian firewall jihad:~# iptables-save -----> agar konfigurasi iptables tidak hilang, maka ikuti langkah dibawah ini jihad:~# iptables-save > /etc/iptables.conf jihad:~# nano /etc/rc.local # By default this script does nothing. iptables-restore < /etc/iptables.conf jihad:~# squid –z

© Jihad_Irhaby

Page 2

[Test]
Sesuai konfigurasi kita di atas, maka akan kita coba untuk memanggil www.rujak.uni.me [Sebelum Routing ke Proxy}

[Setelah Routing ke proxy]

© Jihad_Irhaby

Page 3

[Install CCZE]
-----> download file ccze_0.2.1-2_i386.deb. -----> upload ke server dengan winSCP

jihad:~# ls ccze_0.2.1-2_i386.deb mysql.save quit jihad:~# dpkg -i ccze_0.2.1-2_i386.deb

© Jihad_Irhaby

Page 4

[Test CCZE]
jihad:~# tail -f /var/log/squid/access.log | ccze

::Tamat::

© Jihad_Irhaby

Page 5

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close