install squid di centos 6 (64 bit)

install proxy (squid) di mesin tunggal yang ada di dalam server dengan 1 buah interface virtual

[root@proxie-test ~]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:5177 errors:0 dropped:0 overruns:0 frame:0
TX packets:4699 errors:0 dropped:57 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1928522 (1.8 MiB) TX bytes:2080827 (1.9 MiB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.100.100.99 P-t-P:10.100.100.99 Bcast:10.100.100.99 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

[root@proxie-test ~]# lsb_release -a
-bash: lsb_release: command not found
[root@proxie-test ~]# uname -a
Linux proxie-centos 2.6.32-042stab059.7 #1 SMP Tue Jul 24 19:12:01 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@proxie-test ~]#

step – stepnya

1. #yum update
2. install squid, ketik #yum install squid
3. configure squid sesuai dengan keinginan anda… sample config dapat di ambil here
4. #chown -R squid:squid /var/log/squid/
5. #chkconfig squid on
6. #service squid restart
7. #vi /etc/sysctl.conf
edit
net.ipv4.ip_forward = 0
menjadi
net.ipv4.ip_forward = 1
8. #echo 1 > /proc/sys/net/ipv4/ip_forward

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s