Advertisement
Guest User

brillantejcoh

a guest
Nov 3rd, 2008
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. # WELCOME TO SQUID 2.6.STABLE5
  2. #---las r3des------
  3. http_port 192.168.100.2:8080
  4. http_port 192.168.101.2:8080
  5. http_port 192.168.102.2:8080
  6. http_port 192.168.103.2:8080
  7. http_port 192.168.104.2:8080
  8.  
  9. cache_mem 32 MB
  10.  
  11. acl all src 0.0.0.0/0.0.0.0
  12. acl manager proto cache_object
  13. acl localhost src 127.0.0.1/255.255.255.255
  14. acl to_localhost dst 127.0.0.0/8
  15.  
  16.  
  17. #<----- empezar ACLS PARA UNT
  18.  
  19. # Definicion de grupos de acceso
  20.  
  21. acl labs src "/etc/squid/lan/labs"
  22. acl oginf src "/etc/squid/lan/oginf"
  23. acl of_acad src "/etc/squid/lan/of_acad"
  24. acl of_adm src "/etc/squid/lan/of_adm"
  25. acl sinrango src "/etc/squid/lan/sinrango"
  26. acl msnin src "/etc/squid/msn/msnin"
  27. #acl admin src 192.168.101.21
  28. acl admin src "/etc/squid/lan/admins"
  29.  
  30. #-----archivos prohibidos
  31. #acl multimedia src "/etc/squid/archivos/multimedia"
  32. #acl peligrosos src "/etc/squid/archivos/peligrosos"
  33. acl noper url_regex "/etc/squid/nopermitir/noper"
  34. acl multimedia url_regex "/etc/squid/archivos/multimedia"
  35. acl peligrosos url_regex "/etc/squid/archivos/peligrosos"
  36. acl msn url_regex "/etc/squid/msn/msn"
  37. #<--
  38.  
  39. #<--ports
  40. acl msn_ports port 1863 6901 6891-6900
  41. acl msn_aplication req_mime_type -i ^aplication/xmsn-messenger$
  42. acl msn_gateway url_regex -i agteway.dll
  43.  
  44. acl SSL_ports port 443 # https
  45. acl SSL_ports port 563 # snews
  46. acl SSL_ports port 873 # rsync
  47. ##
  48. acl SSL_ports port 5222 # MSG-INT
  49. acl SSL_ports port 5223 # MSG-INT
  50. acl SSL_ports port 5269 # MSG-INT
  51. acl SSL_ports port 5280 # MSG-INT
  52. ##
  53.  
  54. acl Safe_ports port 80 # http
  55. acl Safe_ports port 21 # ftp
  56. acl Safe_ports port 443 # https
  57. acl Safe_ports port 70 # gopher
  58. acl Safe_ports port 210 # wais
  59. acl Safe_ports port 1025-65535 # unregistered ports
  60. acl Safe_ports port 280 # http-mgmt
  61. acl Safe_ports port 488 # gss-http
  62. acl Safe_ports port 591 # filemaker
  63. acl Safe_ports port 777 # multiling http
  64. acl Safe_ports port 631 # cups
  65. acl Safe_ports port 873 # rsync
  66. acl Safe_ports port 901 # SWAT
  67. acl purge method PURGE
  68. acl CONNECT method CONNECT
  69. #---------
  70.  
  71.  
  72. http_access allow manager localhost
  73. http_access deny manager
  74.  
  75. # Only allow purge requests from localhost
  76. http_access allow purge localhost
  77. http_access deny purge
  78.  
  79. # Deny requests to unknown ports
  80. http_access deny !Safe_ports
  81.  
  82. # Deny CONNECT to other than SSL ports
  83. http_access deny CONNECT !SSL_ports
  84.  
  85.  
  86.  
  87. http_access allow localhost
  88. http_access allow labs !noper !peligrosos !multimedia !msn
  89. http_access allow oginf !noper !peligrosos !multimedia !msn
  90. http_access allow of_acad !noper !peligrosos !multimedia !msn
  91. http_access allow of_adm !noper !peligrosos !multimedia !msn
  92. http_access allow sinrango !noper !peligrosos !multimedia !msn
  93. #---------linea abajo agregada------>
  94. http_access allow msnin !noper !peligrosos !multimedia msn
  95. #---------linea arriba agregada------>
  96. http_access allow admin
  97.  
  98.  
  99. http_access deny msn
  100. http_access deny msn_aplication
  101. http_access deny msn_gateway
  102. http_access deny msn_ports
  103. http_access deny CONNECT msn_ports
  104. # And finally deny all other access to this proxy
  105. http_access deny all
  106.  
  107.  
  108. http_reply_access deny msn !msnin
  109.  
  110. # and finally allow by default
  111. http_reply_access allow all
  112.  
  113.  
  114.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement