[squid-users] Logging

2017-05-23 Thread Garbacik, Joe
I am trying to separate logs so that in the log entries define why it was blocked. For example, I have created the following log formats: logformat MyAllowSuccessLog local_time="[%tl]" action=ALLOW status=SUCCESS ** orig_src_ip=%{X-Forwarded-For}>h proxy_src_ip=%>a proxy_src_port=%>p dst_ip=%Hs

Re: [squid-users] Logging

2017-05-23 Thread Alex Rousskov
On 05/23/2017 12:34 PM, Garbacik, Joe wrote: > I am trying to separate logs so that in the log entries define why it > was blocked. For example, I have created [one custom log format for each > blocking rule]. If there a better way to accomplish this? Yes, please see this very recent discussion:

[squid-users] logging to syslog

2015-11-10 Thread Avraham Serour
Hi, I'm using squid 3 and I want to send my access log to syslog, in my case it is /dev/log my conf entry is: access_log syslog:local5.info squid but it seems squid is not sending the logs, at least I'm not receiving nothing that seems to be coming from squid Any way I can specify the syslog soc

[squid-users] logging https websites

2015-12-09 Thread George Hollingshead
is there a simple way to log request made to https sites. I just want to see sites visited without having to set up tunneling and all this complex stuff i'm reading about. Hoping there's a simple way, and yes, i'm a newb but smart enough to have your awesome program running; hehe Thanx _

[squid-users] Logging of https

2016-03-24 Thread Markey, Bruce
I'm hoping this is a simple question, I've gotten/seen differing answers and I'd just like a final answer. With squid setup as a transparent proxy via wccp will there be any log entries for https sites, even just the ip? Just the initial get request is what I'd expect. ( I have no interest in

[squid-users] Logging in squid

2016-04-26 Thread Aashima Madaan
Hey, I have kept squid between a proxy and a server. Requests and response pass from proxy to squid to server and back. Does squid has any other logs except cache.log and access.log? are there any ways to improve squid logging or enable any debug logs? Thanks Aashima ___

[squid-users] Logging PROXY Protocol header

2018-01-15 Thread Bruce Pennypacker
Is it possible to configure Squid to log the details of the PROXY protocol when using it? We're running Squid 3.5.20 in AWS behind a TCP load balancer, which supports forwarding the PROXY protocol header. I'd like to be able to include the client IP as provided in the PROXY protocol header, but

Re: [squid-users] logging to syslog

2015-11-10 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 What is your syslog.conf settings? 10.11.15 22:34, Avraham Serour пишет: > Hi, > > I'm using squid 3 and I want to send my access log to syslog, in my case it > is /dev/log > my conf entry is: > access_log syslog:local5.info squid > > but it seems

Re: [squid-users] logging to syslog

2015-11-10 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 10.11.15 22:34, Avraham Serour пишет: > Hi, > > I'm using squid 3 and I want to send my access log to syslog, in my case it > is /dev/log > my conf entry is: > access_log syslog:local5.info squid > > but it seems squid is not sending the logs, at

Re: [squid-users] logging to syslog

2015-11-11 Thread Sebastian Kirschner
Hi Avraham, I think it wouldnt be a good idea to just create a symlink because squid (or the user under which squid runs) then must have access to the syslog, and if your squid instance get compromised the the syslog is open to read for these one. Best Regards Sebastian

Re: [squid-users] logging to syslog

2015-11-11 Thread Sebastian Kirschner
oc/config/access_log/). You could try ( I didn’t do it before) to use syslog as module and insert it in your squid.conf Best Regards Sebastian Von: Avraham Serour [mailto:tovm...@gmail.com] Gesendet: Mittwoch, 11. November 2015 11:48 An: Sebastian Kirschner Betreff: Re: [squid-users] logging

Re: [squid-users] logging to syslog

2015-11-11 Thread Avraham Serour
ments on squid page ( > http://www.squid-cache.org/Doc/config/access_log/). > > You could try ( I didn’t do it before) to use syslog as module and insert > it in your squid.conf > > Best Regards > Sebastian > > > Von: Avraham Serour [mailto:tovm...@gmail.com] > Gesen

Re: [squid-users] logging to syslog

2015-11-11 Thread Sebastian Kirschner
Also its a bit Off-Topic, I think it's a good idea that another user grep the information out of the access.log instead of let the access.log direct "write" in the syslog. In my eyes its more secure. Best Regards Sebastian ___ squid-users mailing li

Re: [squid-users] logging to syslog

2015-11-11 Thread Amos Jeffries
On 11/11/2015 9:11 p.m., Sebastian Kirschner wrote: > Hi Avraham, > > I think it wouldnt be a good idea to just create a symlink because squid (or > the user under which squid runs) then must have access to the syslog, > and if your squid instance get compromised the the syslog is open to read fo

Re: [squid-users] logging https websites

2015-12-09 Thread Leonardo Rodrigues
Em 09/12/15 13:11, George Hollingshead escreveu: is there a simple way to log request made to https sites. I just want to see sites visited without having to set up tunneling and all this complex stuff i'm reading about. Hoping there's a simple way, and yes, i'm a newb but smart enough to ha

Re: [squid-users] logging https websites

2015-12-09 Thread Amos Jeffries
On 10/12/2015 7:25 a.m., Leonardo Rodrigues wrote: > Em 09/12/15 13:11, George Hollingshead escreveu: >> is there a simple way to log request made to https sites. I just want >> to see sites visited without having to set up tunneling and all this >> complex stuff i'm reading about. >> >> Hoping th

Re: [squid-users] Logging of https

2016-03-24 Thread James Lay
On 2016-03-24 13:41, Markey, Bruce wrote: I'm hoping this is a simple question, I've gotten/seen differing answers and I'd just like a final answer. With squid setup as a transparent proxy via wccp will there be any log entries for https sites, even just the ip? Just the initial get request is

Re: [squid-users] Logging of https

2016-04-07 Thread Markey, Bruce
id-cache.org] On Behalf Of James Lay Sent: Thursday, March 24, 2016 4:14 PM To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Logging of https On 2016-03-24 13:41, Markey, Bruce wrote: > I'm hoping this is a simple question, I've gotten/seen differing > answers an

Re: [squid-users] Logging of https

2016-04-07 Thread James Lay
Box 1328, Lancaster, PA 17608-1328 -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of James Lay Sent: Thursday, March 24, 2016 4:14 PM To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Logging of https On 2016-03-24 13:41, Mark

Re: [squid-users] Logging of https

2016-04-07 Thread Markey, Bruce
word=LNP1 > 54 wccp2_service_info 70 protocol=tcp flags=dst_ip_hash priority=240 > ports=443 > 55 > > Bruce Markey | Network Security Analyst > STEINMAN COMMUNICATIONS > 717.291.8758 (o) | bmar...@steinmancommunications.com > 8 West King St | PO Box 1328, Lancaster,

Re: [squid-users] Logging in squid

2016-04-26 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Read squid.cache.documented carefully again: # LOGFILE OPTIONS # - # TAG: logformat #Usage: # #logformat # #Defines an access log format. # #The is a

Re: [squid-users] Logging in squid

2016-04-27 Thread Matus UHLAR - fantomas
On 26.04.16 15:20, Aashima Madaan wrote: I have kept squid between a proxy and a server. Requests and response pass from proxy to squid to server and back. between? Squid is a proxy, do you connect one proxy through another proxy? Why? -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.

Re: [squid-users] Logging variable question

2015-02-28 Thread Amos Jeffries
On 1/03/2015 4:55 a.m., Markus Moeller wrote: > Hi, > > I wonder about the total size variables st for squid logs > > # # >st Received request size including HTTP headers. In the > # case of chunked requests the chunked encoding metadata > # are not included > > I have set the l

Re: [squid-users] Logging variable question

2015-03-01 Thread Markus Moeller
Oh pretty old bug. Thank you Markus "Amos Jeffries" wrote in message news:54f26815.4020...@treenet.co.nz... On 1/03/2015 4:55 a.m., Markus Moeller wrote: Hi, I wonder about the total size variables st for squid logs # st Received request size including HTTP headers. In the # cas

[squid-users] Logging failed authentication attempts

2023-01-30 Thread Andrey K
Hello, I need to log failed Proxy-authentication attempts. The log information should contain timestamp, username and client IP address. 407-records in the access.log file do not contain username if NTLM-authentication is used. I was wondering if it is possible to set up such a configuration? Kin

Re: [squid-users] Logging PROXY Protocol header

2018-01-15 Thread Amos Jeffries
On 16/01/18 05:26, Bruce R wrote: Is it possible to configure Squid to log the details of the PROXY protocol when using it? We're running Squid 3.5.20 in AWS behind a TCP load balancer, which supports forwarding the PROXY protocol header. I'd like to be able to include the client IP as provided

Re: [squid-users] Logging failed authentication attempts

2023-01-30 Thread Amos Jeffries
On 31/01/2023 4:55 pm, Andrey K wrote: Hello, I need to log failed Proxy-authentication attempts. The log information should contain timestamp, username and client IP address. 407-records in the access.log file do not contain username if NTLM-authentication is used. I was wondering if it is p

Re: [squid-users] Logging failed authentication attempts

2023-01-30 Thread Andrey K
Hello Amos, Thank you for the information. I turned on squid debug_options 84,9 and see in the cashe.log that in the first NTLM_NEGOTIATE request (YR) there is no username: TlRMTVNTUAABBoIIAAA= 4e 54 4c 4d 53 53 50 00 01 00 00 00 06 82 08 00 |NTLMSSP.|

Re: [squid-users] Logging failed authentication attempts

2023-01-30 Thread Andrey K
Amos, I understood: the helper.cc does not parse the KK-request and does not know about the username. He can only get the username information from the reply of the external helper. But since the external helper returns only an error without a username, this information is missing from the logs.

Re: [squid-users] Logging failed authentication attempts

2023-01-30 Thread Amos Jeffries
On 31/01/2023 6:13 pm, Andrey K wrote: Amos, I understood: the helper.cc does not parse the KK-request and does not know about the username. He can only get the username information from the reply of the external helper. But since the external helper returns only an error without a username,

Re: [squid-users] Logging failed authentication attempts

2023-01-31 Thread Andrey K
Hello Amos, Thank you for the idea to write a wrapper script. As NTLM-helper returns "NA NT_STATUS_LOGON_FAILURE" during authentication failed, I think it is also required to patch the squid sources to copy the value of the user attribute, returned by the wrapper, to auth_user_request->user()->us

Re: [squid-users] Logging failed authentication attempts

2023-01-31 Thread Amos Jeffries
On 31/01/2023 9:16 pm, Andrey K wrote: Hello Amos, Thank you for the idea to write a wrapper script. As NTLM-helper returns "NA NT_STATUS_LOGON_FAILURE" during authentication failed, Oh. Your script should convert that old syntax to the current one:   ERR token=NT_STATUS_LOGON_FAILURE user=

Re: [squid-users] Logging failed authentication attempts

2023-01-31 Thread Andrey K
Hello Amos, You helped me very much. Kind regards Ankor вт, 31 янв. 2023 г. в 12:37, Amos Jeffries : > On 31/01/2023 9:16 pm, Andrey K wrote: > > Hello Amos, > > > > Thank you for the idea to write a wrapper script. > > > > As NTLM-helper returns "NA NT_STATUS_LOGON_FAILURE" during > > auth

[squid-users] logging and proxy pac file help

