Forum dan Chating untuk Pengguna Ubuntu di Indonesia Forum dan Chating untuk Pengguna Ubuntu di Indonesia
Siapa yang Online
15 terdaftar (bledhoz, chiki, deny26, IntegerManual, jack1989, lisnux, LiveCurious, pinguindo, saepol, satriya_mujung, sipelaut, Sudoers, thrvers, tukang_komputer, zeus), 140 Tamu dan 11 Laba-Laba online.
Pengguna Terbaru
LiveCurious, XaHa, andy93, cakwe_oke, johansakra
16789 Pengguna Terdaftar
Posting Terbanyak
thrvers 3652
aptfast 3606
deny26 2435
ninja 2038
Sudoers 1847
blackshirt 1795
lisnux 1779
yogieza 1779
zarkasichan 1544
Nexus 1430
Pengguna Hari Ini

cuplis
Terdaftar: 26 Jan 12
Pesan: 14
Statistik Forum
16789 Pengguna
16 Forum
9415 Topik
90543 Pesan
Max Online: 441 @10 Jan 12 16:03
MediaWiki FUI
Mediawiki FUI
UbuntuGeek
Open Source Indonesia
Daftar Link2 Penting Open Source Indonesia
BlogLog Ubuntu Indonesia
BlogLog: Ringkasan Blog-Blog Ubuntu dalam Bahasa Indonesia
Halaman 3 dari 4 < 1 2 3 4 >
Opsi Topik
Menilai Topik Ini
#35535 - 29 Aug 10 15:11 Re: Help....squid Koe lemot ***** [Re: MasDjo]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
sory om soalnya udah nga ada yang replay jadi bikin trit baru lagi ????

Top
#35538 - 29 Aug 10 15:32 Re: Help....squid Koe lemot [Re: sabar]
zitux Offline
Warga

Terdaftar: 16 Jan 10
Pesan: 866
Lokasi: Malang Jatim Indonesia
pake acara



dan




mending dari pada dotrit grin
mas sabar masih kurang sabar kykna ini grin peace.... grin


diEdit oleh zitux (29 Aug 10 15:33)
_________________________
Jumlah postingan ku makin banyak grin
coz banyak bertanya ndak pernah pinter2 laugh

Top
#35549 - 29 Aug 10 16:24 Re: Help....squid Koe lemot [Re: zitux]
MasDjo Moderator Offline
Warga

Terdaftar: 03 Jan 10
Pesan: 1205
Lokasi: Bayuangga City
Saya pake mesin Pentium 3 733 dg RAM 320 MB HDD 20 GB ATA, Ubuntu server 9.04 + Squid 2.7 Stable 9 ( compile sendiri )
Dengan konfigurasi hasil copas sana-sini ( grin ) yg penting jalan hehehe, sbb :
SQUID.CONF :
Klik untuk menampilkan...
Code:
http_port 3128 transparent
server_http11 on
hierarchy_stoplist cgi-bin ? .js .jsp
acl QUERY urlpath_regex cgi-bin \? .js .jsp
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 64 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 512 bytes
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /proxy1 12000 28 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
dns_nameservers /etc/resolv.conf
cache_swap_log /var/log/squid/swap.state
emulate_httpd_log on
hosts_file /etc/hosts
negative_ttl 1 minutes
half_closed_clients off

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563              # https, snews
acl SSL_ports port 873                  # rsync
acl SSL_ports port 10000                # webmin
acl Safe_ports port 80                  # http
acl Safe_ports port 21                  # ftp
acl Safe_ports port 443 563             # https, snews
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                 # filemaker
acl Safe_ports port 777                 # multiling http
acl Safe_ports port 631                 # cups
acl Safe_ports port 873                 # rsync
acl Safe_ports port 901                 # SWAT
acl Safe_ports port 110                 # evolution
acl Safe_ports port 25                  # evolution
acl Safe_ports port 995                 # thunderbird
acl Safe_ports port 587                 # thunderbird
acl Safe_ports port 10000               # webmin
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports

