Skip to main content

Posts

Managing Squid NOT cache some servers or URLs?

Januari 12, 2013. Sekuro - This Quote from wiki.squid-cache.org because i have problem with my site because if im update content. my content not published so im read wiki squid and found this tips. From Squid-2.6, you use the cache option to specify uncachable requests and any exceptions to your cachable rules. For example, this makes all responses from origin servers in the 10.0.1.0/24 network uncachable: acl localnet dst 10.0.1.0/24 cache deny localnet  This example makes all URL's with '.html' uncachable: acl HTML url_regex .html$ cache deny HTML  This example makes a specific URL uncachable: acl XYZZY url_regex ^http://www.i.suck.com/foo.html$ cache deny XYZZY  This example caches nothing between the hours of 8AM to 11AM: acl Morning time 08:00-11:00 cache deny Morning http://wiki.squid-cache.org/SquidFaq/OperatingSquid?action=fullsearch&context=180&value=exclude+url&titlesearch=Titles#How_can_I_make_Squid_NOT_cache_some_se...

Implementasi Load Balancing PCC Mikrotik RB 750G

Jalan Juga Load Balancing Seperti Gambar diatas implementasi Load balancing di Router SMANSARA berjalan Lancar namun tanpa Mesin Proxy. secara konfigurasinya seperti di bawah ini. [ok@MikroTik] /ip address pr Flags: X - disabled, I - invalid, D - dynamic #   ADDRESS            NETWORK         INTERFACE 0   192.168.1.2/24     192.168.1.0     WAN1 1   10.11.12.1/28      10.11.12.0      Local     ( ke beberapa router LAB ) 2   192.168.2.1/29   192.168.2.0   WAN2 [ok@MikroTik] /ip firewall> mangle pr Flags: X - disabled, I - invalid, D - dynamic 1   chain=input action=mark-connection new-connection-mark=WAN1_conn passthrough=yes in-interface=WAN1 2   chain=input action=mark-connection new-connection-mark=WAN2_conn passthrough=yes in-interface=WAN2 3   chain=output action=mark-routing new-routing-mark=to_WAN1 passt...

Install Webmin di ubuntu

Jumat, 30 November 2012 Sore: Untuk Keperluan tampilan gui buat dirumah akhirnya pake deh  webmin. maklum lom terbiasa dengan layar hitam+putih begini prosesnya install lybrary root@tx:~# apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python download source webmin root@tx:~# wget http://prdownloads.sourceforge.net/webadmin/webmin_1.590_all.deb install file  webmin_1.590_all.deb dengan perintah  root@tx:~# dpkg -i webmin_1.590_all.deb setelah setelah selesai buka dengan alamat https://ip_ubuntu:10000 username dan password = username dan password server  *Notes - Hemat Saya Apache Ubuntu telah terinstall Referensi: http://doxfer.webmin.com/Webmin

Load Balancing PCC Problem Hotspot Login Mikrotik

Selasa, 27 Agustus 2012 Catatan pagiSiang: Siswa pada komplain karena tidak bisa login hotspot. setelah semalam saya loadbalancing menggunakan PCC. karena ada monitoring dari dirjen DIkmen Pusat maka dibiarin tidak internetan sementara waktu. acara selesai dan browsing dan dapat bacaan post dari FMI. http://www.forummikrotik.com/general-networking/10586-%5Bask%5D-mana-sih-yang-lebih-bagus-nth-load-balancing-atau-pcc-load-balancing-6.html#post242932 menyatakan PCC dan NTH di saya tidak bisa optimal karena ada proxy (bukan Tproxy)... ingat selogan loadbalance, "The more users, more connections, the load balance will be more balance " sedangkan jika ada man in the middle (proxy) maka koneksi port 80 yang seharusnya bersumber dari banyak user akhirnya hanya dikenal sebagai 1 user... jadi yang benar2 dihandle untuk terjadinya load balance hanya traffic dari user yang bukan port 80 tcp, mis. 443tcp, 53udp, dll... Bertolak dari kesimpulan itu maka kekurangan yang terj...

squid: ERROR: No running copy

Sabtu, 24 Nopember 2012 catatan Siang: Saat Trafik tinggi Listrik mendadak (UPS Tidak Kuat Menampung 2 Server). akhirnya ditunggu 15 menit kemudian hidup lagi. tapi client tidak bisa internet, berpikir takutnya rusak nih hardisk. tapi setelah cek komputer proxynya ternyata ndak jalan service squidnya. root@tx:/# squid -k reconfigure squid: ERROR: No running copy Coba start services squid root@tx:/# squid start  tidak Muncul erorr kemudian lihat Log root@tx:/# tail -f /var/log/messages Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 started Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 exited due to signal 6 oh ternyata Squid tidak jalan, cek syslog root@tx:/# tail /var/log/syslog Nov 24 11:28:13 tx squid[1108]: Squid Parent: child process 1129 started Nov 24 11:28:13 tx squid[1129]: #011Failed to verify one of the swap directories, Check c                       ...

Instal SARG dan CALAMARIS UBUNTU 10.10 32bit

Jum'at, 23 Nopember 2012 Catatan Sore Hari: pusing liat log Squid.. akhirnya install SARG dan CALAMARIS untuk monitorin mesin proxy di mesin IBM x3200 Pertama:  root@tx:/# apt-get install sarg calamaris libgd-graph-perl libnetaddr-ip-perl ttf-dustin tunggu hinggal proses selesai, Kedua: setelah selesai proses install diatas membuat direktory calamaris root@tx:/# squid -k rotate root@tx:/# mkdir /var/www/calamaris root@tx:/# calamaris -a -F html /var/log/squid/access.log > /var/www calamaris/index.html Ketiga: konfigurasi SARG root@tx:/# nano /etc/sarg/sarg-reports.conf  konfigurasi sarg-report.conf persis seperti dibawah ini SARG=/usr/bin/sarg CONFIG=/etc/sarg/sarg.conf HTMLOUT=/var/www/sarg       --->disesuaikan aja PAGETITLE="Access Reports on $(hostname)" LOGOIMG=/sarg/images/sarg.png LOGOLINK="http://$(hostname)/" DAILY=Daily WEEKLY=Weekly MONTHLY=Monthly EXCLUDELOG1="SARG: No records found" EXCLUDELOG2="SAR...

DIRECT HOTSPOT MIKROTIK LOGIN KE VERSI MOBILE

Hari ini Belajar bagaimana membuat direct hotspot login mikrotik ke versi mobile. dengan searching melalui google akhirnya menemukan. untuk direct dan mendeteksi kalau browser yang digunakan adalah browser gadget. komponen yang digunakan adalah jquery diantaranya: detectmobilebrowser.jq.js jquery-1.6.4.min.js Terlebih dahulu ( Langkah 1) unduh Ke-2 file Tersebut diatas. kemudian gabungkan dengan folder hotspot mikrotik. dan tampilannya seperti di bawah ini.   Langkah 2 - buat folder baru bernama mobile. di dalam folder mobile isi dengan file-file hotspot (alogin.html, errors.txt, login.html, logout.html, radvert,html, status.html). file-file ini dapat dicopy dari folder hotspot mikrotik. kemudian modifikasi halaman login.html seminimal mungkin untuk browser ponsel. berikut ini tampilan hotspot login versi mobile. sample Tampilan Langkah 3 - insert script jquery kedalam file login.html (file login.html pada folder hotspot) pada bagian header berikut ini tampilan penu...