Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. #!/bin/sh
  2. './configure'
  3. '--build=x86_64-linux-gnu'
  4. '--srcdir=.'
  5. '--prefix=/usr'
  6. '--includedir=/usr/include'
  7. '--localstatedir=/var'
  8. '--mandir=/usr/share/man'
  9. '--infodir=/usr/share/info'
  10. '--libexecdir=/usr/lib/squid'
  11. '--datadir=/usr/share/squid'
  12. '--sysconfdir=/etc/squid'
  13. '--localstatedir=/var'
  14. '--bindir=/usr/sbin'
  15. '--enable-inline'
  16. '--enable-ssl'
  17. '--enable-ssl-crtd'
  18. '--enable-icap-client'
  19. '--enable-follow-x-forwarded-for'
  20. '--enable-removal-policies=heap,lru'
  21. '--enable-delay-pools'
  22. '--enable-cache-digests'
  23. '--enable-storeio=ufs,aufs,diskd,rock'
  24. '--enable-disk-io'
  25. '--enable-linux-netfilter'
  26. '--enable-ipf-transparent'
  27. '--disable-eui'
  28. '--disable-snmp'
  29. '--disable-wccp'
  30. '--disable-wccpv2'
  31. '--disable-http-violations'
  32. '--disable-translation'
  33. '--disable-auto-locale'
  34. '--disable-htcp'
  35. '--disable-internal-dns'
  36. '--with-default-user=proxy'
  37. '--with-logdir=/var/log/squid/'
  38. '--with-pidfile=/var/run/squid.pid'
  39. '--with-filedescriptors=65536'
  40. '--with-cppunit-basedir=/usr'
  41. '--with-large-files'
  42. "$@"
  43.  
  44. http_port 10.5.0.86:3128
  45. http_port 10.5.0.86:8080 intercept
  46. visible_hostname proxyd.domain.com
  47. dns_nameservers 8.8.8.8 8.8.4.4
  48.  
  49. always_direct allow all
  50.  
  51. access_log stdio:/var/log/squid/access.log
  52. cache_log /var/log/squid/cache.log
  53. coredump_dir /var/cache/squid
  54. shutdown_lifetime 1 second
  55.  
  56. acl lan src 10.1.0.3/24
  57. acl pc src 10.2.0.3
  58.  
  59. http_access allow lan
  60. http_access allow pc
  61. http_access deny all
  62.  
  63. echo "1" > /proc/sys/net/ipv4/ip_forward
  64.  
  65. # Generated by iptables-save v1.4.14 on Fri Aug 29 16:43:22 2014
  66. *mangle
  67. :PREROUTING ACCEPT [2979:777594]
  68. :INPUT ACCEPT [2979:777594]
  69. :FORWARD ACCEPT [0:0]
  70. :OUTPUT ACCEPT [2715:858098]
  71. :POSTROUTING ACCEPT [2715:858098]
  72. -A PREROUTING -p tcp -m tcp --dport 8080 -j DROP
  73. COMMIT
  74. # Completed on Fri Aug 29 16:43:22 2014
  75. # Generated by iptables-save v1.4.14 on Fri Aug 29 16:43:22 2014
  76. *nat
  77. :PREROUTING ACCEPT [205:16651]
  78. :INPUT ACCEPT [211:17011]
  79. :OUTPUT ACCEPT [161:9775]
  80. :POSTROUTING ACCEPT [0:0]
  81. -A PREROUTING -s 10.5.0.86/32 -p tcp -m tcp --dport 80 -j ACCEPT
  82. -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
  83. -A POSTROUTING -j MASQUERADE
  84. COMMIT
  85. # Completed on Fri Aug 29 16:43:22 2014
  86.  
  87. 32 10.1.0.2 TCP_MISS/503 3942 GET http://www.serverfault.com/ - ORIGINAL_DST/10.5.0.86 text/html
  88. 166 10.1.0.2 TCP_MISS/503 3976 GET http://www.squid-cache.org/Artwork/SN.png - ORIGINAL_DST/10.5.0.86 text/html
  89. 0 10.1.0.2 TCP_MISS/503 3888 GET http://www.serverfault.com/favicon.ico - ORIGINAL_DST/10.5.0.86 text/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement