Friday, July 03, 2009

Install proxy di Fedora


1. Download squid2.7-stable6.tar

2. Masukan ke /usr/local

3. Extract dengan tar

root@ketoprak#>tar xvf /usr/local/squid2-7stable6.tar

4 Rename folder ke "squid" untuk memudahkan

root@ketoprak#>mv squid2-7stable6 squid



5. Masuk ke folder squid

root@ketoprak#>cd /usr/local/squid

root@ketoprak/squid#>.configure

root@ketoprak/squid#>make all

root@ketoprak/squid#>make install


6. Buat folder cache

root@ketoprak#>mkdir /cache


root@ketoprak#>chown nobody.nobody /cache1

7. Edit "squid.conf"

root@ketoprak#>vim /usr/local/squid/etc/squid.conf

http_port 3128 =>
bisa diganti

cache_dir ufs /cache1 30000 64 256

acl_localnet src 192.168.1.0/24 =>
jaringan client

tekan esc

lalu wq untuk menyimpan


8. Menjalankan squid

root@ketoprak#>/usr/local/squid/sbin/squid -z => untuk direktori swap

root@ketoprak#>/usr/local/squid/sbin/squid -YDF


9. Membuka firewall

root@ketoprak#>iptables -t filter -F


10. Edit Selinux

root@ketoprak#>vi /etc/selinux/config

SELINUX = permissive


11. Ketikan semua perintah di rc.local

ifup eth1

ip addr add 192.168.1.174/24 dev eth1

ip route add default via 192.168.1.1

/usr/local/squid/sbin/squid -YDF

iptables -t nat -I PREROUTING -p tcp --dport 80 -REDIRECT








0 comments:

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls