2.Tunggu sampai selesai ddengan settingan konfigirasinya ada di vim /etc/squid/squid.conf
3.Untuk melihat user proxy gunakan perintah /etc/group
ownership file, file yang diubah ownershipnya diantaranya : squid.conf, dengan perintah :chown -R proxy:proxy /etc/squid/*
4.Terus lakukan perintah :
squid -z untuk mengecek apakah setingan squid kita sudah benar dengan perintah :
*squid -NCd1
*squid -D
5.Lanjutkan apakah Squid sudah berjalan dengan melihat pidnya :
ps -aux
root 2347 0.0 0.2 4628 672 ? Ss 08:34 0:00 /usr/sbin/squid -D -sYC
proxy 2349 0.0 1.9 6852 4576 ? S 08:34 0:00 (squid) -D -sYC
proxy 2359 0.0 0.1 1420 280 ? Ss 08:34 0:00 (unlinkd)
root 2361 0.0 0.5 2720 1396 ? Ss 08:34 0:00 /usr/sbin/dhcpd3 -q eth1
daemon 2369 0.0 0.1 1832 416 ? Ss 08:34 0:00 /usr/sbin/atd
root 2376 0.0 0.3 2192 764 ? Ss 08:34 0:00 /usr/sbin/cron
root 2403 0.0 0.2 1572 492 tty1 Ss+ 08:34 0:00 /sbin/getty 38400 tty1
root 2407 0.0 0.2 1576 492 tty3 Ss+ 08:34 0:00 /sbin/getty 38400 tty3
root 2408 0.0 0.2 1576 492 tty4 Ss+ 08:34 0:00 /sbin/getty 38400 tty4
root 2409 0.0 0.2 1576 492 tty5 Ss+ 08:34 0:00 /sbin/getty 38400 tty5
root 2410 0.0 0.2 1576 496 tty6 Ss+ 08:34 0:00 /sbin/getty 38400 tty6
root 2449 0.0 0.2 1576 492 tty2 Ss+ 10:38 0:00 /sbin/getty 38400 tty2
root 2507 0.0 0.9 7864 2380 ? Ss 16:07 0:00 sshd: root@pts/0
root 2509 0.0 0.7 4012 1780 pts/0 Ss 16:07 0:00 -bash
root 2677 0.0 0.2 4628 664 ? Ss 16:34 0:00 /usr/sbin/squid -D
proxy 2679 0.0 3.0 13600 7424 ? Sl 16:34 0:02 (squid) -Duntuk mentransparent dilakukan dengan iptables :
iptables -I PREROUTING -p tcp –dport 80 -s 192.168.90.0/24 -j REDIRECT –to-port 3120 -t natdan di rc.local ditambahi file :/bin/rm -f /var/run/squid.pid/usr/sbin/squid -D
6.Untuk testnya silahkan Anda browsing dengan mengetikkan perintah
tail -f /var/log/squid/access.log
UdAh dEh...
Tidak ada komentar:
Posting Komentar