Arquivos mensais: janeiro 2016

CONFIGURAÇÃO SQUID3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
################### Aorta Proxy ##############
http_port 3128 transparent 
visible_hostname 254-proxy
error_directory /usr/share/squid/errors/Portuguese
access_log /var/log/squid/access_infsite.log
##################### visial studio http:
ignore_expect_100 on
 
##################### Config Cache: #########
 
cache_mem 256 MB
cache_swap_low 80
cache_swap_high 85
maximum_object_size 1 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 128 KB
ipcache_size 3072
ipcache_low 90
ipcache_high 93
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern (cgi-bin|\?)    0       0%      0
refresh_pattern .      0   20%   4320
 
cache_dir ufs /etc/squid/cache/cache1 2048 16 64
cache_dir ufs /etc/squid/cache/cache2 2048 16 64
cache_dir ufs /etc/squid/cache/cache3 2048 16 64
cache_dir ufs /etc/squid/cache/cache4 2048 16 64
 
 
##################### Ganho de perfomace ##
 
pipeline_prefetch on
 
##################### Safe_ports: #########
 
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 587 995 563 70 210 280 488 59 777 8080 389 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
###################### declarações ########
 
acl all src 0.0.0.0/0.0.0.0
acl rede0 src "/etc/squid/config/rede0"
acl social_clientes src "/etc/squid/config/social_clientes"
acl social_url url_regex -i "/etc/squid/config/social_url"
###################### delay_pools #########
 
delay_pools 2
 
delay_class 1 2
delay_parameters 1 3/3 3/3
delay_access 1 allow social_url social_clientes
 
delay_class 2 2
delay_parameters 2 -1/-1 99999/99999
delay_access 2 allow rede0
###################### liberar ou negar acesso
 
http_access allow rede0
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow social_clientes
http_access deny all
 
 
 
 
 
 
## Ad maiorem Dei gloriam