greathector7

squid3.conf

Sep 27th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. workers 2
  2. cpu_affinity_map process_numbers=1 cores=1
  3. cpu_affinity_map process_numbers=2 cores=2
  4.  
  5. httpd_suppress_version_string on #Escondemos la version del squid
  6.  
  7. #no permitimos que nada pase por nuestro proxy
  8. via off
  9. forwarded_for off
  10. follow_x_forwarded_for deny all
  11.  
  12. #escondemos nuestro squid
  13. request_header_access From deny all
  14. request_header_access Server deny all
  15. request_header_access WWW-Authenticate deny all
  16. request_header_access Link deny all
  17. request_header_access Cache-Control deny all
  18. request_header_access Proxy-Connection deny all
  19. request_header_access X-Cache deny all
  20. request_header_access X-Cache-Lookup deny all
  21. request_header_access Via deny all
  22. request_header_access X-Forwarded-For deny all
  23. request_header_access Pragma deny all
  24. request_header_access Keep-Alive deny all
  25.  
  26.  
  27.  
  28. #acl redlocal src 10.0.0.0/8 #red local de la alcaldia
  29. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  30. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  31. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  32.  
  33. acl SSL_ports port 443
  34. acl SSL_ports port 2083
  35. acl SSL_ports port 10000
  36.  
  37.  
  38. acl Safe_ports port 80 # http
  39. acl Safe_ports port 8080 # http
  40. acl Safe_ports port 25000 # http
  41. acl Safe_ports port 3389 # http seta
  42. acl Safe_ports port 21 # ftp
  43. acl Safe_ports port 443 # https
  44. acl Safe_ports port 2083 # https yenni
  45. acl Safe_ports port 1000 # https webmin
  46. acl Safe_ports port 70 # gopher
  47. acl Safe_ports port 210 # wais
  48. acl Safe_ports port 1025-65535 # unregistered ports
  49. acl Safe_ports port 280 # http-mgmt
  50. acl Safe_ports port 488 # gss-http
  51. acl Safe_ports port 591 # filemaker
  52. acl Safe_ports port 777 # multiling http
  53. acl Safe_ports port 631 # cups
  54. acl Safe_ports port 873 # rsync
  55. acl Safe_ports port 901 # SWAT
  56.  
  57. acl redprueba1 src "/etc/squid3/prueba1"
  58. acl redtotal src "/etc/squid3/total"
  59. acl redmucho src "/etc/squid3/mucho"
  60. acl redpoco src "/etc/squid3/poco"
  61. acl redurlbasico1 src "/etc/squid3/basico1"
  62. acl redmercadolibre src "/etc/squid3/mercadolibre"
  63. acl redprohibidas url_regex "/etc/squid3/prohibidas" #negadas
  64. acl redprohibidas1 url_regex "/etc/squid3/prohibidas_redes_sociales" #negadas permitiendo redes sociales
  65. acl redmercadolibredst dstdom_regex -i "/etc/squid3/urlmercadolibre" #solo estas url
  66. acl redinocentes url_regex "/etc/squid3/inocentes" #permito estas palabras paginas
  67. acl redmultimedia urlpath_regex "/etc/squid3/multimedia" #niego tipos de archivos
  68. acl snc dstdomain .snc.gob.ve .cgr.gob.ve .banavih.gob.ve .ivss.gov.ve .ivss.gob.ve
  69. acl CONNECT method CONNECT
  70. http_access allow localhost manager
  71. http_access deny manager
  72. http_access allow !Safe_ports
  73. http_access deny CONNECT !SSL_ports
  74.  
  75. http_access allow redtotal
  76. http_access allow redmucho !redmultimedia
  77. http_access allow redpoco !redprohibidas !redmultimedia
  78. http_access allow redurlbasico1 !redprohibidas1 !redmultimedia
  79. http_access allow redmercadolibre redmercadolibredst
  80. http_access allow redinocentes all
  81. http_access allow localhost
  82. #http_access allow redlocal
  83. http_access deny all
  84. http_port 3128
  85.  
  86.  
  87. cache_mem 384 MB
  88. cache_replacement_policy heap LFUDA
  89. maximum_object_size 8 MB
  90. cache_dir aufs /Squid3Cache 110000 16 256
  91. coredump_dir /var/spool/squid3
  92.  
  93.  
  94. refresh_pattern ^ftp: 1440 20% 10080
  95. refresh_pattern ^gopher: 1440 0% 1440
  96. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  97. refresh_pattern . 0 20% 4320
  98. cache_effective_user proxy
  99.  
  100.  
  101. visible_hostname proxy7
  102. dns_nameservers 127.0.0.1 10.0.0.4 200.44.32.12
  103. forwarded_for off
  104. cache_effective_group proxy
  105.  
  106. access_log daemon:/var/log/squid3/access.log squid
Advertisement
Add Comment
Please, Sign In to add comment