Created
September 1, 2013 08:54
-
-
Save heartpunk/6403177 to your computer and use it in GitHub Desktop.
a problem I'm having with squid.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@precise64:~# docker run 4d81efd4322a `which bash` -c "http_proxy=\"http://172.17.42.1:3128/\" curl -v wikipedia.org>/dev/null" | |
WARNING: IPv4 forwarding is disabled. | |
* About to connect() to proxy 172.17.42.1 port 3128 (#0) | |
* Trying 172.17.42.1... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected | |
* Connected to 172.17.42.1 (172.17.42.1) port 3128 (#0) | |
> GET HTTP://wikipedia.org HTTP/1.1 | |
> User-Agent: curl/7.27.0 | |
> Host: wikipedia.org | |
> Accept: */* | |
> Proxy-Connection: Keep-Alive | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 403 Forbidden | |
< Server: squid/3.1.19 | |
< Mime-Version: 1.0 | |
< Date: Sun, 01 Sep 2013 08:53:24 GMT | |
< Content-Type: text/html | |
< Content-Length: 3152 | |
< X-Squid-Error: ERR_ACCESS_DENIED 0 | |
< Vary: Accept-Language | |
< Content-Language: en | |
< X-Cache: MISS from localhost | |
< X-Cache-Lookup: NONE from localhost:3128 | |
< Via: 1.0 localhost (squid/3.1.19) | |
* HTTP/1.0 connection set to keep alive! | |
< Connection: keep-alive | |
< | |
{ [data not shown] | |
100 3152 100 3152 0 0 1063k 0 --:--:-- --:--:-- --:--:-- 1539k | |
* Connection #0 to host 172.17.42.1 left intact | |
* Closing connection #0 | |
root@precise64:~# cat squid.conf | |
acl 172 src 172.17.0.0/16 | |
http_access allow 172 | |
http_port 172.17.42.1:3128 | |
root@precise64:~# tail /var/log/squid3/access.log | |
1378024542.733 0 172.17.0.46 TCP_DENIED/403 3625 GET http://wikipedia.org/ - NONE/- text/html | |
1378024854.094 0 172.17.0.55 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378024922.180 0 172.17.0.56 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025120.504 0 172.17.0.57 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025424.994 0 172.17.0.58 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025575.751 0 172.17.0.59 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025580.108 0 172.17.0.60 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025589.071 0 172.17.0.61 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025596.377 0 172.17.0.62 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html | |
1378025604.181 0 172.17.0.63 TCP_DENIED/403 3515 GET http://wikipedia.org/ - NONE/- text/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment