Tuesday, February 06, 2007

Membangun Proxy Server Dengan Squid

Setelah bosek pindah - pindah koneksi internet, akhirnya gue buat proxy server ini.
Requirment :
OS Linux Fedora 3
Link Speedy

Konfigurasi network :
Etho = DHCP (10.0.0.11) gw 10.0.0.2 (link internet speedy)
Eth1 = 10.159.1.60 gw 10.159.1.10 (link intranet)
Segment PC Client 10.159.99.0 netmask 255.255.255.0

Paket instalasi :
squid-2.5.STABLE6-3
squidGuard-1.2.0-8.k12ltsp.1.4.2

Tahapan instalasi :
1. Edit Configurasi /etc/squid/squid.conf
2. Running /usr/sbin/squid -z untuk create directory swap
3. Create routing sbb :
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.2
/sbin/route add -net 10.159.1.0 netmask 255.255.255.0 gw 10.159.1.10
/sbin/route add -net 10.159.99.0 netmask 255.255.255.0 gw 10.159.1.10
/sbin/route add -net 10.159.19.0 netmask 255.255.255.0 gw 10.159.1.10

Hasilnya :
[root@ftpserver ~]# netstat -rn
Kernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface

0.0.0.0 10.159.1.10 255.255.255.0 UG 0 0 0 eth0
10.159.99.0 10.159.1.10 255.255.255.0 UG 0 0 0 eth0
10.159.19.0 10.159.1.10 255.255.255.0 UG 0 0 0 eth0
10.159.1.0 10.159.1.10 255.255.255.0 UG 0 0 0 eth0

10.159.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 10.0.0.2 0.0.0.0 UG 0 0 0 eth1

4. Running service squid # service squid start
5. Konfigurasi filtering situs porno


Akhirnya bisa ber-ym ria .....-:)


Referensi :
http://linux2.arinet.org/
http://konsultanlinux.com/

No comments: