Squid shaper (delay_pools)

[root@techtoy root]#vi /etc/squid/squid.conf

------------------------------------Edit squid.conf file------------------------------
#Techtoy config#
acl allowip src "/etc/squid/allowip.txt" #List for allow ip
acl vip_user src "/etc/squid/vip_user.txt" #List for vip user ip

#Shaper
delay_pools 2

delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow vip_user

delay_class 2 2
delay_parameters 2 64000/64000 32000/64000
delay_access 2 allow allowip

------------------------------------End edit squid.conf-------------------------

[root@techtoy root]# vi allowip.txt

------------------------------------Edit allowip.txt------------------------
#Insert ip to allow
#e.g.
192.168.1.0/24
#or
192.168.1.0 255.255.255.0
------------------------------------End edit allowip.txt-----------------

[root@techtoy root]#vi vip_user.txt
------------------------------------Edit vip_user.txt---------------------
#insert ip for vip user
#e.g.
#e.g.
192.168.1.0/24
192.168.2.1/32
#or
192.168.1.0 255.255.255.0
192.168.2.1 255.255.255.255
-----------------------------------End edit vip_user.txt------------------
[root@techtoy root]# service squid reload

ความคิดเห็น

บทความที่ได้รับความนิยม