0% found this document useful (0 votes)
74 views

Setting Proxy

This document provides instructions for setting up a proxy server on a Linux system using Squid. It includes steps for configuring network interfaces, DNS settings, downloading and extracting the Squid package, editing the Squid configuration file to set access controls and cache directories, and restarting the Squid service. The instructions also cover testing the Squid log.

Uploaded by

Si Centil
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Setting Proxy

This document provides instructions for setting up a proxy server on a Linux system using Squid. It includes steps for configuring network interfaces, DNS settings, downloading and extracting the Squid package, editing the Squid configuration file to set access controls and cache directories, and restarting the Squid service. The instructions also cover testing the Squid log.

Uploaded by

Si Centil
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Sett|ng roxy

aptget update
sett|ng |pnya
plco /eLc/neLwork/lnLerfaces
lsl dengan
auLo lo
lface lo lneL loopback

auLo eLh0
lface eLh0 lneL sLaLlc
address 19216832
neLmask 2332332330
gaLeway 19216831

sett|ng dns
plco /eLc/resolvconf
Lambahkan dengan
nameserver 202134110
nameserver 2021340133
restart sett|ng |p
/eLc/lnlLd/neLworklng resLarL
aptget update

nd ]tmp
wget http://squid-proxy-pkg.googlecode.com/files/squid-2.7.STABLE8-
ubuntu-i386.tar.bz2
tar xvf squ|d27S1A8LL8ubuntu|386tarbz2
nd squ|d27S1A8LL8ubuntu|386
mkd|r ]etn]squ|d
nown kf proxyproxy ]etn]squ|d
cp config/* /etc/squid/
pico /etc/squid/squid.conf
cari tulisan visible_hostname www.hikma-teknologi.co.cc
ganti dengan
visible_hostname www.empatpilarweb.co.id
carl Lullsan url_whlLespace sLrlp
Lambahkan dl aLasnya dengan
acl lan src 19216810/24
acl hoLspoL src 103300/24
carl Lullsan #unS nAWALA
ubah dns_nameservers (dua barls LersebuL dengan)
dns_nameservers 202134110
dns_nameservers 2021340133
lngaL nomor dns dlaLas lLu unLuk wllayah Makassar unLuk daerah manado laln lagl
hapus barls dns_LesLnames 127001
carl barls
cache_dlr aufs /cachescasl2 32768 64 236 maxslze 63333
cache_dlr aufs /cachescasl3 32768 64 236 maxslze 63333
ganLl dengan
cache_dlr aufs /proxy1 8000 16 236
cache_dlr aufs /proxy2 8000 16 236
carl barls hLLp_access allow localneL
Lambahkan dl bawahanya dengan
hLLp_access allow lan
hLLp_access allow hoLspoL
carl barls hLLp_porL 3128 LransparenL
Lambahkan dl bawahanya dengan
server_hLLp11 on
CLr + x unLuk menylmpan lalau enLer

p|no ]etn]squ|d]tunn|ngubuntunonf
Papus darl barls pallng aLas dengan cara cLr + k sampal dengan
# 1 year 323600 mlns 1 monLh 43800 mlns
ganLl dengan
acl sLore_rewrlLe_llsL urlpaLh_regex /(geL_vldeo?|vldeodownload?|vldeoplayback*ld)
([p(e?g|e|2)|glf|png|Llff?|bmp|lco|flv)? /ads?
acl sLore_rewrlLe_llsL_web url_regex hLLp//(AZaz+09+)*AZaz*AZaz*
acl sLore_rewrlLe_llsL_paLh urlpaLh_regex ([p(e?g|e|2)|glf|png|Llff?|bmp|lco|flv)$

acl sLore_rewrlLe_llsL_web_Cun url_regex hLLp//az+09googlecom doublecllckneL
acl CuL8?2 urlpaLh_regex geL_vldeo? vldeoplayback? ([p(e?g|e|2)|glf|png|Llff?|bmp|lco|flv)?
cache allow CuL8?2
cache allow sLore_rewrlLe_llsL_web_Cun

acl CuL8? urlpaLh_regex cglbln ?
cache deny CuL8?

sLoreurl_access allow sLore_rewrlLe_llsL
#Lhls ls noL relaLed Lo youLube vldeo lLs only for Cun plcLures
sLoreurl_access allow sLore_rewrlLe_llsL_web_Cun
sLoreurl_access allow sLore_rewrlLe_llsL_web sLore_rewrlLe_llsL_paLh
sLoreurl_access deny all
#rewrlLe_program paLh ls base on wlndows so use use your own paLh
sLoreurl_rewrlLe_program /eLc/squld/sLoreurlubunLupl
sLoreurl_rewrlLe_chlldren 1
sLoreurl_rewrlLe_concurrency 10

cLr + x slmpan lalu enLer

nown kf proxyproxy ]proxy1
enLer
nown kf proxyproxy ]proxy2
enLer
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