Pages

Tampilkan postingan dengan label Proxy. Tampilkan semua postingan
Tampilkan postingan dengan label Proxy. Tampilkan semua postingan

Rabu, 26 Juni 2013

Squid 2.7 Stable9 di ClearOS 6.3

Squid 2.7 Stable9 di ClearOS 6.3

Sekedar menyimpan catatan, maklum pelupa alias emang malas inga' inga'... :D

ini urutan langkah memasang squid 2.7s9 patch dengan youtube non-range di ClearOS 6.3 mode Gateway. cara ini lebih cepat, kalau cara panjangnya ada di forum clearos indonesia..

1. update, stop, buang squid lama
    yum update
    reboot

2. copy semua file yang ada di folder squid ke folder dummy (ntar dipakai lagi tuh)
3. download dan copy file dewa ke root, lalu install
    service squid stop
    yum remove squid
    yum localinstall --nogpgcheck squid-2.7.STABLE9.xx.xxx.best
4. install app webconfig
    yum install app-web-proxy (cos6x) 
    atau
    yum install app-squid (cos5x)
5. copy squid.conf, storeurl dan kawan2nya ke folder squid
6. copy semua file yang ada di folder dummy ke folder /etc/squid, kecuali squid.conf atau storeurl.pl (klo ada sih)
  7. buat folder cache seperlunya (klo blm ada), rubah hak akses
    mkdir /cache1
    chown squid:squid /cache1

  8. rubah hak akses squid.conf, /cache squid:root 0640 kemudian sesuaikan isinya (IP)
    chmod 777 /etc/squid/storeurl.pl
    chown squid:root /etc/squid/squid.conf
    chmod 0640 /etc/squid/squid.conf

  9. sesuaikan isinya squid.conf, (IP, DP)
10. cek squid, jika tidak ada pesan error, lanjutkan buat swap directory, lalu jalankan
      squid -k parse
      squid -z
      service squid start 

      service squid restart
11. Agar squid bisa jalan secara otomatis saat proses booting, tambahkan diakhir baris,/etc/rc.local/
       echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
       ulimit -HSn 65535
       /usr/sbin/squid -NDd1 &
cat. :
    untuk cos 52 jika set transparent dari webconfic maka squid jadi error,
    cek kembali baris pertama di squid.conf jika ada baris baru "http_access allow localhost"
    di hapus saja atau di kasih "#"


tambahan :
instal ccze (agar lognya jadi meriah)
     rpm -Uvh http://mirror.fraunhofer.de/download.fedora.redhat.com/epel/5Client/i386/ccze-0.2.1-6.el5.i386.rpm

melihat log
     tail -f /var/log/squid/access.log | ccze

agar server mau shutdown ketika ditekan tombol power pada cpu, tambahkan perintah ini :
        yum install acpid
 

matikan fungsi auto update, biar squidnya gak terupdate jadi squid 3.xx :D, dari
    webconfig - system - software update - edit - disable

sumber :  http://beldin-best.blogspot.com/2012/12/squid-27-stable9-di-clearos-63.html

Rabu, 06 Februari 2013

node-unblocker

node-unblocker

web :  http://nodeunblocker.com/proxy

source :  https://github.com/nfriedly/node-unblocker

A web proxy for evading corporate or government filters, similar to CGIproxy / PHProxy / Glype but written in node.js. All data is processed and relayed to the client on the fly without unnecessary buffering.
Any website that the proxy can access can now be reached by the proxy's users.

The magic part

The script uses "pretty" urls which, besides looking pretty, allow links with relative paths to just work without modification. (E.g. <a href="path/to/file2.html"></a>)
In addition to this, links that are relative to the root (E.g. <a href="/path/to/file2.html"></a>) can be handled without modification by checking the referrer and 302 redirecting them to the proper location in the referring site.
Cookies are currently storred in the visitor's session on the server rather than being sent to the visitor's browser to avoid having a large number of (possibly conflicting) browser cookies once they have browsed several sites through the proxy.

Instalation on your system

Requires node.js >= 0.6 and Redis for session storage. Then download node-unblocker, cd into the directory, and run npm install -d. Optionally edit config.js then run node server.js to start the server. It should spawn a new instance for each CPU core you have.

Installation on Heroku

This project should be runnable on a free Heroku instance without modification - see http://node-unblocker.herokuapp.com/proxy for an example. You will need to run heroku addons:add redistogo and it would also be wise to run heroku config:add SECRET=[something only you know] to make the session cookies secure. You may also want to run heroku addons:add piggyback_ssl to enable secure browsing and/or heroku config:add GA_ID=[your Google Analytics ID, ex: UA-12345-78] to enable usage tracking via Google Analytics.

High-level Todo list

  • Mini-url form
  • Allow for removal of scripts (both tags and on*= handlers)
  • Web interface for managing the blocklist

License

This project and related problems are released under the terms of the GNU GPL version 3

Contributors