[tanya-jawab] squid.conf: beda dstdom_regex dan url_regex ?

2009-03-17 Terurut Topik tukang ketik
dh regexer,

Di dalam settingan acl pada squid.conf ada option dstdom_regex dan
url_regex, keduanya kalau gak salah sama-sama mengarah ke
nama website, tapi gak tahu bedanya.

Apa bedanya dstdom_regex dengan url_regex ?

Saya biasanya pakai url_regex, kalau pakai dstdom_regex gak pernah
jalan, kenapa ya ???

Thx

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis



Re: [tanya-jawab] squid.conf: beda dstdom_regex dan url_regex ?

2009-03-17 Terurut Topik avudz
2009/3/17 tukang ketik doeniam...@gmail.com

 dh regexer,


+++ halah, regexer ?

 Di dalam settingan acl pada squid.conf ada option dstdom_regex dan
 url_regex, keduanya kalau gak salah sama-sama mengarah ke
 nama website, tapi gak tahu bedanya.

 Apa bedanya dstdom_regex dengan url_regex ?


+++ mis nama website : http://linux.or.id/download/02/2009

- url_regex akan mencocokkan seluruh url
- dstdom_regex cuma mengenal linux.or.id
ada juga di squid urlpath_regex :
- urlpath_regex akan membaca dari /download/02/2009

 Saya biasanya pakai url_regex, kalau pakai dstdom_regex gak pernah
 jalan, kenapa ya ???


+++ baiknya disertakan dengan konfigurasi, tanya kenapaa ??

--
blog http://avudz.cc | aceh mac lover http://macclub.alifia.co.id |
kerjaan http://alifia.co.id
trainig Linux : http://www.alifia.co.id/pages/news/linux-essential-training.php

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis



Re: [tanya-jawab] squid.conf: beda dstdom_regex dan url_regex ?

2009-03-17 Terurut Topik tukang ketik
2009/3/17 avudz avud...@gmail.com:
 2009/3/17 tukang ketik doeniam...@gmail.com

 dh regexer,


 +++ halah, regexer ?

 Di dalam settingan acl pada squid.conf ada option dstdom_regex dan
 url_regex, keduanya kalau gak salah sama-sama mengarah ke
 nama website, tapi gak tahu bedanya.

 Apa bedanya dstdom_regex dengan url_regex ?


 +++ mis nama website : http://linux.or.id/download/02/2009

 - url_regex akan mencocokkan seluruh url
 - dstdom_regex cuma mengenal linux.or.id
 ada juga di squid urlpath_regex :
 - urlpath_regex akan membaca dari /download/02/2009

 Saya biasanya pakai url_regex, kalau pakai dstdom_regex gak pernah
 jalan, kenapa ya ???


 +++ baiknya disertakan dengan konfigurasi, tanya kenapaa ??

 --
Oo... begitu ya..., pantesan dstdom_regex gak jalan karena
di file.txt nya memang hanya tertulis (xxx, porn, adult, lalatx, dst)
makanya di abaikan. OK deh ntar aku coba lagi.

Makasih tuan avudz., anda benar-benar regexer :-)
wek kek kek kek

Thx.

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis



Re: [tanya-jawab] squid.conf: beda dstdom_regex dan url_regex ?

2009-03-17 Terurut Topik avudz
2009/3/18 tukang ketik doeniam...@gmail.com:

 Oo... begitu ya..., pantesan dstdom_regex gak jalan karena
 di file.txt nya memang hanya tertulis (xxx, porn, adult, lalatx, dst)
 makanya di abaikan. OK deh ntar aku coba lagi.

 Makasih tuan avudz., anda benar-benar regexer :-)
 wek kek kek kek


+++ sama-sama pak, pengetahuan regex saya juga ga seberapa
dibandingkan ama pak Ronny  yang lainnya di milis ini, yang regex
squid itu saya bisa jawab karena ada baca manual squid.conf.default
aja :-) coba baca manualnya, pasti bisa :-)

Salam,

./avd

-- 
blog http://avudz.cc | aceh mac lover http://macclub.alifia.co.id |
kerjaan http://alifia.co.id

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis



[tanya-jawab] squid.conf

2008-06-15 Terurut Topik ░▒▓ Mirza Khadnezar ▓▒░
http_port 2210 transparent
icp_port 3130
snmp_port 3401
cache_mgr admin

#cache_peer ip.sumber.squid parent 3128 3130 proxy-only
#cache_peer ip.yang.numpang sibling 3128 3130 proxy-only
#cache_peer 192.168.1.253 sibling 2210 3130 proxy-only

cache_replacement_policy heap LFUDA
maximum_object_size_in_memory 50 KB
maximum_object_size 50 MB
#minimum_object_size 1 KB

dead_peer_timeout 10 seconds
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
visible_hostname amyhost.com
cache_mem 5 MB
memory_pools off
log_icp_queries on
buffered_logs on
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95

cache_swap_low 70%
cache_swap_high 90%

#cache_dir aufs /var/spool/squid 4 16 256
cache_dir aufs /var/spool/squid 4000 16 256
#cache_dir diskd /var/spool/squid 4800 8 64 max-size=-1 Q1=64 Q2=72

cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid

forwarded_for on
half_closed_clients off
cache_effective_user proxy
cache_effective_group proxy
cache_mgr [EMAIL PROTECTED]

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl website dstdomain /etc/website
acl gator dstdomain .gator.com
acl gohip dstdomain .gohip.com
acl kazaa dstdomain .kazaa.com
acl real dstdomain .real.com
acl pornsite url_regex 220.73.222.254
acl LAN src 192.168.1.0/255.255.255.0
acl LAN2 src 172.16.16.0/255.255.255.0
acl NOC src 192.168.1.0/255.255.255.0
acl snmpcommunity snmp_community nama_snmpcommunity
acl all src 0.0.0.0/0.0.0.0
#acl IIX dst_as 7597
#always_direct allow IIX
acl manager proto cache_object
acl localhost src 127.0.0.1
acl SSL_ports port 443 563
acl Safe_ports port 21 80 81 53 110 143 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

#header_access User-Agent deny all
#header_replace User-Agent Mozilla/5.0 (X11; U; Linux 2.6.8 DEC Alpha)

acl acceleratedHost dst 172.16.16.0/255.255.255.0
acl acceleratedPort port 2210
#httpd_accel_single_host off

http_access deny website
http_access deny gator
http_access deny gohip
http_access deny real
http_access deny kazaa

http_access allow LAN
http_access allow LAN2
http_access allow NOC
http_access allow localhost
http_access allow acceleratedHost
http_access deny all
snmp_access deny all

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
cachemgr_passwd nasigoreng manager
negative_ttl 1 minutes
===
apakah squid diatas bisa macet2 ?
dan kalau iya dimana ya salah nya ?


--
-=-=-=-=

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis



Re: [tanya-jawab] squid.conf