#################################################################
# Refresh Pattern
##################################################################
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern ^http:          720     90%     86400
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|mpg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(deb|rpm|exe|ram|bin|pdf|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh|tar|tgz|cab|rar)$ 10080 95% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js|php|asp|aspx|cgi) 1440 40% 40320
refresh_pattern .               0       20%     4320


##############################
# SNMP
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all

acl punyaku-net src 192.168.0.0/24  ## Sesuaikan
http_access allow punyaku-net
http_access deny all
http_reply_access allow all
icp_access deny all
always_direct deny all

acl lokalku dst 192.168.0.0/24
cache deny lokalku
cache_mgr djksrs@gmail.com
visible_hostname bluesky-net.co.cc
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14

###Marking ZPH ----> Bandwidth Managemen
zph_mode tos
zph_local 0x04
#zph_local 0x10
zph_parent 0
zph_option 136

####Redirect program / filter porno ---> SquidQuard
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf


Cek dg : squidclient mgr:info
Klik untuk menampilkan...
Code:
HTTP/1.0 200 OK
Server: squid/2.7.STABLE9
Date: Sun, 29 Aug 2010 08:16:39 GMT
Content-Type: text/plain
Expires: Sun, 29 Aug 2010 08:16:39 GMT
X-Cache: MISS from bluesky-net.co.cc
X-Cache-Lookup: MISS from bluesky-net.co.cc:3128
Via: 1.0 bluesky-net.co.cc:3128 (squid/2.7.STABLE9)
Connection: close

Squid Object Cache: Version 2.7.STABLE9
Start Time:	Sun, 29 Aug 2010 01:34:51 GMT
Current Time:	Sun, 29 Aug 2010 08:16:39 GMT
Connection information for squid:
	Number of clients accessing cache:	8
	Number of HTTP requests received:	38572
	Number of ICP messages received:	0
	Number of ICP messages sent:	0
	Number of queued ICP replies:	0
	Number of HTCP messages received:	0
	Number of HTCP messages sent:	0
	Request failure ratio:	 0.00
	Average HTTP requests per minute since start:	96.0
	Average ICP messages per minute since start:	0.0
	Select loop called: 602670 times, 40.002 ms avg
Cache information for squid:
	Request Hit Ratios:	5min: 23.8%, 60min: 32.1%
	Byte Hit Ratios:	5min: 24.1%, 60min: 40.7%
	Request Memory Hit Ratios:	5min: 11.4%, 60min: 7.3%
	Request Disk Hit Ratios:	5min: 85.7%, 60min: 72.5%
	Storage Swap size:	2815776 KB
	Storage Mem size:	8148 KB
	Mean Object Size:	15.25 KB
	Requests given to unlinkd:	0
Median Service Times (seconds)  5 min    60 min:
	HTTP Requests (All):   0.20843  0.22004
	Cache Misses:          0.28853  0.37825
	Cache Hits:            0.00405  0.01309
	Near Hits:             0.00000  0.52331
	Not-Modified Replies:  0.00000  0.00865
	DNS Lookups:           0.03868  0.01852
	ICP Queries:           0.00000  0.00000
Resource usage for squid:
	UP Time:	24108.112 seconds
	CPU Time:	1226.380 seconds
	CPU Usage:	5.09%
	CPU Usage, 5 minute avg:	1.25%
	CPU Usage, 60 minute avg:	1.27%
	Process Data Segment Size via sbrk(): 33664 KB
	Maximum Resident Size: 0 KB
	Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
	Total space in arena:   33664 KB
	Ordinary blocks:        33445 KB   2179 blks
	Small blocks:               0 KB      0 blks
	Holding blocks:          3540 KB      3 blks
	Free Small blocks:          0 KB
	Free Ordinary blocks:     218 KB
	Total in use:           36985 KB 99%
	Total free:               218 KB 1%
	Total size:             37204 KB
