TUT UPDATE Squid 3.1.10 ClearOS 6.3 Ke 3.1.20 ZPH 32 ( Qos Flow Enabled )
Siapkan Putty nya + Air Russia
Jangan lupa backup folder squid.conf nya dulu
:) :)
Link donlod seri squidnya ada di sini
Code: [Select]
http://forum.clearos-indonesia.com/index.php?topic=1875.0
1. Remove squid bawaan ClearOS 6.3 32 BIT
Code: [Select]
# yum remove app-web-proxy
2. Donlod dan Install squid 3.1.20 yg sudah Build qos flow (ZPH)
Code: [Select]
# wget -c https://dl.dropbox.com/u/95699331/Squid%203.1.20%20ZPH%20Cos%206.3%2032Bit/squid-3.1.20-1.v6.i686.rpm
Code: [Select]
# rpm -ivh squid-3.1.20-1.v6.i686.rpm
3. Cek hasil install squidnya
Code: [Select]
# squid -v
Haslnya
[root@system ~]# squid -v
Squid Cache: Version 3.1.20
configure options: '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr' '--libexecdir=/usr/lib/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--with-logdir=$(localstatedir)/log/squid' '--with-pidfile=$(localstatedir)/run/squid.pid' '--disable-dependency-tracking' '--enable-arp-acl' '--enable-follow-x-forwarded-for' '--enable-auth=basic,digest,ntlm,negotiate' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SMB,YP,getpwnam,multi-domain-NTLM,SASL,DB,POP3,squid_radius_auth' '--enable-ntlm-auth-helpers=smb_lm,no_check,fakeauth' '--enable-digest-auth-helpers=password,ldap,eDirectory' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-delay-pools' '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups' '--with-large-files' '--enable-http-violations' '--enable-linux-netfilter' '--with-netfilter-conntrack' '--enable-zph-qos' '--enable-referer-log' '--enable-removal-policies=heap,lru' '--enable-snmp' '--enable-ssl' '--enable-storeio=aufs,diskd,ufs' '--enable-useragent-log' '--enable-wccpv2' '--enable-esi' '--with-aio' '--with-default-user=squid' '--with-filedescriptors=16384' '--with-dl' '--with-openssl' '--with-pthreads' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --with-squid=/root/rpmbuild/BUILD/squid-3.1.20
4. Install fitur fitur pendukungnya
Code: [Select]
# yum install app-web-proxy app-web-access-control app-content-filter dansguardian-av
5. Selesai silahkan di atur parameter settingnya lewat webconfig server ClearOS anda Jangan lupa cek status squidnya sudah berjalan atau belum
Code: [Select]
# service squid status
Hasilnya
Code: [Select]
[root@system ~]# service squid status
squid (pid 2369) is running
6. Contoh parameter zphnya buat squid 3.1.20 di squid.conf nya
Code: [Select]
qos_flows local-hit=0x08
qos_flows sibling-hit=0x08
qos_flows parent-hit=0x08
qos_flows disable-preserve-miss
Untuk setting marking zph di Server ClearOS 6.3 ( untuk yang memakai mikrotik silahkan di sesuaikan DSCP TOSNYA )
Masuk via winscp cari buka folder
Code: [Select]
/etc/clearos/firewall.d/custom
Jika
Belum ada buat klik kanan di dalam folder Firewall tsb buat nama file
tsb menjadi Custom setelah itu masukan perintah parameternya seperti
berikut
Code: [Select]
iptables -A FORWARD -t mangle -m tos --tos 0x08 -j MARK --set-mark 8 # marking zph
iptables -A OUTPUT -t mangle -m tos --tos 0x08 -j MARK --set-mark 8 # marking zph
iptables -A POSTROUTING -t mangle -m tos --tos 0x08 -j MARK --set-mark 8 # Marking ZPH
Lalu masuk ke webconfig clearos server anda buka
Code: [Select]
network ------> firewall ------> custom firewall
NOTE:Cara Instalasi ini berlaku juga buat ClearOS Yang 64 Bit