2008-06-15 Terurut Topik artanto, bayu
On Sun, Jun 15, 2008 at 4:21 PM, ░▒▓ Mirza Khadnezar ▓▒░
[EMAIL PROTECTED] wrote:
 http_port 2210 transparent
 icp_port 3130
 snmp_port 3401
 cache_mgr admin

 #cache_peer ip.sumber.squid parent 3128 3130 proxy-only
 #cache_peer ip.yang.numpang sibling 3128 3130 proxy-only
 #cache_peer 192.168.1.253 sibling 2210 3130 proxy-only

 cache_replacement_policy heap LFUDA
 maximum_object_size_in_memory 50 KB
 maximum_object_size 50 MB
 #minimum_object_size 1 KB

 dead_peer_timeout 10 seconds
 acl QUERY urlpath_regex cgi-bin \?
 no_cache deny QUERY
 visible_hostname amyhost.com
 cache_mem 5 MB
 memory_pools off
 log_icp_queries on
 buffered_logs on
 quick_abort_min 0 KB
 quick_abort_max 0 KB
 quick_abort_pct 95

 cache_swap_low 70%
 cache_swap_high 90%

 #cache_dir aufs /var/spool/squid 4 16 256
 cache_dir aufs /var/spool/squid 4000 16 256
 #cache_dir diskd /var/spool/squid 4800 8 64 max-size=-1 Q1=64 Q2=72

 cache_access_log /var/log/squid/access.log
 cache_log /var/log/squid/cache.log
 cache_store_log /var/log/squid/store.log
 pid_filename /var/run/squid.pid

 forwarded_for on
 half_closed_clients off
 cache_effective_user proxy
 cache_effective_group proxy
 cache_mgr [EMAIL PROTECTED]

 refresh_pattern ^ftp: 1440 20% 10080
 refresh_pattern ^gopher: 1440 0% 1440
 refresh_pattern . 0 20% 4320

 acl website dstdomain /etc/website
 acl gator dstdomain .gator.com
 acl gohip dstdomain .gohip.com
 acl kazaa dstdomain .kazaa.com
 acl real dstdomain .real.com
 acl pornsite url_regex 220.73.222.254
 acl LAN src 192.168.1.0/255.255.255.0
 acl LAN2 src 172.16.16.0/255.255.255.0
 acl NOC src 192.168.1.0/255.255.255.0
 acl snmpcommunity snmp_community nama_snmpcommunity
 acl all src 0.0.0.0/0.0.0.0
 #acl IIX dst_as 7597
 #always_direct allow IIX
 acl manager proto cache_object
 acl localhost src 127.0.0.1
 acl SSL_ports port 443 563
 acl Safe_ports port 21 80 81 53 110 143 443 563 70 210 1025-65535
 acl Safe_ports port 280
 acl Safe_ports port 488
 acl Safe_ports port 591
 acl Safe_ports port 777
 acl CONNECT method CONNECT

 #header_access User-Agent deny all
 #header_replace User-Agent Mozilla/5.0 (X11; U; Linux 2.6.8 DEC Alpha)

 acl acceleratedHost dst 172.16.16.0/255.255.255.0
 acl acceleratedPort port 2210
 #httpd_accel_single_host off

 http_access deny website
 http_access deny gator
 http_access deny gohip
 http_access deny real
 http_access deny kazaa

 http_access allow LAN
 http_access allow LAN2
 http_access allow NOC
 http_access allow localhost
 http_access allow acceleratedHost
 http_access deny all
 snmp_access deny all

 httpd_accel_host virtual
 httpd_accel_port 80
 httpd_accel_with_proxy on
 httpd_accel_uses_host_header on
 cachemgr_passwd nasigoreng manager
 negative_ttl 1 minutes
 ===
 apakah squid diatas bisa macet2 ?
 dan kalau iya dimana ya salah nya ?


bukan hanya macet², ini jelas macet
btw ini versi berapa ?
liat bagian  transparentnya

-- 

-
bayu - mandriva - other Linux at http://bayuart.wordpress.com


Re: [tanya-jawab] squid.conf

2008-06-15 Terurut Topik ░▒▓ Mirza Khadnezar ▓▒░
2008/6/15 artanto, bayu [EMAIL PROTECTED]:


 bukan hanya macet², ini jelas macet
 btw ini versi berapa ?
 liat bagian  transparentnya

 --

 -
 bayu - mandriva - other Linux at http://bayuart.wordpress.com


2.7
ada apa yah ?
dimana salah nya ?

-- 
-=-=-=-=

--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis



[tanya-jawab] squid.conf

2005-09-23 Terurut Topik Mirza Khadnezar
maap bukan maksud apa2
http://202.155.70.242/~mirza/monyet/
dengan catatan :
eth 1 = gateway client
eth 2 = ke router adsl
ISPROUTERETH2=ETH1Client

squid.conf nya kurang manteb kayaknya
ada saran confignya ?
spek PC :
Celeron 1 gig
HDD space nganggur 1 giga-an lah
RAM SDRAM 256

client sekitar 25 pc an

---
makasih atas bantuannya
.
konon katanya untuk setting squid harus trial error di lokasi TKP
nah trial error nya yang di edit angka mana nya ?
mohon penjabarannya :)

