New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
ThomasCr opened this issue
Mar 26, 2019
· 9 comments
Assignees
Comments
Hi,
I try to change logformat, because I want to log dns names, instead of ip adresses — so I changed the a to A from the default definition. But squid’s cache.log shows the error message:
ERROR: logformat squid is already defined. Ignoring
But logformat is in squid.conf only once defined. I also checked the includes from and the /etc/squid/conf.d/*
Any Idea what happened?
I use your version:
root@proxy:~# dpkg -l|grep squid
ii squid 4.6-1 amd64 Full featured Web Proxy cache (HTTP proxy)
ii squid-common 4.6-1 all Full featured Web Proxy cache (HTTP proxy) - common files
ii squid-langpack 20170901-1 all Localized error pages for Squid
ii squidanalyzer 6.6-1ubuntu0~bionic1 all Squid proxy log analyzer and report generator
ii squidclient 4.6-1 amd64 Full featured Web Proxy cache (HTTP proxy) - HTTP(S) message utility
ii squidguard 1.5-6 amd64 filter and redirector plugin for Squid
When I use the same conf and downgrade with the follow command to distibution packages from 18.04 the logformat works without any problems:
apt install squid=3.5.27-1ubuntu1.1 squid-common=3.5.27-1ubuntu1.1 squidclient=3.5.27-1ubuntu1.1
Hello Thomas,
What exactly do I need to put into Squid conf of 4.6 to reproduce the problem?
there is a default line for squid logformat — just copy it comment it in and change the first small a to A.
# The default formats available (which do not need re-defining) are:
#
#logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
logformat squid %ts.%03tu %6tr %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
thats how it worked on squid 3.5
Hi, have you found time to take a look into it?
Not yet. Was busy with dnssafety 0.6
☹
From: ThomasCr <notifications@github.com>
Sent: Wednesday, 10 April 2019 19:26
To: diladele/squid-ubuntu <squid-ubuntu@noreply.github.com>
Cc: Rafael Akchurin <rafael.akchurin@diladele.com>; Assign <assign@noreply.github.com>
Subject: Re: [diladele/squid-ubuntu] ERROR: logformat squid is already defined. Ignoring (#6)
Hi, have you found time to take a look into it?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACbT1q3TM_2EDeY-dqNjyA9n2KFBWxXvks5vfh6QgaJpZM4cMVQs>.
Ok, I have found a workaround — I define my own logformat
and override access_log
definition like this:
logformat squid-host %ts.%03tu %6tr %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
access_log daemon:/var/log/squid/access.log squid-host
2 participants
ThomasCr opened this issue 4 years ago · comments
Hi,
I try to change logformat, because I want to log dns names, instead of ip adresses — so I changed the a to A from the default definition. But squid’s cache.log shows the error message:
ERROR: logformat squid is already defined. Ignoring
But logformat is in squid.conf only once defined. I also checked the includes from and the /etc/squid/conf.d/*
Any Idea what happened?
I use your version:
root@proxy:~# dpkg -l|grep squid
ii squid 4.6-1 amd64 Full featured Web Proxy cache (HTTP proxy)
ii squid-common 4.6-1 all Full featured Web Proxy cache (HTTP proxy) - common files
ii squid-langpack 20170901-1 all Localized error pages for Squid
ii squidanalyzer 6.6-1ubuntu0~bionic1 all Squid proxy log analyzer and report generator
ii squidclient 4.6-1 amd64 Full featured Web Proxy cache (HTTP proxy) - HTTP(S) message utility
ii squidguard 1.5-6 amd64 filter and redirector plugin for Squid
When I use the same conf and downgrade with the follow command to distibution packages from 18.04 the logformat works without any problems:
apt install squid=3.5.27-1ubuntu1.1 squid-common=3.5.27-1ubuntu1.1 squidclient=3.5.27-1ubuntu1.1
Hello Thomas,
What exactly do I need to put into Squid conf of 4.6 to reproduce the problem?
there is a default line for squid logformat — just copy it comment it in and change the first small a to A.
# The default formats available (which do not need re-defining) are:
#
#logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
logformat squid %ts.%03tu %6tr %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
thats how it worked on squid 3.5
Hi, have you found time to take a look into it?
Not yet. Was busy with dnssafety 0.6
☹
From: ThomasCr <notifications@github.com>
Sent: Wednesday, 10 April 2019 19:26
To: diladele/squid-ubuntu <squid-ubuntu@noreply.github.com>
Cc: Rafael Akchurin <rafael.akchurin@diladele.com>; Assign <assign@noreply.github.com>
Subject: Re: [diladele/squid-ubuntu] ERROR: logformat squid is already defined. Ignoring (#6)
Hi, have you found time to take a look into it?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACbT1q3TM_2EDeY-dqNjyA9n2KFBWxXvks5vfh6QgaJpZM4cMVQs>.
Ok, I have found a workaround — I define my own logformat
and override access_log
definition like this:
logformat squid-host %ts.%03tu %6tr %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
access_log daemon:/var/log/squid/access.log squid-host
Usage: logformat <name> <format specification> Defines an access log format. The <format specification> is a string with embedded % format codes % format codes all follow the same basic structure where all components but the formatcode are optional and usually unnecessary, especially when dealing with common codes. % [encoding] [-] [[0]width] [{arg}] formatcode [{arg}] encoding escapes or otherwise protects "special" characters: " Quoted string encoding where quote(") and backslash() characters are -escaped while CR, LF, and TAB characters are encoded as r, n, and t two-character sequences. [ Custom Squid encoding where percent(%), square brackets([]), backslash() and characters with codes outside of [32,126] range are %-encoded. SP is not encoded. Used by log_mime_hdrs. # URL encoding (a.k.a. percent-encoding) where all URL unsafe and control characters (per RFC 1738) are %-encoded. / Shell-like encoding where quote(") and backslash() characters are -escaped while CR and LF characters are encoded as r and n two-character sequences. Values containing SP character(s) are surrounded by quotes("). ' Raw/as-is encoding with no escaping/quoting. Default encoding: When no explicit encoding is specified, each %code determines its own encoding. Most %codes use raw/as-is encoding, but some codes use a so called "pass-through URL encoding" where all URL unsafe and control characters (per RFC 1738) are %-encoded, but the percent character(%) is left as is. - left aligned width minimum and/or maximum field width: [width_min][.width_max] When minimum starts with 0, the field is zero-padded. String values exceeding maximum width are truncated. {arg} argument such as header name etc. This field may be placed before or after the token, but not both at once. Format codes: % a literal % character sn Unique sequence number per log line entry err_code The ID of an error response served by Squid or a similar internal error identifier. err_detail Additional err_code-dependent error information. note The annotation specified by the argument. Also logs the adaptation meta headers set by the adaptation_meta configuration parameter. If no argument given all annotations logged. The argument may include a separator to use with annotation values: name[:separator] By default, multiple note values are separated with "," and multiple notes are separated with "rn". When logging named notes with %{name}note, the explicitly configured separator is used between note values. When logging all notes with %note, the explicitly configured separator is used between individual notes. There is currently no way to specify both value and notes separators when logging all notes with %note. master_xaction The master transaction identifier is an unsigned integer. These IDs are guaranteed to monotonically increase within a single worker process lifetime, with higher values corresponding to transactions that were accepted or initiated later. Due to current implementation deficiencies, some IDs are skipped (i.e. never logged). Concurrent workers and restarted workers use similar, overlapping sequences of master transaction IDs. Connection related format codes: >a Client source IP address >A Client FQDN >p Client source port >eui Client source EUI (MAC address, EUI-48 or EUI-64 identifier) >la Local IP address the client connected to >lp Local port number the client connected to >qos Client connection TOS/DSCP value set by Squid >nfmark Client connection netfilter packet MARK set by Squid transport::>connection_id Identifies a transport connection accepted by Squid (e.g., a connection carrying the logged HTTP request). Currently, Squid only supports TCP transport connections. The logged identifier is an unsigned integer. These IDs are guaranteed to monotonically increase within a single worker process lifetime, with higher values corresponding to connections that were accepted later. Many IDs are skipped (i.e. never logged). Concurrent workers and restarted workers use similar, partially overlapping sequences of IDs. la Local listening IP address the client connection was connected to. lp Local listening port number the client connection was connected to. <a Server IP address of the last server or peer connection <A Server FQDN or peer name <p Server port number of the last server or peer connection <la Local IP address of the last server or peer connection <lp Local port number of the last server or peer connection <qos Server connection TOS/DSCP value set by Squid <nfmark Server connection netfilter packet MARK set by Squid >handshake Raw client handshake Initial client bytes received by Squid on a newly accepted TCP connection or inside a just established CONNECT tunnel. Squid stops accumulating handshake bytes as soon as the handshake parser succeeds or fails (determining whether the client is using the expected protocol). For HTTP clients, the handshake is the request line. For TLS clients, the handshake consists of all TLS records up to and including the TLS record that contains the last byte of the first ClientHello message. For clients using an unsupported protocol, this field contains the bytes received by Squid at the time of the handshake parsing failure. See the on_unsupported_protocol directive for more information on Squid handshake traffic expectations. Current support is limited to these contexts: - http_port connections, but only when the on_unsupported_protocol directive is in use. - https_port connections (and CONNECT tunnels) that are subject to the ssl_bump peek or stare action. To protect binary handshake data, this field is always base64-encoded (RFC 4648 Section 4). If logformat field encoding is configured, that encoding is applied on top of base64. Otherwise, the computed base64 value is recorded as is. Time related format codes: ts Seconds since epoch tu subsecond time (milliseconds) tl Local time. Optional strftime format argument default %d/%b/%Y:%H:%M:%S %z tg GMT time. Optional strftime format argument default %d/%b/%Y:%H:%M:%S %z tr Response time (milliseconds) dt Total time spent making DNS lookups (milliseconds) tS Approximate master transaction start time in <full seconds since epoch>.<fractional seconds> format. Currently, Squid considers the master transaction started when a complete HTTP request header initiating the transaction is received from the client. This is the same value that Squid uses to calculate transaction response time when logging %tr to access.log. Currently, Squid uses millisecond resolution for %tS values, similar to the default access.log "current time" field (%ts.%03tu). busy_time Time spent in transaction-related code (nanoseconds) This cumulative measurement excludes periods of time when the transaction was waiting (e.g., for a server or helper response) while Squid worked on other transactions or was engaged in transaction-unrelated activities (e.g., generating a cache index). In other words, this measurement represents the total amount of physical time when Squid was busy working on this transaction. WARNING: This measurement relies on Squid transaction context tracking features that currently have known context leak bugs and coverage gaps. Until those features are fully implemented, logged values may significantly understate or exaggerate actual times. Do not use this measurement unless you know it works in your case. Access Control related format codes: et Tag returned by external acl ea Log string returned by external acl un User name (any available) ul User name from authentication ue User name from external acl helper ui User name from ident un A user name. Expands to the first available name from the following list of information sources: - authenticated user name, like %ul - user name supplied by an external ACL, like %ue - SSL client name, like %us - ident user name, like %ui credentials Client credentials. The exact meaning depends on the authentication scheme: For Basic authentication, it is the password; for Digest, the realm sent by the client; for NTLM and Negotiate, the client challenge or client credentials prefixed with "YR " or "KK ". HTTP related format codes: REQUEST [http::]rm Request method (GET/POST etc) [http::]>rm Request method from client [http::]<rm Request method sent to server or peer [http::]ru Request URL received (or computed) and sanitized Logs request URI received from the client, a request adaptation service, or a request redirector (whichever was applied last). Computed URLs are URIs of internally generated requests and various "error:..." URIs. Honors strip_query_terms and uri_whitespace. This field is not encoded by default. Encoding this field using variants of %-encoding will clash with uri_whitespace modifications that also use %-encoding. [http::]>ru Request URL received from the client (or computed) Computed URLs are URIs of internally generated requests and various "error:..." URIs. Unlike %ru, this request URI is not affected by request adaptation, URL rewriting services, and strip_query_terms. Honors uri_whitespace. This field is using pass-through URL encoding by default. Encoding this field using other variants of %-encoding will clash with uri_whitespace modifications that also use %-encoding. [http::]<ru Request URL sent to server or peer [http::]>rs Request URL scheme from client [http::]<rs Request URL scheme sent to server or peer [http::]>rd Request URL domain from client [http::]<rd Request URL domain sent to server or peer [http::]>rP Request URL port from client [http::]<rP Request URL port sent to server or peer [http::]rp Request URL path excluding hostname [http::]>rp Request URL path excluding hostname from client [http::]<rp Request URL path excluding hostname sent to server or peer [http::]rv Request protocol version [http::]>rv Request protocol version from client [http::]<rv Request protocol version sent to server or peer [http::]>h Original received request header. Usually differs from the request header sent by Squid, although most fields are often preserved. Accepts optional header field name/value filter argument using name[:[separator]element] format. [http::]>ha Received request header after adaptation and redirection (pre-cache REQMOD vectoring point). Usually differs from the request header sent by Squid, although most fields are often preserved. Optional header name argument as for >h RESPONSE [http::]<Hs HTTP status code received from the next hop [http::]>Hs HTTP status code sent to the client [http::]<h Reply header. Optional header name argument as for >h [http::]mt MIME content type SIZE COUNTERS [http::]st Total size of request + reply traffic with client [http::]>st Total size of request received from client. Excluding chunked encoding bytes. [http::]<st Total size of reply sent to client (after adaptation) [http::]>sh Size of request headers received from client [http::]<sh Size of reply headers sent to client (after adaptation) [http::]<sH Reply high offset sent [http::]<sS Upstream object size [http::]<bs Number of HTTP-equivalent message body bytes received from the next hop, excluding chunked transfer encoding and control messages. Generated FTP listings are treated as received bodies. TIMING [http::]<pt Peer response time in milliseconds. The timer starts when the last request byte is sent to the next hop and stops when the last response byte is received. [http::]<tt Total time in milliseconds. The timer starts with the first connect request (or write I/O) sent to the first selected peer. The timer stops with the last I/O with the last peer. Squid handling related format codes: Ss Squid request status (TCP_MISS etc) Sh Squid hierarchy status (DEFAULT_PARENT etc) [http::]request_attempts Number of request forwarding attempts See forward_max_tries documentation that details what Squid counts as a forwarding attempt. Pure cache hits log zero, but cache hits that triggered HTTP cache revalidation log the number of attempts made when sending an internal revalidation request. DNS, ICMP, ICP, HTCP, ESI, ICAP, eCAP, helper, and other secondary requests sent by Squid as a part of a master transaction do not increment the counter logged for the received request. SSL-related format codes: ssl::bump_mode SslBump decision for the transaction: For CONNECT requests that initiated bumping of a connection and for any request received on an already bumped connection, Squid logs the corresponding SslBump mode ("splice", "bump", "peek", "stare", "terminate", "server-first" or "client-first"). See the ssl_bump option for more information about these modes. A "none" token is logged for requests that triggered "ssl_bump" ACL evaluation matching a "none" rule. In all other cases, a single dash ("-") is logged. ssl::>sni SSL client SNI sent to Squid. ssl::>cert_subject The Subject field of the received client SSL certificate or a dash ('-') if Squid has received an invalid/malformed certificate or no certificate at all. Consider encoding the logged value because Subject often has spaces. ssl::>cert_issuer The Issuer field of the received client SSL certificate or a dash ('-') if Squid has received an invalid/malformed certificate or no certificate at all. Consider encoding the logged value because Issuer often has spaces. ssl::<cert_subject The Subject field of the received server TLS certificate or a dash ('-') if this is not available. Consider encoding the logged value because Subject often has spaces. ssl::<cert_issuer The Issuer field of the received server TLS certificate or a dash ('-') if this is not available. Consider encoding the logged value because Issuer often has spaces. ssl::<cert The received server x509 certificate in PEM format, including BEGIN and END lines (or a dash ('-') if the certificate is unavailable). WARNING: Large certificates will exceed the current 8KB access.log record limit, resulting in truncated records. Such truncation usually happens in the middle of a record field. The limit applies to all access logging modules. The logged certificate may have failed validation and may not be trusted by Squid. This field does not include any intermediate certificates that may have been received from the server or fetched during certificate validation process. Currently, Squid only collects server certificates during step3 of SslBump processing; connections that were not subject to ssl_bump rules or that did not match a peek or stare rule at step2 will not have the server certificate information. This field is using pass-through URL encoding by default. ssl::<cert_errors The list of certificate validation errors detected by Squid (including OpenSSL and certificate validation helper components). The errors are listed in the discovery order. By default, the error codes are separated by ':'. Accepts an optional separator argument. %ssl::>negotiated_version The negotiated TLS version of the client connection. %ssl::<negotiated_version The negotiated TLS version of the last server or peer connection. %ssl::>received_hello_version The TLS version of the Hello message received from TLS client. %ssl::<received_hello_version The TLS version of the Hello message received from TLS server. %ssl::>received_supported_version The maximum TLS version supported by the TLS client. %ssl::<received_supported_version The maximum TLS version supported by the TLS server. %ssl::>negotiated_cipher The negotiated cipher of the client connection. %ssl::<negotiated_cipher The negotiated cipher of the last server or peer connection. If ICAP is enabled, the following code becomes available (as well as ICAP log codes documented with the icap_log option): icap::tt Total ICAP "blocking" time for the HTTP transaction. The timer ticks while Squid checks adaptation_access and while ICAP transaction(s) expect ICAP response headers, including the embedded adapted HTTP message headers (where applicable). This measurement is meant to estimate ICAP impact on HTTP transaction response times, but it does not currently account for slow ICAP response body delivery blocking HTTP progress. Once Squid receives the final ICAP response headers (e.g., ICAP 200 or 204) and the associated adapted HTTP message headers (if any) from the ICAP service, the corresponding ICAP transaction stops affecting this measurement, even though the transaction itself may continue for a long time (e.g., to finish sending the ICAP request and/or to finish receiving the ICAP response body). When "blocking" sections of multiple concurrent ICAP transactions overlap in time, the overlapping segment is counted only once. To see complete ICAP transaction response times (rather than the cumulative effect of their blocking sections) use the %adapt::all_trs logformat code or the icap_log directive. If adaptation is enabled the following codes become available: adapt::<last_h The header of the last ICAP response or meta-information from the last eCAP transaction related to the HTTP transaction. Like <h, accepts an optional header name argument. adapt::sum_trs Summed adaptation transaction response times recorded as a comma-separated list in the order of transaction start time. Each time value is recorded as an integer number, representing response time of one or more adaptation (ICAP or eCAP) transaction in milliseconds. When a failed transaction is being retried or repeated, its time is not logged individually but added to the replacement (next) transaction. Lifetimes of individually listed adaptation transactions may overlap. See also: %icap::tt and %adapt::all_trs. adapt::all_trs All adaptation transaction response times. Same as %adapt::sum_trs but response times of individual transactions are never added together. Instead, all transaction response times are recorded individually. You can prefix adapt::*_trs format codes with adaptation service name in curly braces to record response time(s) specific to that service. For example: %{my_service}adapt::sum_trs Format codes related to the PROXY protocol: proxy_protocol::>h PROXY protocol header, including optional TLVs. Supports the same field and element reporting/extraction logic as %http::>h. For configuration and reporting purposes, Squid maps each PROXY TLV to an HTTP header field: the TLV type (configured as a decimal integer) is the field name, and the TLV value is the field value. All TLVs of "LOCAL" connections (in PROXY protocol terminology) are currently skipped/ignored. Squid also maps the following standard PROXY protocol header blocks to pseudo HTTP headers (their names use PROXY terminology and start with a colon, following HTTP tradition for pseudo headers): :command, :version, :src_addr, :dst_addr, :src_port, and :dst_port. Without optional parameters, this logformat code logs pseudo headers and TLVs. This format code uses pass-through URL encoding by default. Example: # relay custom PROXY TLV #224 to adaptation services adaptation_meta Client-Foo "%proxy_protocol::>h{224}" See also: %http::>h The default formats available (which do not need re-defining) are: logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt logformat common %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh logformat combined %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh logformat referrer %ts.%03tu %>a %{Referer}>h %ru logformat useragent %>a [%tl] "%{User-Agent}>h" NOTE: When the log_mime_hdrs directive is set to ON. The squid, common and combined formats have a safely encoded copy of the mime headers appended to each line within a pair of brackets. NOTE: The common and combined formats are not quite true to the Apache definition. The logs from Squid contain an extra status and hierarchy code appended.
> почему же не работает, все работает прекрасно. тут описан только формат логирования
> который можно применять в логировании, а вы его задействовали в самом
> логировании?
> типа access_log /var/log/squid/access.log combined?
Просто супер огромное спасибо. Заработало! Блин стоко часов убил на поиски ответа.. 🙂
Источник
Squid Web Cache wiki
Squid Web Cache documentation
🔗 Feature: Customizable Log Formats
- Goal: To allow users to define their own log content.
- Status: complete.
- Version: 2.6 and later
🔗 Configuration Options
logformat option in squid.conf defines a named format for log output.
access_log option then uses the named format to write a given log file with its output about each request in that format.
🔗 Default Formats
The default formats are built-in to squid and do not need to be defined manually. They can be used simply by specifying the default format name on access_log lines.
🔗 squid
The native format for Squid
The native log file format logs more and different information than the common log file format: the request duration, some timeout information, the next upstream server address, and the content type.
There exist tools, which convert one file format into the other. Please mind that even though the log formats share most information, both formats contain information which is not part of the other format, and thus this part of the information is lost when converting. Especially converting back and forth is not possible without loss.
squid2common.pl is a conversion utility, which converts any of the squid log file formats into the old CERN proxy style output. There exist tools to analyse, evaluate and graph results from that format.
🔗 common
The Common Logfile Format is used by numerous HTTP servers. This format consists of the following seven fields:
It is parsable by a variety of tools. The common format contains different information than the native log file format. The HTTP version is logged, which is not logged in native log file format.
🔗 Squid native access.log format in detail
We recommend that you use Squid’s native log format due to its greater amount of information made available for later analysis. The print format line for native access.log entries looks like this:
Therefore, an access.log entry usually consists of (at least) 10 columns separated by one ore more spaces:
time A Unix timestamp as UTC seconds with a millisecond resolution. This is the time when Squid started to log the transaction, which normally happens at the end of a transaction lifecycle, after the entire request was received from and the entire response was sent to the HTTP client. To get the approximate transaction start time, subtract transaction duration (the second field) from this field, minding the different time units of those two fields. You can convert Unix timestamps into something more human readable using this short perl script:
There may be two more columns in the access.log, if the (debug) option log_mime_headers is enabled In this case, the HTTP request headers are logged between a “ [» and a » ]”, and the HTTP reply headers are also logged between “ [» and » ]”. All control characters like CR and LF are URL-escaped, but spaces are not escaped! Parsers should watch out for this.
Contents are © their respective authors,
licensed under the Creative Commons Attribution Sharealike 2.5 License
Last generated on 2023-01-08 10:51:24 +0000
Источник
diladele / squid-ubuntu Goto Github PK
Latest version of Squid proxy recompiled with support for HTTPS filtering and SSL inspection on Ubuntu 20.04 LTS. Used in Web Safety web filter for Squid.
squid-ubuntu’s People
Contributors
Stargazers
Watchers
Forkers
squid-ubuntu’s Issues
Support for Ubuntu 14.04
Can I use this for ubuntu 14.04?
warning info:munual installation for ubuntu 16
bash 03_build_ecap.sh
can not execute this sh.
waring info :
permission denied!
Squid5.2-openssl package for Ubuntu 20.04LTS on Raspberry Pi4
your guide is very useful, but I tried to use it with my Raspberry Pi4 and I got always a new dependency error.
Could you help me pls ?
do you have same package squid5.2-openssl for Raspberry Pi4 ?
readme.md fix
Pls fix the Readme: trusty need to be changed to xenial in code example
request upgrade
great project. can you upgrade to v5.7 for ubuntu 22.04 LTS?
Note: in reference to the debian tracker unstable ends at 5.6. Now 5.7 is an stable version (Ubuntu 22.04 install 5.2 by default)
Architecture «i386» not supported // unfulfilled dependencies libnettle6
Hello everybody,
am currently in the process of completely rebuilding SQUID on an Ubuntu 20.04.
I currently have the problem that if I take the standard version (apt install Squid), I get https_port 443 accel vhost cert = ‘xy.cer’ key = ‘xy.key’ connection-auth = on options = NO_SSLv3 cipher with the following command = HIG in Squid.conf the following error when starting SQUID: Unknown https_port option. I’ve tried a lot here, but I can’t get it to work under 4.10.
So I was hoping that your package would help, but when I follow the steps from the Github I get the following errors.
apt-get update
N: Loading of the configured file »main / binary-i386 / Packages« is skipped because the depot »http://squid413.diladele.com/ubuntu bionic InRelease« does not support the architecture »i386«.
apt-get install squid
Some packages could not be installed. That can mean that
You have requested an impossible situation or when you have the
Unstable distro use that some required packages still
have not been created or have not yet left Incoming.
The following information may help you resolve the situation:
The following packages have unfulfilled dependencies:
squid: Depends on: libnettle6 but cannot be installed
E: Problems cannot be corrected, you have defective packages withheld.
Can you help me here?
No ssl_crtd?
ssl_crtd is not included in this package. Is it not compiled for ssl support?
Release Squid 4.15
Hi, really like the binaries (save me a lot of hassle), currently using 4.13 (http://squid413.diladele.com/ubuntu/), any chance 4.15 will be released in the same way?
ext_session_acl can not initialize db via tdb_open()
Ubuntu 20.04.4, squid-openssl 5.5
$ dpkg -l | grep squid
rc squid 4.10-1ubuntu1.5 amd64 Full featured Web Proxy cache (HTTP proxy)
ii squid-common 5.5-1 all Full featured Web Proxy cache (HTTP proxy) — common files
ii squid-langpack 20191103-1 all Localized error pages for Squid
ii squid-openssl 5.5-1 amd64 Full featured Web Proxy cache (HTTP proxy OpenSSL flavour)
ii squidclient 5.5-1 amd64 Full featured Web Proxy cache (HTTP proxy) — HTTP(S) message utility
$ id
uid=13(proxy) gid=13(proxy) groups=13(proxy),124(winbindd_priv)
$ ls -ld /var/lib/squid/
drwxr-xr-x 3 proxy proxy 53 Jun 27 17:37 /var/lib/squid
$ ls -l /var/lib/squid
total 0
-rw-rw—- 1 proxy proxy 0 Jun 27 17:37 session
-rw-rw—- 1 proxy proxy 0 Jun 27 16:54 session.db
drwxr-xr-x 3 proxy proxy 48 Jun 27 16:25 ssl_db
$ /usr/lib/squid/ext_session_acl -b /var/lib/squid/session.db
FATAL: /usr/lib/squid/ext_session_acl: Failed to open session db ‘/var/lib/squid/session.db’
$ /usr/lib/squid/ext_session_acl -b /var/lib/squid/
FATAL: /usr/lib/squid/ext_session_acl: Failed to open session db ‘/var/lib/squid/session’
$ /usr/lib/squid/ext_session_acl -b /var/lib/squid
FATAL: /usr/lib/squid/ext_session_acl: Failed to open session db ‘/var/lib/squidsession’
$ ldd /usr/lib/squid/ext_session_acl
linux-vdso.so.1 (0x00007ffeb83e5000)
libtdb.so.1 => /lib/x86_64-linux-gnu/libtdb.so.1 (0x00007fe13908d000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe138eab000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe138e90000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe138c9e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe138c7b000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe138b2c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe1390ba000)
ERROR: logformat squid is already defined. Ignoring
I try to change logformat, because I want to log dns names, instead of ip adresses — so I changed the a to A from the default definition. But squid’s cache.log shows the error message:
ERROR: logformat squid is already defined. Ignoring
But logformat is in squid.conf only once defined. I also checked the includes from and the /etc/squid/conf.d/*
Any Idea what happened?
I use your version:
Upgrade squid 4 to squid 5
This isn’t a bug, but I couldn’t find a ‘help wanted’ label.
I’ve followed the steps provided here to install squid 4.13 on Ubuntu Server 20.04.
How do I upgrade to squid 5.5?
I think I should remove this file /etc/apt/sources.list.d/squid413-ubuntu20.diladele.com.list
before adding the source for 5.5, right?
what else do I have to do?
Also, I would like to keep the old cache from squid 4.13 if there’s a way to do that, because my internet is slow and limited.
Squid 5.2 memory leak
We are seeing a significant memory leak in Squid 5.2 — appears to be this issue https://bugs.squid-cache.org/show_bug.cgi?id=5132, which has been fixed in 5.4.
I would caution anyone upgrading to Websafety 8 from 7.9 in high usage environments due to this.
How to compile .deb package with http is socks5?
Could you help me compile a package with http is socks for ubuntu?
/var/run/squid should be created
When running Squid in SMP mode, the IPC sockets are created in /var/run/squid. When that directory is missing, or does not have the right permissions, Squid is not going to listen on the configured http_port and shows the following message in the cache.log: commBind Cannot bind socket FD 20
Adjust /lib/systemd/system/squid.service to set file LimitNOFILE
Without setting the LimitNOFILE in squid.service will cause Squid to run out of file descriptors very fast.
So if we could set it to LimitNOFILE=65536 that would alleviate some issues.
Can’t Upgrade Diladele Squid on Ubuntu 22.04
Ubuntu 18.04
Can I use this instruction with Ubuntu serve 18.04?
Install error on Ubuntu 18.04 i386
When using the script «ubuntu18/04_Install_squid.sh», dpkg say that he can’t fin package with suffix «_amd64.deb».
You need to correct this in order to build it into i386 and amd64.
Recommend Projects
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
TensorFlow
An Open Source Machine Learning Framework for Everyone
Django
The Web framework for perfectionists with deadlines.
Laravel
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
server
A server is a program made to process requests and deliver data to clients.
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Visualization
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
Microsoft
Open source projects and samples from Microsoft.
Источник
Adblock
detector
0
{{postValue.vote_count}}
Hai….
I am new to squid proxy configurations, how can i change squid access log files like human readable format.
{{forumCtrl.question_commentErr}}
asked Sep 1, 2017
{{ forumCtrl.answerArr.length}} Answer
0
{{answer.voteCount}}
Edit
Delete
View More
{{forumCtrl.response_commentErr}}
answered {{answer.date}}
Your Answer
{{forumCtrl.responseErr}}
report this ad
report this ad