2016-06-03 Thread Andrew Meyer
So I have squid (latest) running in a a jail, and I am able to use it communicate with it via the browser. But I am trying to set it up so that I can use a proxy.pac file. I have the proxy.pac configured. Firefox is being used as my testbed. When I switch over the pac file I get nothing in the l

[squid-users] Logging ICAP headers in access log

2019-04-12 Thread johnr
Hi, I am attempting to log ICAP headers in the access log. Specifically, I modify my logformat directive to include something like {x-icap-info}icap::>h for a header x-icap-info that is available in the icap request headers. From the logformat documentation (http://www.squid-cache.org/Doc/config

[squid-users] Logging/stats for Delay Pools Under Squid?

2017-12-07 Thread Ralf Hildebrandt
I do know how to set-up delay pools, but how can I verify that they're working? Are there any logs or statictics? -- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebra...@charite.deCampus Benjamin Franklin https://www.charite.de Hindenburgdamm

Re: [squid-users] logging and proxy pac file help

2016-06-05 Thread Matus UHLAR - fantomas
On 03.06.16 22:51, Andrew Meyer wrote: So I have squid (latest) running in a a jail, and I am able to use it communicate with it via the browser. But I am trying to set it up so that I can use a proxy.pac file. I have the proxy.pac configured. Firefox is being used as my testbed. When I switc

Re: [squid-users] logging and proxy pac file help

2016-06-06 Thread Andrew Meyer
Ok, so I made some changes to the proxy.pac file and it looks like this now. function FindProxyForURL(url, host) {    //Don't proxy connections to the UTM web interface    if (shExpMatch(url, "https://borg.local*";)) return "DIRECT";    if (shExpMatch(url, "https://"; + dnsResolve(host) + "*")) r

Re: [squid-users] Logging ICAP headers in access log

2019-04-12 Thread Amos Jeffries
On 13/04/19 9:21 am, johnr wrote: > Hi, > > I am attempting to log ICAP headers in the access log. Specifically, I > modify my logformat directive to include something like > {x-icap-info}icap::>h for a header x-icap-info that is available in the icap > request headers. > > From the logformat do

Re: [squid-users] Logging ICAP headers in access log

2019-04-15 Thread Alex Rousskov
On 4/12/19 3:21 PM, johnr wrote: > I am attempting to log ICAP headers in the access log. Specifically, I > modify my logformat directive to include something like > {x-icap-info}icap::>h for a header x-icap-info that is available in the icap > request headers. I have not tested this, but I doub

[squid-users] Logging in Squid external helpers in Docker?

2021-12-27 Thread roee klinger
Hey, I am running Squid inside a Docker container, and I am using an external helper, I am trying to get the logs from the external helper to go to Docker logs (stdout). Currently, I am writing the logs to a file, which works, but I would like to get them to stdout instead, however, Squid redirec

[squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-03-30 Thread Waldemar Brodkorb
Hi Squid Community, we recently updated one of our stage 1 proxies to Ubuntu 22.04 with Squid 5.8. The setup is like so: clients <-> loadbalancer <-> stage 1 proxies <-> stage 2 proxies <-> internet Now the cache.log on the stage 1 proxy is polluted with a lot of messages like: TCP connection to

Re: [squid-users] Logging/stats for Delay Pools Under Squid?

2017-12-07 Thread Amos Jeffries
On 08/12/17 01:19, Ralf Hildebrandt wrote: I do know how to set-up delay pools, but how can I verify that they're working? Are there any logs or statictics? The cache manager report "delay" lists details of the pools. The 'active_requests' listing also shows for each request which pool(s) it

Re: [squid-users] Logging/stats for Delay Pools Under Squid?

2017-12-07 Thread Alex Rousskov
On 12/07/2017 07:26 AM, Amos Jeffries wrote: > On 08/12/17 01:19, Ralf Hildebrandt wrote: >> I do know how to set-up delay pools, but how can I verify that they're >> working? Are there any logs or statictics? > The cache manager report "delay" lists details of the pools. > The 'active_requests' l

[squid-users] Logging ACL that triggered denied access with http_access

2016-04-25 Thread Stephen Borrill
Is there a way to log which ACL caused a block with http_access? This information is present for deny_info to use, but I cannot see a entry I can add to logformat to present such a thing in a custom log format (if using an external acl helper, you can spoof something up with the et and ea formats).

Re: [squid-users] Logging in Squid external helpers in Docker?

2021-12-27 Thread Amos Jeffries
On 28/12/21 18:32, roee klinger wrote: Hey, I am running Squid inside a Docker container, and I am using an external helper, I am trying to get the logs from the external helper to go to Docker logs (stdout). Currently, I am writing the logs to a file, which works, but I would like to get t

Re: [squid-users] Logging in Squid external helpers in Docker?

2021-12-27 Thread roee klinger
> > stdout of the helper is the channel to respond to Squid requests. Do not > send other information there. Helper debug info etc should go to the helper stderr which Squid will > deliver to cache.log. Thank you, Amos. I am glad there is a built-in way to handle this. However, I tried puttin

Re: [squid-users] Logging in Squid external helpers in Docker?

2021-12-27 Thread Amos Jeffries
On 28/12/21 19:01, roee klinger wrote: stdout of the helper is the channel to respond to Squid requests. Do not send other information there. Helper debug info etc should go to the helper stderr which Squid will deliver to cache.log. Thank you, Amos. I am glad there is a buil

Re: [squid-users] Logging in Squid external helpers in Docker?

2021-12-28 Thread Alex Rousskov
On 12/28/21 12:32 AM, roee klinger wrote: > I am running Squid inside a Docker container, and I am using an external > helper, I am trying to get the logs from the external helper to go to > Docker logs (stdout). > > Currently, I am writing the logs to a file, which works, but I would > like to ge

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-02 Thread Alex Rousskov
On 3/30/23 07:58, Waldemar Brodkorb wrote: we recently updated one of our stage 1 proxies to Ubuntu 22.04 with Squid 5.8. The setup is like so: clients <-> loadbalancer <-> stage 1 proxies <-> stage 2 proxies <-> internet Now the cache.log on the stage 1 proxy is polluted with a lot of messages

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-06 Thread Waldemar Brodkorb
Hi Alex, Alex Rousskov wrote, Thanks for your detailed answer. > On 3/30/23 07:58, Waldemar Brodkorb wrote: > > > we recently updated one of our stage 1 proxies to Ubuntu 22.04 with > > Squid 5.8. The setup is like so: > > clients <-> loadbalancer <-> stage 1 proxies <-> stage 2 proxies <-> > >

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-06 Thread Alex Rousskov
On 4/6/23 06:41, Waldemar Brodkorb wrote: There is still one assertion which happens sometimes: cache.log:2023/04/06 07:24:48 kid1| assertion failed: ../src/base/CbcPointer.h:181: "EX" Have you ever seen this in the wild? What does it mean? This low-level assertion (where "EX" is usually spe

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-14 Thread Waldemar Brodkorb
Hi Alex, Alex Rousskov wrote, > On 4/6/23 06:41, Waldemar Brodkorb wrote: > > > There is still one assertion which happens sometimes: > > cache.log:2023/04/06 07:24:48 kid1| assertion failed: > > ../src/base/CbcPointer.h:181: "EX" > > > > Have you ever seen this in the wild? What does it mean?

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-14 Thread Alex Rousskov
On 4/14/23 05:29, Waldemar Brodkorb wrote: On 4/6/23 06:41, Waldemar Brodkorb wrote: There is still one assertion which happens sometimes: cache.log:2023/04/06 07:24:48 kid1| assertion failed: ../src/base/CbcPointer.h:181: "EX" Have you ever seen this in the wild? What does it mean? This lo

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-25 Thread Waldemar Brodkorb
Hi Alex, Alex Rousskov wrote, > On 4/14/23 05:29, Waldemar Brodkorb wrote: > > > On 4/6/23 06:41, Waldemar Brodkorb wrote: > > > > > > > There is still one assertion which happens sometimes: > > > > cache.log:2023/04/06 07:24:48 kid1| assertion failed: > > > > ../src/base/CbcPointer.h:181: "EX"

Re: [squid-users] logging: TCP connection to x.x.x.x/3128 failed

2023-04-25 Thread Alex Rousskov
On 4/25/23 03:07, Waldemar Brodkorb wrote: Alex Rousskov wrote, On 4/14/23 05:29, Waldemar Brodkorb wrote: On 4/6/23 06:41, Waldemar Brodkorb wrote: There is still one assertion which happens sometimes: cache.log:2023/04/06 07:24:48 kid1| assertion failed: ../src/base/CbcPointer.h:181: "EX"

Re: [squid-users] Logging ACL that triggered denied access with http_access

2016-04-25 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Usually for this task uses external url rewriter which has own block log. For example, ufdbguard/squidguard/dansguardian etc. Also you can use DB-based ACL's to this task. Which is better than manual maintained huge plain-text inclusions in squid.

Re: [squid-users] Logging ACL that triggered denied access with http_access

2016-04-25 Thread Amos Jeffries
On 26/04/2016 3:51 a.m., Stephen Borrill wrote: > Is there a way to log which ACL caused a block with http_access? This > information is present for deny_info to use, but I cannot see a entry I > can add to logformat to present such a thing in a custom log format (if > using an external acl helper,

[squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-24 Thread Henry S. Thompson
I've searched the documentation and mailing list archives w/o success, and am not competent to read the source, so asking here: what is logged as the 'remotehost' in Squid logs when a request that has been encapsulated, as in from a machine on a local network behind a router implementing NAT, or fr

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-24 Thread Leonardo Rodrigues
Em 24/06/15 15:28, Henry S. Thompson escreveu: I've searched the documentation and mailing list archives w/o success, and am not competent to read the source, so asking here: what is logged as the 'remotehost' in Squid logs when a request that has been encapsulated, as in from a machine on a loca

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-26 Thread Henry S. Thompson
Leonardo Rodrigues writes: > Em 24/06/15 15:28, Henry S. Thompson escreveu: >> I've searched the documentation and mailing list archives w/o success, >> and am not competent to read the source, so asking here: what is >> logged as the 'remotehost' in Squid logs when a request that has been >> enca

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-26 Thread Antony Stone
On Friday 26 Jun 2015 at 09:51, Henry S. Thompson wrote: > > logs will show the IP address that reached squid, ie. the source > > address of the connection. If that was NATted, squid will never know > > (and thus is not able to log) the original address before the NAT. > > That's what I assum

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-26 Thread Henry S. Thompson
Antony Stone writes: > On Friday 26 Jun 2015 at 09:51, Henry S. Thompson wrote: > >> > logs will show the IP address that reached squid, ie. the source >> > address of the connection. If that was NATted, squid will never know >> > (and thus is not able to log) the original address before the N

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-26 Thread Antony Stone
On Friday 26 Jun 2015 at 10:42, Henry S. Thompson wrote: > Antony Stone writes: > > > > It's entirely plausible (I'd even say common) for VPN clients to get > > 192.168 addresses; also if there's a NATting router in the path > > and Squid is logging its address, that could easily be 192.168..

Re: [squid-users] Logging of 'indirect' requests, e.g. involving NAT or VPN

2015-06-26 Thread Henry S. Thompson
Antony Stone writes: > Imagine the following setup: > > Organisation has a bunch of servers (maybe at their office in a > server room, maybe in a data centre, doesn't matter which), some of > which have public IPs, but all of which have private IPs on an > internal subnet (for system management pu