Setting Proxy: Apt-Get Update Setting Ipnya

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Setting Proxy

apt-get update setting ipnya >> pico /etc/network/interfaces >> isi dengan auto lo iface lo inet loopback

auto eth0 iface eth0 inet static address 192.168.5.2 netmask 255.255.255.0 gateway 192.168.5.1

setting dns >> pico /etc/resolv.conf >> tambahkan dengan nameserver 202.134.1.10 nameserver 202.134.0.155 restart setting ip >> /etc/init.d/networking restart apt-get update

cd /tmp
wget http://squid-proxy-pkg.googlecode.com/files/squid-2.7.STABLE8ubuntu-i386.tar.bz2

tar xvf squid-2.7.STABLE8-ubuntu-i386.tar.bz2 cd squid-2.7.STABLE8-ubuntu-i386 mkdir /etc/squid chown -Rf proxy.proxy /etc/squid
cp config/* /etc/squid/ pico /etc/squid/squid.conf >> cari tulisan >> ganti dengan visible_hostname www.empatpilarweb.co.id visible_hostname www.hikma-teknologi.co.cc

>> cari tulisan

uri_whitespace strip

>> tambahkan di atasnya dengan acl lan src 192.168.1.0/24 acl hotspot src 10.5.50.0/24 >> cari tulisan #DNS NAWALA

>> ubah dns_nameservers (dua baris tersebut dengan) dns_nameservers 202.134.1.10 dns_nameservers 202.134.0.155 ingat nomor dns diatas itu untuk wilayah Makassar untuk daerah manado lain lagi >> hapus baris dns_testnames 127.0.0.1 >> cari baris cache_dir aufs /cache-scasi2 32768 64 256 max-size 65535 cache_dir aufs /cache-scasi3 32768 64 256 max-size 65535 >> ganti dengan cache_dir aufs /proxy1 8000 16 256 cache_dir aufs /proxy2 8000 16 256 >> cari baris http_access allow localnet

>> tambahkan di bawahanya dengan http_access allow lan

http_access allow hotspot >> cari baris http_port 3128 transparent

>> tambahkan di bawahanya dengan server_http11 on >> Ctr + X untuk menyimpan lalau enter

pico /etc/squid/tunning-ubuntu.conf >> Hapus dari baris paling atas dengan cara ctr + k sampai dengan # 1 year = 525600 mins, 1 month = 43800 mins >> ganti dengan
acl store_rewrite_list urlpath_regex \/(get_video\?|videodownload\?|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)\? \/ads\? acl store_rewrite_list_web url_regex ^http:\/\/([A-Za-z-]+[0-9]+)*\.[A-Za-z]*\.[A-Za-z]* acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)$

acl store_rewrite_list_web_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.com doubleclick\.net acl QUERY2 urlpath_regex get_video\? videoplayback\? \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)\? cache allow QUERY2 cache allow store_rewrite_list_web_CDN

acl QUERY urlpath_regex cgi-bin \? cache deny QUERY

storeurl_access allow store_rewrite_list #this is not related to youtube video its only for CDN pictures storeurl_access allow store_rewrite_list_web_CDN storeurl_access allow store_rewrite_list_web store_rewrite_list_path storeurl_access deny all #rewrite_program path is base on windows so use use your own path storeurl_rewrite_program /etc/squid/storeurl-ubuntu.pl storeurl_rewrite_children 1 storeurl_rewrite_concurrency 10

>> ctr + x simpan lalu enter

chown -Rf proxy.proxy /proxy1 >> enter chown -Rf proxy.proxy /proxy2 >> enter
dpkg -i squid_2.7.STABLE8-1_i386.deb \ squidclient_2.7.STABLE8-1_i386.deb squid-langpack_20100111-1_all.deb \ squid-cgi_2.7.STABLE8-1_i386.deb squid-common_2.7.STABLE8-1_all.deb service squid restart >> perintah untuk merestart squid pico /etc/rc.local >> ini untuk menyisipkan perintah jalankan servisnya begitu restart >> tambahakan baris di atas exit 0 service squid restart

tes lognya >> tail f /var/log/squid/access.log

SETTING MODEM VCP : 8 VCI : 81

You might also like