Memory accounted for:
	Total accounted:        24038 KB
	memPoolAlloc calls: 6683548
	memPoolFree calls: 6269548
File descriptor usage for squid:
	Maximum number of file descriptors:   8192
	Largest file desc currently in use:     83
	Number of file desc currently in use:   67
	Files queued for open:                   0
	Available number of file descriptors: 8125
	Reserved number of file descriptors:   100
	Store Disk files open:                   4
	IO loop method:                     epoll
Internal Data Structures:
	184681 StoreEntries
	  1972 StoreEntries with MemObjects
	  1967 Hot Object Cache Items
	184582 on-disk objects


Jangan malu copas, yg penting bisa, tapi harus disesuaikan dikit dg kondisi kita grin

Top
#35580 - 29 Aug 10 20:45 Re: Help....squid Koe lemot [Re: MasDjo]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
@Zitux : sabar kan cmn sampai huru R hehehehe

kalau bgini :
Cache information for squid:
Request Hit Ratios: 5min: 65.4%, 60min: 62.5%
Byte Hit Ratios: 5min: 67.0%, 60min: 65.1%
Request Memory Hit Ratios: 5min: 0.2%, 60min: 0.1%
Request Disk Hit Ratios: 5min: 95.7%, 60min: 95.1%
Storage Swap size: 64868 KB
Storage Mem size: 768 KB
Mean Object Size: 18.49 KB
Requests given to unlinkd: 0

udah maksimal ngak tp kalau di cek pake tail-f masih banyak yang miss, trus cek whatismyip koq squidnya nga kliatan

mari saling berbagi di bulan suci ini ;-)



diEdit oleh sabar (29 Aug 10 20:49)

Top
#35588 - 29 Aug 10 21:54 Re: Help....squid Koe lemot [Re: sabar]
MasDjo Moderator Offline
Warga

Terdaftar: 03 Jan 10
Pesan: 1205
Lokasi: Bayuangga City
@sabar : kayaknya sudah top markotop tuh ...hehehe laugh
Mungkin yg miss tsb memang obyek yg tidak di-cache oleh squid jadi selalu diarahkan langsung ke internet.... CMIIW
Kalo saya sih berpedoman dari hasil : squidclient mgr:info

Mana nih para mastah squid, tolong diberi penjelasan biar lebih manstab grin

Top
#35593 - 29 Aug 10 22:29 Re: Help....squid Koe lemot [Re: MasDjo]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
kalau masalah cek whatismyip koq squidnya tidak kliatan beda settingan pertamnya squidnya kliatan ????? frown

Top
#35599 - 29 Aug 10 23:09 Re: Help....squid Koe lemot [Re: MasDjo]
zitux Offline
Warga

Terdaftar: 16 Jan 10
Pesan: 866
Lokasi: Malang Jatim Indonesia
sependapat dgn masdjo klo hit semua pasti kuenceng banget tp kan lokal semua grin gak " internetan" dunk nama nya klo brosing dari server saja
ntar ada pertanyaan dari pelanggan "mas facebook ku kok gak ganti2 gambare " laugh
nambahi untuk squid squid disini klo saya pribadi Hardware sangat server berpengaruh bukan berarti harga mahal lho
dah banyak kok mas yg bahas squid disini grin
@masdjo speddy nya sudah pake paket biz ya ip nya kok berubah ?


diEdit oleh zitux (29 Aug 10 23:11)
_________________________
Jumlah postingan ku makin banyak grin
coz banyak bertanya ndak pernah pinter2 laugh

Top
#35608 - 29 Aug 10 23:54 Re: Help....squid Koe lemot [Re: zitux]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
@zitux : benar juga kalau semuia hit tidak usah internetan
jadi malu, maklum baru belajar ten_q for ALL atas bantuannya

Top
#35640 - 30 Aug 10 10:50 Re: Help....squid Koe lemot [Re: sabar]
MasDjo Moderator Offline
Warga

Terdaftar: 03 Jan 10
Pesan: 1205
Lokasi: Bayuangga City
@zitux : saya pake spedy yg jam-jaman makanya ip nya belum dikasih yg fixed .... grin
maklum....warnet ecek-ecek blush blush

Top
#35643 - 30 Aug 10 11:01 Re: Help....squid Koe lemot [Re: MasDjo]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
pagi all

mau nanya lagi nich
rencana mau nambah hardisk di squidku trus cara nambahinnya bgimana yach maklum baru belajar Ubuntu terbiasa dengan win**
tolong step by stepnya

Top
#35684 - 30 Aug 10 18:49 Re: Help....squid Koe lemot [Re: sabar]
zitux Offline
Warga

Terdaftar: 16 Jan 10
Pesan: 866
Lokasi: Malang Jatim Indonesia
@masdjo lagi cari2 info detek ip soale disini mentok paket game saja gak bisa milih yg aneh2 frown
dan ngapain bayar mahal klo yg murah masih mumpuni grin

@ mas sabar coba ya
tp cara ini belum pernah aq coba cuma secara logika saja
mohon dikoreksi ya

A.PARTISI untuk nubie

1.pasang HDD baru ke server
2.masukkan live CD Ubuntu desktop
3.partisi dgn gparted HDD baru td


B: buat mount otomatis under CLI
Kutip: Sudoers


Pertama buat direktori mount pointnya dolo.
Misalnya neh aq punya partisi space 40GB..
# mkdir /media/disk40
Atur permission..
# chgrp plugdev /media/disk40
# chmod 777 /media/disk40
# chmod +t /media/disk40

Nah tambahkan baris dibawah ini di /etc/fstab
/dev/sdb7 /media/disk40 ext3 defaults 0 2
ato klo file systemnya pake jenis lain ganti aja tuh ext3, asumsi saya sda7 adalah partisi 40gb make ext3

Save and exit! Abis itu testing..
# mount -a
Klo berhasil harusnya dengan perintah df -h keliatan ada baris /dev/sda7 yg termount di /media/disk40 klo gagal ngak ada coba lagi.

Klo berhasil sampai tahap ini restart komputernya harusnya uda termount otomatis tuh.


C.arahkan cache squid ke HDD baru

1.edit squid.conf
2.cari cache dir <--sesuaikan dgn letak mount point hdd baru
3.squid -k parse << untuk liat error / kesalahan squid.conf
4.squid -z

reboot dan testing smile




diEdit oleh zitux (30 Aug 10 18:59)
_________________________
Jumlah postingan ku makin banyak grin
coz banyak bertanya ndak pernah pinter2 laugh

Top
#35687 - 30 Aug 10 18:56 Re: Help....squid Koe lemot [Re: zitux]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
@zitux : Langsung Praktek kalau ada hambatan aku ke mari lagi yach smile

Top
#35713 - 30 Aug 10 22:13 Re: Help....squid Koe lemot [Re: sabar]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
KK udah coba seperti langkah diatas :
pas login Ubuntu : media/disk40 is not ready yet or not present

root@khaira:~# mount -a
mount: special device /dev/sdb7 does not exist

root@khaira:~# fdisk -l

Disk /dev/sda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001c8f9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4730 37989376 83 Linux
/dev/sda2 4730 4865 1086465 5 Extended
/dev/sda5 4730 4865 1086464 82 Linux swap / Solaris

Disk /dev/sdb: 40.1 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000498b8

Device Boot Start End Blocks Id System
/dev/sdb1 1 4870 39118243+ 83 Linux


maksunya apa ?????


diEdit oleh sabar (30 Aug 10 22:14)

Top
#35717 - 30 Aug 10 22:29 Re: Help....squid Koe lemot [Re: sabar]
zitux Offline
Warga

Terdaftar: 16 Jan 10
Pesan: 866
Lokasi: Malang Jatim Indonesia
disk40 << disesuaikan dgn label partisi yg dibuat td
sdb7 << disesuaikan dgn dimana letak partisi td berada di sd berapa ?
klo liat fdiks nya spt nya sdb1 adalah partisi chace nya ??
_________________________
Jumlah postingan ku makin banyak grin
coz banyak bertanya ndak pernah pinter2 laugh

