Skip to main content

Posts

Showing posts with the label SQUID

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...

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...

Bypas eksternal Proxy ip tertentu (mikrotik)

selesai install mesin proxy. eh bingung kok semua kena proxy?? bagaimana cara bypas(mengecualikan) ip/network tertentu agar tidak tercache proxy eksternal mikrotik. ceritanya gini : kondisi jaringan saya itu 2 input  (inet1=speedy dan inet2=graha) dan 4 output ( lan1=192.168.11.0/24, lan2=192.168.12.0/27, lan3=192.168.13.0/25 dan lan4=192.168.2.0/29 ) jaringan aku ini tidak menggunakan loadbalancing tapi memisahkan koneksi saja dengan marking koneksi seperti tulisan saya sebelumnya   . kepengen saya network lan3 (cetak bold) itu tidak tercache proxy slackware. lansung saja langkah 1 bikin address list di mikrotik   /ip fi address-list add address=192.168.13.0/24 list=bypasrpox disabled=no  langkah 2 bikin NAT ( nat dibuat sebelum nat direct proxy) /ip fi nat chain=dstnat action=accept protocol=tcp dst-address-type=! src-address-list=kantor dst-port=80 comment="ora keno proxy" nah sudah selesai akhrinya bisa juga

Squid access.log (if u know)

Information to each access to the Cache Native Format (emulate_httpd_log off) Timestamp Elapsed Client Action/Code Size Method URI Ident Hierarchy/From Content Common Format (emulate_httpd_log on) Client Ident - [Timestamp1] "Method URI" Type Size

Mikrotik and External Proxy using openBSD

to make external proxy using openBSD maybe u can try this internet ---- Mikrotik--- client                         |                    proxy setting NAT in Mikrotik add chain=srcnat action=masquerade out-interface=wan /ip firewall nat add chain=dstnat src-address=!10.5.50.0/28 \ protocol=tcp dst-port=80 action=dst-nat to-addresses=10.5.50.14 \ to-ports=3456 comment="nat proxy" disabled=no