Tuesday, March 24, 2015

one link for ftp user

Create one link for ftp user

ftp://username:password@ip server/folder or filename

Tuesday, March 17, 2015

delay pool and limit files

Setting delay pool and limit download files


acl admin src "/etc/squid/admin"
#acl management src "/etc/squid/management"
acl staff src 192.168.130.0/24
#
delay_pools 2
delay_class 1 1
delay_parameters 1 -1/-1
delay_access 1 allow admin
#delay_access 1 allow admin management
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 -1/-1 256000/4000000
delay_access 2 allow staff
delay_access 2 deny all

reply_body_max_size 2 GB admin
reply_body_max_size 10 MB staff

Thursday, March 12, 2015

Limit download squid

Vi squid.conf

acl t1 src 192.168.254.200
acl t2 src 192.168.254.0/24

http_access allow t1
http_access allow t2

reply_body_max_size 0 allow t1
reply_body_max_size 10 MB allow t2