Top
#35718 - 30 Aug 10 22:31 Re: Help....squid Koe lemot [Re: zitux]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
wah replaynya kilat hehehe langsung praktik

Top
#35749 - 31 Aug 10 00:24 Re: Help....squid Koe lemot [Re: sabar]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
KK udah berhasil,,, tp binun pas edit conf squid

root@khaira:~# mkdir /media/disk40/squid
root@khaira:~# mkdir /media/disk40/squid/cache
root@khaira:~# touch /media/disk40/squid/cache.log
root@khaira:~# touch /media/disk40/squid/access.log
root@khaira:~# chown -Rf squid.squid /media/disk40/squid
root@khaira:~#
di squid conf :
cache_dir aufs /media/squid/cache 10400 24 256

squid -k parse :
WARNING: cache_dir /media/squid/cache: (2) No such file or directory
salahnya di mana yach ??? frown

jangan bosan berbagi smile



diEdit oleh sabar (31 Aug 10 00:25)

Top
#35751 - 31 Aug 10 00:28 Re: Help....squid Koe lemot [Re: sabar]
thrvers Online
Z
Warga

Terdaftar: 01 Jan 10
Pesan: 3652
Lokasi: Surabaya, Indonesia
'
salah di squid.conf laugh

cache_dir aufs /media/squid/cache 10400 24 256
sharusnya
cache_dir aufs /media/disk40/squid 10400 24 256

* CMIIW *
_________________________
Gabung yuk:
IRC: #ubuntu-indonesia @irc.freenode.net
FB : ubuntu-indonesia.com

Sharing so fun wink rezzz - 1 2 3

Top
#35753 - 31 Aug 10 00:41 Re: Help....squid Koe lemot [Re: thrvers]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
root@khaira:~# mkdir /media/disk40/squid
root@khaira:~# mkdir /media/disk40/squid/cache
root@khaira:~# touch /media/disk40/squid/cache.log
root@khaira:~# touch /media/disk40/squid/access.log
root@khaira:~# chown -Rf squid.squid /media/disk40/squid
root@khaira:~#
di squid conf :
cache_dir aufs /media/disk40/squid 10400 24 256

FATAL: Failed to make swap directory /media/disk40/squid: (13) Permission denied

help lagi donk

Top
#35755 - 31 Aug 10 00:51 Re: Help....squid Koe lemot [Re: sabar]
zitux Offline
Warga

Terdaftar: 16 Jan 10
Pesan: 866
Lokasi: Malang Jatim Indonesia
hak akses nya bro diperiksa
udah di chmod kan td confused
_________________________
Jumlah postingan ku makin banyak grin
coz banyak bertanya ndak pernah pinter2 laugh

Top
#35756 - 31 Aug 10 00:56 Re: Help....squid Koe lemot [Re: zitux]
sabar Offline
Warga

Terdaftar: 23 Jul 10
Pesan: 43
root@khaira:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 36G 2.9G 32G 9% /
none 178M 272K 178M 1% /dev
none 182M 752K 181M 1% /dev/shm
none 182M 92K 182M 1% /var/run
none 182M 0 182M 0% /var/lock
none 182M 0 182M 0% /lib/init/rw
/dev/sdb1 37G 177M 35G 1% /media/disk40

apakah hardiks saya udah betul nih frown

sory merepotkan baru belajar


diEdit oleh sabar (31 Aug 10 01:10)

Top
Halaman 3 dari 4 < 1 2 3 4 >


Moderator:  bleTux, bulugading, MasDjo, yudiarbi 
Download Ebook FUI
Ebook FUI
Uneg-Uneg Pengguna


Ubuntu 11.10 Oneiric
Versi Ubuntu terbaru segera hadir!
Ubuntu-Indonesia.com
di Facebook
Kamus Dwibahasa