squid

Sonarqube: Squid Rules customization/suppression

女生的网名这么多〃 提交于 2019-12-12 14:48:39
问题 I have spent a day migrating all PMD and Checkstyle rules to the new Squid rules, as the PMD/Checkstyle ones are marked as deprecated. However, some fine tuning options which I am used to with PMD/CS, are not present in Squid. As a result, Sonar is cluttered with thousands of issues which reports nothing of real value. Example 1 Rule: BadConstantName_S00115_Check / S00115 All our enums are implemented with camelCase instead of CONSTANT_NAME, e.g.: public enum Classification { PoorMinus(1),

Blocking HTTPS sites through Squid

柔情痞子 提交于 2019-12-12 10:21:24
问题 Can I block https://www.facebook.com through Squid? It is working very nicely except HTTPS sites I am using Squid 3.1 in Debian 7 回答1: Yes, you can. You should also block it with CONNECT: acl fb dstdomain .facebook.com http_reply_access deny fb http_access deny CONNECT fb then: squid3 -k reconfigure or squid -k reconfigure Now, it is done! 来源: https://stackoverflow.com/questions/25518442/blocking-https-sites-through-squid

c# HttpWebRequest not sending default credentials to proxy server

孤街浪徒 提交于 2019-12-12 09:43:23
问题 I am using squid proxy server to authenticate the client before passing on the request to public network. I haven't set HttpWebRequest.Proxy object so I am assuming that the web request will take the default window credentials and pass on to the proxy server. I have added an entry of the user to squid proxy as well, but I am getting the following error while making the request.: (407) Proxy Authentication Required. In squid logs, I am getting this: TCP_DENIED/407 3722 CONNECT I have inserted

Port Forwarding for Squid

自古美人都是妖i 提交于 2019-12-12 06:18:41
问题 I'm trying to setup a Squid server on a virtual machine, and there will be another machine which will be connecting to the internet via Squid server. The problem is I couldn't find out how to get traffic with Squid server. I've read that port-forwarding is the way to go, and searched for it. Still, no examples/answers about that matter. I've wrote the rules for Squid, and tested it. It's not catching the traffic, at any level. Anything will help me out of this. Thanks in advance. 回答1: I wrote

Squid - 400 on POST request

岁酱吖の 提交于 2019-12-12 03:54:35
问题 The following HTTP request returns a 400 ERR_INVALID_REQ - POST http://distservp1.pb.com/dstproduct.asp HTTP/1.1 Proxy-Authorization: Basic Og== Host: distservp1.pb.com Connection: close Content-type: application/x-www-form-urlencoded Content-length: 638 PBXML=%3CSignonReq%3E%0D%0A%0... The response (body contains no additional information)- HTTP/1.0 400 Bad Request Server: squid/2.7.STABLE8 Date: Wed, 04 Jan 2017 09:07:16 GMT Content-Type: text/html Content-Length: 2054 X-Squid-Error: ERR

Forbidden 403 - cached in squid proxy?

纵饮孤独 提交于 2019-12-11 18:00:38
问题 It seems that squid proxy somehow remembers the 403 Forbidden response and remembers it even if you reload the page which is already accessible. Steps to reproduce: Put some restriction to .htaccess (like deny from all ). Open in browser, connected via squid proxy, error 403 appears. Remove the restriction from .htaccess. Reload the page - the error 403 is still present! 回答1: Look at negative_ttl parameter. 来源: https://stackoverflow.com/questions/9807123/forbidden-403-cached-in-squid-proxy

how to setup proxy server to redirect requests based on domain requested

强颜欢笑 提交于 2019-12-11 15:12:28
问题 I need to setup a proxy server, so that the "real" servers only receive requests from the proxy and no one else. Basically, somthing like this: client1 requests someServer1.myproxy.tld myproxy.tld forwards and maintains comunication back and forward to someServer1.tld Client1 Client2 Client3 \ | / \ | / \ | / --------------- | myproxy.tld | --------------- / | \ / | \ / | \ Server1 Server2 Server3 Is this possible with squid? If yes, can someone point me in the right direction? If not, which

CakePHP: HTTP Header is being interpreted as part of my static content (JS, CSS)

我的梦境 提交于 2019-12-11 11:54:39
问题 I'm encountering a strange error in my web app running CakePHP 2.6: Random static content files are taking forever to load, and when they do take forever to load, they don't work properly. These files are living where I generally assumed they were supposed to: /app/webroot/css and app/webroot/js . In this screenshot, a JS file takes 10 seconds: When the static content is JavaScript, it triggers a syntax error: Previewing the response, we see that the HTTP header is being interpreted as part

Anonymous proxy not working only for Firefox. For Chrome - OK

天涯浪子 提交于 2019-12-11 07:52:52
问题 I tried to configure anonymous proxy (centos+squid), but some sites still shows me my external IP (not proxy IP) for Firefox only. So, squid configuration as follows: server_persistent_connections off forwarded_for off request_header_access From deny all request_header_access Referer deny all request_header_access Proxy-Connection deny all request_header_access Server deny all request_header_access Via deny all request_header_access WWW-Authenticate deny all request_header_access X-Forwarded

One IP address per virtual terminal “screen” on Ubuntu

混江龙づ霸主 提交于 2019-12-11 07:32:40
问题 I have multiple public IP address and I need to associate one per virtual terminal "screen". Example: IP 1: screen -dmS nameScreen1 ffmpeg etc... IP 2: screen -dmS nameScreen2 ffmpeg etc... IP 2: screen -dmS nameScreen3 streamlink etc... IP 2: screen -dmS nameScreen4 youtube-dl etc... IP 3: screen -dmS nameScreen5 ffmpeg etc... I thinked about using X-Forwarded-For in --header to associate a private IP per "screen". With Squid or Network-manager write something like: For private IP 1 use