--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis



Re: [tanya-jawab] squid.conf

2005-09-23 Terurut Topik bayu
 maap bukan maksud apa2
 http://202.155.70.242/~mirza/monyet/
 dengan catatan :
 eth 1 = gateway client
 eth 2 = ke router adsl
 ISPROUTERETH2=ETH1Client

 squid.conf nya kurang manteb kayaknya
 ada saran confignya ?
 spek PC :
 Celeron 1 gig
 HDD space nganggur 1 giga-an lah
 RAM SDRAM 256

 client sekitar 25 pc an

 ---
 makasih atas bantuannya
 .
 konon katanya untuk setting squid harus trial error di lokasi TKP
 nah trial error nya yang di edit angka mana nya ?
 mohon penjabarannya :)

di forum.linux.or.id bagian squid server ada referensinya
sepertinya squid.conf anda udah oke
bisa juga di tambahin sibling (jangan parent) dari ircache.net

-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis



Re: [tanya-jawab] squid.conf

2005-09-09 Terurut Topik M.S. Lubis
Maksud nya mau diapain?

On 9/8/05, Mirza Khadnezar [EMAIL PROTECTED] wrote:
 berikut squid.conf saya
 ada yng kurang ?
 atau perlu di rubah supaya optimal ?
 [EMAIL PROTECTED]:/home/mirza/public_html]# cat /proc/meminfo
 MemTotal:   256132 kB
 MemFree: 70776 kB
 Linux Version 2.6.9-1.667, Compiled #1 Tue Nov 2 14:41:25 EST 2004
One 2GHz Intel Celeron Processor, 256M RAM, 3923,00 Bogomips Total
 [EMAIL PROTECTED]:/home/mirza]# df -h
 FilesystemSize  Used Avail Use% Mounted on
 /dev/mapper/MynetDisk01-chroot
25G  2,1G   21G   9% /
 /dev/hda1  99M  8,9M   85M  10% /boot
 none  126M 0  126M   0% /dev/shm
 /dev/mapper/MynetDisk01-MynetUser
49G  179M   46G   1% /home
 -
 
 #squid.conf
 #Every option in this file is very well documented in the original
 squid.conf file
 #and on http://www.visolve.com/squidman/Configuration%20Guide.html
 
 #
 #The ports our Squid will listen on.
 http_port 2705

suka experiment ya :-))

-- 
regards,
M.S. Lubis.

--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis



Re: [tanya-jawab] squid.conf

2005-09-09 Terurut Topik Mirza Khadnezar
y
orang ga tau squid.conf

gimana setting supaya optimal ??
data pc dan squid.conf udah di kasih di email pertam

On 9/9/05, M.S. Lubis [EMAIL PROTECTED] wrote:
 Maksud nya mau diapain?
 
 On 9/8/05, Mirza Khadnezar [EMAIL PROTECTED] wrote:
  berikut squid.conf saya
  ada yng kurang ?
  atau perlu di rubah supaya optimal ?
  [EMAIL PROTECTED]:/home/mirza/public_html]# cat /proc/meminfo
  MemTotal:   256132 kB
  MemFree: 70776 kB
  Linux Version 2.6.9-1.667, Compiled #1 Tue Nov 2 14:41:25 EST 2004
 One 2GHz Intel Celeron Processor, 256M RAM, 3923,00 Bogomips Total
  [EMAIL PROTECTED]:/home/mirza]# df -h
  FilesystemSize  Used Avail Use% Mounted on
  /dev/mapper/MynetDisk01-chroot
 25G  2,1G   21G   9% /
  /dev/hda1  99M  8,9M   85M  10% /boot
  none  126M 0  126M   0% /dev/shm
  /dev/mapper/MynetDisk01-MynetUser
 49G  179M   46G   1% /home
  -
 
  #squid.conf
  #Every option in this file is very well documented in the original
  squid.conf file
  #and on http://www.visolve.com/squidman/Configuration%20Guide.html
 
  #
  #The ports our Squid will listen on.
  http_port 2705
 
 suka experiment ya :-))
 
 --
 regards,
 M.S. Lubis.
 
 --
 Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
 Arsip, FAQ, dan info milis di http://linux.or.id/milis
 Tidak bisa posting? Baca:
 http://linux.or.id/problemmilis
 http://linux.or.id/tatatertibmilis
 


--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis



[tanya-jawab] squid.conf

2005-09-08 Terurut Topik Mirza Khadnezar
berikut squid.conf saya
ada yng kurang ?
atau perlu di rubah supaya optimal ?
[EMAIL PROTECTED]:/home/mirza/public_html]# cat /proc/meminfo
MemTotal:   256132 kB
MemFree: 70776 kB
Linux Version 2.6.9-1.667, Compiled #1 Tue Nov 2 14:41:25 EST 2004
   One 2GHz Intel Celeron Processor, 256M RAM, 3923,00 Bogomips Total
[EMAIL PROTECTED]:/home/mirza]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/MynetDisk01-chroot
   25G  2,1G   21G   9% /
/dev/hda1  99M  8,9M   85M  10% /boot
none  126M 0  126M   0% /dev/shm
/dev/mapper/MynetDisk01-MynetUser
   49G  179M   46G   1% /home
-

#squid.conf
#Every option in this file is very well documented in the original
squid.conf file
#and on http://www.visolve.com/squidman/Configuration%20Guide.html

#
#The ports our Squid will listen on.
http_port 2705
icp_port 3130
#cgi-bins will not be cached.
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#Memory the Squid will use. Well, Squid will use far more than that.

#cache_mem adalah 1/3 dari free memory /proc/meminfo
cache_mem 36 MB

#250 means that Squid will use 250 megabytes of disk space.
#cache_dir diskd /cache 11000 26 256 
#cache_dir ufs /cache 250 16 256
cache_dir diskd /var/spool/squid 11500 16 256


#Places where Squid's logs will go to.
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
#How many times to rotate the logs before deleting them.
#See the FAQ for more info.
logfile_rotate 10

redirect_rewrites_host_header off
cache_replacement_policy GDSF
acl localnet src 192.168.2.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
#acl Safe_port port 80 443 210 119
acl Safe_ports port 80 443 210 119 70 20 21 1025-65535
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
http_access allow localnet
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
maximum_object_size 3000 KB
store_avg_object_size 50 KB

#Set these if you want your proxy to work in a transparent way.
#Transparent proxy means you generally don't have to configure all
#your client's browsers, but hase some drawbacks too.
#Leaving these uncommented won't do any harm.
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

#all our LAN users will be seen by external web servers
#as if they all used Mozilla on Linux. :)
#anonymize_headers deny User-Agent
#fake_user_agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+)
Gecko/20011122

#To make our connection even faster, we put two lines similar
#to the ones below. They will point a parent proxy server our own Squid
#will use. Don't forget to change the server to the one that will
#be fastest for you!
#Measure pings, traceroutes and so on.
#Make sure that http and icp ports are correct.

#Uncomment lines beginning with cache_peer if necessary.
#This is the proxy you are going to use for all connections...
#cache_peer w3cache.icm.edu.pl parent 8080 3130 no-digest default

#...except for the connections to addresses and IPs beginning with !.
#It's a good idea not to use a higher 
#cache_peer_domain w3cache.icm.edu.pl !.pl !7thguard.net !192.168.1.1

#This is useful when we want to use the Cache Manager.
#Copy cachemgr.cgi to cgi-bin of your www server.
#You can reach it then via a web browser typing
#the address http://your-web-server/cgi-bin/cachemgr.cgi
cache_mgr [EMAIL PROTECTED]
cachemgr_passwd secret_password all

#This is a name of a user our Squid will work as.
cache_effective_user squid
cache_effective_group squid

log_icp_queries off
buffered_logs on


#DELAY POOLS
#This is the most important part for shaping incoming traffic with Squid
#For detailed description see squid.conf file or docs at
http://www.squid-cache.org

#We don't want to limit downloads on our local network.
acl magic_words1 url_regex -i 192.168

#We want to limit downloads of these type of files
#Put this all in one line
acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip
.rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .3gp
#We don't block .html, .gif, .jpg and similar files, because they
#generally don't consume much bandwidth

#We want to limit bandwidth during the day, and allow
#full bandwidth during the night
#Caution! with the acl below your downloads are likely to break
#at 23:59. Read the FAQ in this bandwidth if you want to avoid it.
acl day time 09:00-23:59

#We have two different delay_pools
#View Squid documentation to get familiar
#with delay_pools and delay_class.
delay_pools 2

#First delay pool
#We don't want to delay our local traffic.
#There are three pool classes; here we will deal only with the second.
#First delay class (1) of second type (2).
delay_class 1 2

#-1/-1 mean that there are no limits.
delay_parameters 1 -1/-1 

[tanya-jawab] squid.conf yg bikin pusing kepala

2004-05-24 Terurut Topik Arief Yudhawarman

Hai milisers,

Linux Redhat 7.3, Squid Cache: Version 2.4.STABLE6.
Sudah isi parent cache kok squidnya ndak pernah query ke
parent proxy rupanya ada sedikit bug yg menyebabkan terjadi
misinterpretasi:

Isi squid.conf, squid version 2.4.stable6 bawaannya redhat 7.3.

#  TAG: prefer_direct
#   Normally Squid tries to use parents for most requests. If you by some
#   reason like it to first try going direct and only use a parent if
#   going direct fails then set this to off.
^^^

Kalau dibaca secara logika, memang aneh kan prefer_direct diset off
kalau squidnya mau going direct.

Bug ini sudah tidak ada di squid versi 2.5.STABLE4

  TAG: prefer_direct
#   Normally Squid tries to use parents for most requests. If you by some
#   reason like it to first try going direct and only use a parent if
#   going direct fails then set this to on.
#

Isi squid.conf sekarang (masih pakai squid 2.4.stable6):

cache_peer 202.134.0.135 parent 8080 3130 connect-timeout=60 no-delay
no-query no-digest no-netdb-exchange round-robin

cache_peer 202.134.1.5 parent 8080 3130 connect-timeout=60 no-delay
no-query no-digest no-netdb-exchange round-robin

cache_peer_domain 202.134.0.135 !.mylan.com
cache_peer_domain 202.134.1.5 !.mylan.com

nonhierarchical_direct on
prefer_direct off

Selama ini parentnya masih hidup. Dan squid telah sukses query
cache object langsung ke parent. Saya belum tahu keadaannya bagaimana,
jika kedua parent proxy di atas mati:
 1. squid mendetek parent mati dan langsung going direct.
 2. squid mendetek parent mati dan tidak mau going direct.

Kira-kira menurut rekan-rekan skenario mana yg akan terjadi nanti ?

TIA

~yudi




-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php



Re: [tanya-jawab] squid.conf yg bikin pusing kepala

2004-05-24 Terurut Topik Andika Triwidada
On Mon, 24 May 2004 16:32:32 +0700, Arief Yudhawarman
[EMAIL PROTECTED] wrote:
 
 
 cache_peer 202.134.0.135 parent 8080 3130 connect-timeout=60 no-delay
 no-query no-digest no-netdb-exchange round-robin
 
 cache_peer 202.134.1.5 parent 8080 3130 connect-timeout=60 no-delay
 no-query no-digest no-netdb-exchange round-robin
 
 cache_peer_domain 202.134.0.135 !.mylan.com
 cache_peer_domain 202.134.1.5 !.mylan.com
 
 nonhierarchical_direct on
 prefer_direct off
 
 Selama ini parentnya masih hidup. Dan squid telah sukses query
 cache object langsung ke parent. Saya belum tahu keadaannya bagaimana,
 jika kedua parent proxy di atas mati:

Coba sendiri saja, dengan menambah rule di firewall secara dinamis, misalnya:

iptables -I OUTPUT -d 202.134.1.5 -j DROP
iptables -I OUTPUT -d 202.134.0.135 -j DROP

lalu diamati log squidnya.

-- andika

-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php