Re: [squid-users] manual proxy configuration ...
On 5/29/21, Antony Stone wrote: > I think this is a question for the Knoppix packagers; we don't know what > they > did to break Squid in this way. OK, I will try all the steps again but first I will remove the installed squid version that comes with knoppix On 5/29/21, Matus UHLAR - fantomas wrote: > standard port for squid, makes squid listen on port 3128 of all available > interfaces. > If that's your local machine, localhost (3128) is one of those and if you > want to stop others from accessing it, you can configure > > http_port localhost:3128 Thank you, I will try that. > it's possible that squid was compiled without unlinkd support. In such case, > you don't need that directive. > > we can guess that unlinkd lives in /media/knoppix/squid3/4.15/sbin/unlinkd > or somewhere under /media/knoppix/squid3/4.15 directory from: https://www.oreilly.com/library/view/squid-the-definitive/0596001622/re58.html Name: unlinkd_program Synopsis: This is the pathname to the unlinkd program. By executing the unlink operations in this external process, Squid’s performance improves significantly. You can disable the external unlinker with the —disable-unlinkd option to ./configure. Default: unlinkd_program $prefix/libexec/unlinkd ~ but in my $prefix I don't see that folder: $ pwd /media/knoppix//squid3/4.15 $ ls -l total 0 drwxrwxrwx 1 root root 0 May 29 03:16 bin drwxrwxrwx 1 root root 0 May 29 03:14 etc drwxrwxrwx 1 root root 0 May 29 03:16 sbin drwxrwxrwx 1 root root 0 May 29 03:16 share drwxrwxrwx 1 root root 0 May 29 03:16 var $ so what could the problem be? Why doesn't squid look into the path I defined as prefix? lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
am asking because I have reasons to be believe something fishy to be going on with the computer I expose to the Internet. On 5/28/21, squ...@treenet.co.nz wrote: Aha. Finally an indication of what the real situation is. Its REALLY hard to help people who leave out important details all the time. On 29.05.21 05:45, Albretch Mueller wrote: I still can't understand what the big deal is. The port is defined on the one liner which attribute name is "http_port" cat "/etc/squid/squid.conf" | grep http_port | grep --invert-match "^#" http_port 3128 standard port for squid, makes squid listen on port 3128 of all available interfaces. If that's your local machine, localhost (3128) is one of those and if you want to stop others from accessing it, you can configure http_port localhost:3128 The value 3128 you enter on your network browser settings what I need now is the name of the running listening service which you can get via: netstat -tl but I couldn't get squid running apparently due to problems related to using a prefix other than its default: $ which squid /media/knoppix/squid3/4.15/sbin/squid $ squid start 2021/05/29 15:33:48| ERROR: unlinkd_program /lib/squid3/unlinkd: (2) No such file or directory 2021/05/29 15:33:48| FATAL: unlinkd_program /lib/squid3/unlinkd: (2) No such file or directory 2021/05/29 15:33:48| Squid Cache (Version 4.15): Terminated abnormally. CPU Usage: 0.016 seconds = 0.010 user + 0.006 sys Maximum Resident Size: 33696 KB Page faults with physical i/o: 0 $ how can I fix such problems? it's possible that squid was compiled without unlinkd support. In such case, you don't need that directive. we can guess that unlinkd lives in /media/knoppix/squid3/4.15/sbin/unlinkd or somewhere under /media/knoppix/squid3/4.15 directory -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. - Holmes, what kind of school did you study to be a detective? - Elementary, Watkins. -- Daffy Duck & Porky Pig ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On Saturday 29 May 2021 at 11:45:07, Albretch Mueller wrote: > cat "/etc/squid/squid.conf" | grep http_port | grep --invert-match "^#" > http_port 3128 That could more briefly be done as "grep ^http_port /etc/squid/squid.conf" > The value 3128 you enter on your network browser settings > > what I need now is the name of the running listening service which > you can get via: > > netstat -tl It's the same thing: 3128. > but I couldn't get squid running apparently due to problems related > to using a prefix other than its default: > > $ which squid > /media/knoppix/squid3/4.15/sbin/squid > how can I fix such problems? I think this is a question for the Knoppix packagers; we don't know what they did to break Squid in this way. Antony. -- Numerous psychological studies over the years have demonstrated that the majority of people genuinely believe they are not like the majority of people. Please reply to the list; please *don't* CC me. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On 5/28/21, squ...@treenet.co.nz wrote: >> am asking because I have reasons to be believe something fishy to be >> going on with the computer I expose to the Internet. > > > Aha. Finally an indication of what the real situation is. Its REALLY > hard to help people who leave out important details all the time. I still can't understand what the big deal is. The port is defined on the one liner which attribute name is "http_port" cat "/etc/squid/squid.conf" | grep http_port | grep --invert-match "^#" http_port 3128 The value 3128 you enter on your network browser settings what I need now is the name of the running listening service which you can get via: netstat -tl but I couldn't get squid running apparently due to problems related to using a prefix other than its default: $ which squid /media/knoppix/squid3/4.15/sbin/squid $ squid start 2021/05/29 15:33:48| ERROR: unlinkd_program /lib/squid3/unlinkd: (2) No such file or directory 2021/05/29 15:33:48| FATAL: unlinkd_program /lib/squid3/unlinkd: (2) No such file or directory 2021/05/29 15:33:48| Squid Cache (Version 4.15): Terminated abnormally. CPU Usage: 0.016 seconds = 0.010 user + 0.006 sys Maximum Resident Size: 33696 KB Page faults with physical i/o: 0 $ how can I fix such problems? lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On 2021-05-29 05:42, Albretch Mueller wrote: On 5/27/21, Matus UHLAR - fantomas wrote: On 5/25/21, Amos Jeffries wrote: You enter the IP address or hostname of the squid machine into the browser "proxy settings" for manual configuration. On 27.05.21 03:50, Albretch Mueller wrote: Yeah, exactly! and how do you know the IP address or hostname? it's your or your organizations proxy - you are supposed to know that, not us. I thought I was going to get droned for "not doing what I was supposed to do" (tm) Well. These are part of the basics needed to get a networked computer running. You said you already had Squid running and in use. That makes us assume you know these basics already, but haven't mentioned them. What line in the conf file specifies that? each browser has its own way of proxy settings. Many of them support "system proxy settings". I am talking here about the squid conf file not the browser's and I Squid is normally just configured with an "http_port 3128" or similar to receive traffic. There *might* be an IP address there as well, or a hostname. But usually not. It is the network DHCP or machines network interface which determines the IP address Squid gets to use. am asking because I have reasons to be believe something fishy to be going on with the computer I expose to the Internet. Aha. Finally an indication of what the real situation is. Its REALLY hard to help people who leave out important details all the time. Amos ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
As I expect and suspected my exposed box had been compromised. I used a knoppix DVD they can't write to/effing alter it for physical reasons. Their efforts would be futile, senseless. If I get the time I will write up a nicer document, but since I do believe in karma I want to help other people running into the same problem // __ download squid and check the md5 and sha1 hashsums http://www.squid-cache.org/Download/ http://www.squid-cache.org/Versions/ Stable Versions (right now): http://www.squid-cache.org/Versions/v4/ ~ // __ untar and gunzip the sources ... ~ // __ compilation of sources based on https://wiki.squid-cache.org/SquidFaq/CompilingSquid _PRFX="" _VER="squid-4.15" # used as prefix for log files cd "${_VER}" pwd _DT=$(date +%Y%m%d%H%M%S) _LOG_FL="${_VER}_configure_${_DT}.log" echo "// __ \$_LOG_FL: |${_LOG_FL}|" time( ./configure --prefix="${_PRFX}" \ --localstatedir="${_PRFX}/var" \ --libexecdir="${prefix}/lib/squid3" \ --datadir="${prefix}/share/squid3" \ --sysconfdir="${_PRFX}/etc/squid3" \ --with-default-user=proxy \ --with-logdir="${_PRFX}/var/log/squid3" \ --with-pidfile="${_PRFX}/var/run/squid3.pid" >> "${_LOG_FL}" 2>&1 ) 2>> "${_LOG_FL}" echo "~" >> "${_LOG_FL}" // __ running: make _DT=$(date +%Y%m%d%H%M%S) _LOG_FL="${_VER}_make_${_DT}.log" echo "// __ \$_LOG_FL: |${_LOG_FL}|" echo "// __ make -j1:" >> "${_LOG_FL}" echo " " >> "${_LOG_FL}" time(make -j1 >> "${_LOG_FL}" 2>&1) 2>> "${_LOG_FL}" echo "~" >> "${_LOG_FL}" tail -n 10 "${_LOG_FL}" // __ running: sudo make install _DT=$(date +%Y%m%d%H%M%S) _LOG_FL="${_VER}_make_install_${_DT}.log" echo "// __ \$_LOG_FL: |${_LOG_FL}|" echo "// __ make install:" >> "${_LOG_FL}" echo " " >> "${_LOG_FL}" time(sudo make install >> "${_LOG_FL}" 2>&1) 2>> "${_LOG_FL}" echo "~" >> "${_LOG_FL}" tail -n 10 "${_LOG_FL}" ~ // __ reaching out to your install base _SQUID3_HOME="/media/knoppix/squid3/4.15/" PATH="${_SQUID3_HOME}/sbin:$PATH" which squid squid --version $ which squid /media/knoppix/squid3/4.15/sbin/squid $ squid --version Squid Cache: Version 4.15 Service Name: squid configure options: '--prefix=/media/knoppix/squid3/4.15' '--localstatedir=/media/knoppix/squid3/4.15/var' '--libexecdir=/lib/squid3' '--datadir=/share/squid3' '--sysconfdir=/media/knoppix/squid3/4.15/etc/squid3' '--with-default-user=proxy' '--with-logdir=/media/knoppix/squid3/4.15/var/log/squid3' '--with-pidfile=/media/knoppix/squid3/4.15/var/run/squid3.pid' $ sudo squid ... ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
> ... I have reasons to be believe something fishy to be going on with the > computer I expose to the Internet. You could not write/paste in a value in the corresponding text box in the browser's config settings lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On 5/27/21, Matus UHLAR - fantomas wrote: >>On 5/25/21, Amos Jeffries wrote: >>> You enter the IP address or hostname of the squid machine into the >>> browser >>> "proxy settings" for manual configuration. > > On 27.05.21 03:50, Albretch Mueller wrote: >> Yeah, exactly! and how do you know the IP address or hostname? > > it's your or your organizations proxy - you are supposed to know that, not > us. I thought I was going to get droned for "not doing what I was supposed to do" (tm) >> What line in the conf file specifies that? > each browser has its own way of proxy settings. > Many of them support "system proxy settings". I am talking here about the squid conf file not the browser's and I am asking because I have reasons to be believe something fishy to be going on with the computer I expose to the Internet. lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On 5/25/21, Amos Jeffries wrote: You enter the IP address or hostname of the squid machine into the browser "proxy settings" for manual configuration. On 27.05.21 03:50, Albretch Mueller wrote: Yeah, exactly! and how do you know the IP address or hostname? it's your or your organizations proxy - you are supposed to know that, not us. What line in the conf file specifies that? each browser has its own way of proxy settings. Many of them support "system proxy settings". -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Eagles may soar, but weasels don't get sucked into jet engines. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
On 5/25/21, Amos Jeffries wrote: > You enter the IP address or hostname of the squid machine into the browser > "proxy settings" for manual configuration. Yeah, exactly! and how do you know the IP address or hostname? What line in the conf file specifies that? lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] manual proxy configuration ...
You enter the IP address or hostname of the squid machine into the browser "proxy settings" for manual configuration.Amos___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] manual proxy configuration ...
After installing squid, I tried to configure: $ firefox --version Mozilla Firefox 52.6.0 based on the steps on that link: https://linuxize.com/post/how-to-install-and-configure-squid-proxy-on-debian-10/ but I can't find the value I should enter as "http proxy" as port I will simply use the default. this is what squid tells me # systemctl status squid ● squid.service - LSB: Squid HTTP Proxy version 3.x Loaded: loaded (/etc/init.d/squid; generated; vendor preset: enabled) Active: active (running) since Mon 2021-05-24 22:41:50 EDT; 21min ago Docs: man:systemd-sysv-generator(8) Process: 12808 ExecStop=/etc/init.d/squid stop (code=exited, status=0/SUCCESS) Process: 12834 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS) Main PID: 12874 (squid) Tasks: 4 (limit: 4915) CGroup: /system.slice/squid.service ├─12872 /usr/sbin/squid -YC -f /etc/squid/squid.conf ├─12874 (squid-1) -YC -f /etc/squid/squid.conf ├─12875 (logfile-daemon) /var/log/squid/access.log └─12876 (pinger) May 24 22:41:50 debian systemd[1]: Stopped LSB: Squid HTTP Proxy version 3.x. May 24 22:41:50 debian systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x... May 24 22:41:50 debian squid[12872]: Squid Parent: will start 1 kids May 24 22:41:50 debian squid[12834]: Starting Squid HTTP Proxy: squid. May 24 22:41:50 debian systemd[1]: squid.service: PID file /var/run/squid.pid not readable (yet?) after start: May 24 22:41:50 debian squid[12872]: Squid Parent: (squid-1) process 12874 started May 24 22:41:50 debian systemd[1]: squid.service: Supervising process 12874 which is not our child. We'll most May 24 22:41:50 debian systemd[1]: Started LSB: Squid HTTP Proxy version 3.x. ~ what should I do? Are there any foolproof step by step guidelines out there? I should be able to find the values out of squid configuration file that I must use as entries in firefox lbrtchx ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users