Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-15 Thread ben



Hi Eliezer,

It worked! Now I can set my IPV6 input policy back to DROP.Anyway, this 
is my only ipv6-related firewall rules and anything else are defaults. 
Thank you!

I have verified that the Pinger process is at fault.
I don't know if it's a bug or not.
You can disable pinger and it will work:
http://www.squid-cache.org/Doc/config/pinger_enable/

pinger_enable off

will resolve this issue.

All The Bests,
Eliezer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-14 Thread Eliezer Croitoru
Hey Antony and Ben,

I have verified that the Pinger process is at fault.
I don't know if it's a bug or not.
You can disable pinger and it will work:
http://www.squid-cache.org/Doc/config/pinger_enable/

pinger_enable off

will resolve this issue.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
Antony Stone
Sent: Monday, March 14, 2022 11:27
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

On Monday 14 March 2022 at 05:42:35, ben wrote:

> Hi Eliezer,
> 
> SQUID started listening only after I run "ip6tables -P INPUT ACCEPT".

Without seeing the rest of your iptables rules, it's not clear whether this 
really does apply to every interface and every protocol, or whether there
are 
exception rules which over-ride this default policy rule.

However, there are quite a number of applications which will refuse to
start, 
or not operate correctly, if you do not permit loopback traffic (IPv4 as
well as 
IPv6), so this may be the cause of your problems.


Antony.

-- 
"Once you have a panic, things tend to become rather undefined."

 - murble

   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

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-14 Thread Antony Stone
On Monday 14 March 2022 at 05:42:35, ben wrote:

> Hi Eliezer,
> 
> SQUID started listening only after I run "ip6tables -P INPUT ACCEPT".

Without seeing the rest of your iptables rules, it's not clear whether this 
really does apply to every interface and every protocol, or whether there are 
exception rules which over-ride this default policy rule.

However, there are quite a number of applications which will refuse to start, 
or not operate correctly, if you do not permit loopback traffic (IPv4 as well 
as 
IPv6), so this may be the cause of your problems.


Antony.

-- 
"Once you have a panic, things tend to become rather undefined."

 - murble

   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] SQUID refuses to listen on any TCP Port

2022-03-14 Thread Eliezer Croitoru
Hey Ben,

As I suspected it's the pinger that is causing this issue.
In my RPM builds it's disabled by defaults to avoid selinux complications.
I think it's a very special case you have found.
Try to use the:
pinger_enable off

and see if it fixes your issue.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: Eliezer Croitoru  
Sent: Monday, March 14, 2022 10:49
To: 'squid-users@lists.squid-cache.org' 
Subject: RE: [squid-users] SQUID refuses to listen on any TCP Port

Hey Ben,

I do not know if it won't listen.
I can try to reproduce locally and see the results.
I assume it might be related to the pinger process or maybe something else but 
not 100% sure.

Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Monday, March 14, 2022 06:43
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hi Eliezer,

SQUID started listening only after I run "ip6tables -P INPUT ACCEPT". I 
had searched everywhere on the internet regarding this issue and no one 
mentioned that IPV6 iptables rules could stop squid from listening on 
TCP ports. And Squid just started without any complaint. To my limited 
knowledge, it seems no other software behaves like this?
At first I was indeed suspecting that the issue is related to IPV6. 
I had tried recompiling SQUID without IPV6 and disabed IPV6 using 
sysctl.conf, nothing worked. It never occured to me that my IPV6 INPUT 
POLICY could be the culprit.
   Again, many thanks for your help
> Hey Ben,
>
> The next step in this situation is to try and connect with netcat from a
> remote host and also locally.
>  From what I understood the issue was a firewall issue so Squid was
> listening.
> I can also assume that squid was listening.
> Just For future reference:
> Try to run the next commands:
> sudo netstat -ntlp
> sudo ss -ntlp
>
> and send their output to us.
> In ubuntu you will not see any "squid" when running plain netstat or ss.
>
> All The Bests,
> Eliezer
>
> 
> Eliezer Croitoru
> NgTech, Tech Support
> Mobile: +972-5-28704261
> Email: ngtech1...@gmail.com
>
> -Original Message-
> From: squid-users  On Behalf Of
> ben
> Sent: Sunday, March 13, 2022 12:24
> To: squid-users@lists.squid-cache.org
> Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port
>
>
> Hello,
>
> It looks like that if I start installing it right after OS installation,
> it works. But not if I install any packages, for example, make,
> gcc,strongswan and so on. once it stop working, it will not work anymore
> even if I remove all aforementioned packages. reboot also doesn't help.
> I also tried it on Debian 11. no luck either! it only works in old ubuntu 16
> I can be 100% sure that squid is not listening on any TCP ports. running
> these commands looks fine
>
> Thanks for your being patient and kind
>
> root@host8d66c97880:~# netcat -v -l -4 34568
> Listening on 0.0.0.0 34568
> ^C
> root@host8d66c97880:~# netcat -v -l -6 34568
> Listening on :: 34568
>
> I configured it to listen on 34568
>
>
>> netcat -v -l -6 
>> netcat -v -l -4 
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-14 Thread Eliezer Croitoru
Hey Ben,

I do not know if it won't listen.
I can try to reproduce locally and see the results.
I assume it might be related to the pinger process or maybe something else but 
not 100% sure.

Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Monday, March 14, 2022 06:43
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hi Eliezer,

SQUID started listening only after I run "ip6tables -P INPUT ACCEPT". I 
had searched everywhere on the internet regarding this issue and no one 
mentioned that IPV6 iptables rules could stop squid from listening on 
TCP ports. And Squid just started without any complaint. To my limited 
knowledge, it seems no other software behaves like this?
At first I was indeed suspecting that the issue is related to IPV6. 
I had tried recompiling SQUID without IPV6 and disabed IPV6 using 
sysctl.conf, nothing worked. It never occured to me that my IPV6 INPUT 
POLICY could be the culprit.
   Again, many thanks for your help
> Hey Ben,
>
> The next step in this situation is to try and connect with netcat from a
> remote host and also locally.
>  From what I understood the issue was a firewall issue so Squid was
> listening.
> I can also assume that squid was listening.
> Just For future reference:
> Try to run the next commands:
> sudo netstat -ntlp
> sudo ss -ntlp
>
> and send their output to us.
> In ubuntu you will not see any "squid" when running plain netstat or ss.
>
> All The Bests,
> Eliezer
>
> 
> Eliezer Croitoru
> NgTech, Tech Support
> Mobile: +972-5-28704261
> Email: ngtech1...@gmail.com
>
> -Original Message-
> From: squid-users  On Behalf Of
> ben
> Sent: Sunday, March 13, 2022 12:24
> To: squid-users@lists.squid-cache.org
> Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port
>
>
> Hello,
>
> It looks like that if I start installing it right after OS installation,
> it works. But not if I install any packages, for example, make,
> gcc,strongswan and so on. once it stop working, it will not work anymore
> even if I remove all aforementioned packages. reboot also doesn't help.
> I also tried it on Debian 11. no luck either! it only works in old ubuntu 16
> I can be 100% sure that squid is not listening on any TCP ports. running
> these commands looks fine
>
> Thanks for your being patient and kind
>
> root@host8d66c97880:~# netcat -v -l -4 34568
> Listening on 0.0.0.0 34568
> ^C
> root@host8d66c97880:~# netcat -v -l -6 34568
> Listening on :: 34568
>
> I configured it to listen on 34568
>
>
>> netcat -v -l -6 
>> netcat -v -l -4 
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-13 Thread ben


Hi Eliezer,

SQUID started listening only after I run "ip6tables -P INPUT ACCEPT". I 
had searched everywhere on the internet regarding this issue and no one 
mentioned that IPV6 iptables rules could stop squid from listening on 
TCP ports. And Squid just started without any complaint. To my limited 
knowledge, it seems no other software behaves like this?
   At first I was indeed suspecting that the issue is related to IPV6. 
I had tried recompiling SQUID without IPV6 and disabed IPV6 using 
sysctl.conf, nothing worked. It never occured to me that my IPV6 INPUT 
POLICY could be the culprit.

  Again, many thanks for your help

Hey Ben,

The next step in this situation is to try and connect with netcat from a
remote host and also locally.
 From what I understood the issue was a firewall issue so Squid was
listening.
I can also assume that squid was listening.
Just For future reference:
Try to run the next commands:
sudo netstat -ntlp
sudo ss -ntlp

and send their output to us.
In ubuntu you will not see any "squid" when running plain netstat or ss.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
ben
Sent: Sunday, March 13, 2022 12:24
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hello,

It looks like that if I start installing it right after OS installation,
it works. But not if I install any packages, for example, make,
gcc,strongswan and so on. once it stop working, it will not work anymore
even if I remove all aforementioned packages. reboot also doesn't help.
I also tried it on Debian 11. no luck either! it only works in old ubuntu 16
I can be 100% sure that squid is not listening on any TCP ports. running
these commands looks fine

Thanks for your being patient and kind

root@host8d66c97880:~# netcat -v -l -4 34568
Listening on 0.0.0.0 34568
^C
root@host8d66c97880:~# netcat -v -l -6 34568
Listening on :: 34568

I configured it to listen on 34568



netcat -v -l -6 
netcat -v -l -4 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-13 Thread Eliezer Croitoru
Hey Ben,

The next step in this situation is to try and connect with netcat from a
remote host and also locally.
>From what I understood the issue was a firewall issue so Squid was
listening.
I can also assume that squid was listening.
Just For future reference:
Try to run the next commands:
sudo netstat -ntlp
sudo ss -ntlp

and send their output to us.
In ubuntu you will not see any "squid" when running plain netstat or ss.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
ben
Sent: Sunday, March 13, 2022 12:24
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hello,

It looks like that if I start installing it right after OS installation, 
it works. But not if I install any packages, for example, make, 
gcc,strongswan and so on. once it stop working, it will not work anymore 
even if I remove all aforementioned packages. reboot also doesn't help. 
I also tried it on Debian 11. no luck either! it only works in old ubuntu 16
I can be 100% sure that squid is not listening on any TCP ports. running 
these commands looks fine

Thanks for your being patient and kind

root@host8d66c97880:~# netcat -v -l -4 34568
Listening on 0.0.0.0 34568
^C
root@host8d66c97880:~# netcat -v -l -6 34568
Listening on :: 34568

I configured it to listen on 34568


> netcat -v -l -6 
> netcat -v -l -4 
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-13 Thread ben

Hello,

I've finally pinpointed the cause. It is my IPV6 iptables rules at 
fault. Once I changed the INPUT policy from DROP to Accept, everything 
works as expected! what a waste of so many hours! Thank you all


Hello,
It could be that squid doesn't like some of my packages(I'm not sure 
which one). I installed the following packages:

  strongswan,nrpe, nagios-plugins

I also tweaked some kernel settings
net.ipv4.ip_forward = 1
net.ipv4.ip_local_port_range = 1 61000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_tw_buckets = 5000
fs.file-max = 65536
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.core.netdev_max_backlog = 25
net.ipv4.tcp_mtu_probing = 1
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

I couldn't win her heart back even if I rolled back all these settings 
and removed the packages.


I'm willing to pay if someone can help me resolve this issue

Thank you!


Hello,

It looks like that if I start installing it right after OS 
installation, it works. But not if I install any packages, for 
example, make, gcc,strongswan and so on. once it stop working, it 
will not work anymore even if I remove all aforementioned packages. 
reboot also doesn't help. I also tried it on Debian 11. no luck 
either! it only works in old ubuntu 16
I can be 100% sure that squid is not listening on any TCP ports. 
running these commands looks fine


Thanks for your being patient and kind

root@host8d66c97880:~# netcat -v -l -4 34568
Listening on 0.0.0.0 34568
^C
root@host8d66c97880:~# netcat -v -l -6 34568
Listening on :: 34568

I configured it to listen on 34568



netcat -v -l -6 
netcat -v -l -4 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-13 Thread ben


Hello,
It could be that squid doesn't like some of my packages(I'm not sure 
which one). I installed the following packages:

  strongswan,nrpe, nagios-plugins

I also tweaked some kernel settings
net.ipv4.ip_forward = 1
net.ipv4.ip_local_port_range = 1 61000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_tw_buckets = 5000
fs.file-max = 65536
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.core.netdev_max_backlog = 25
net.ipv4.tcp_mtu_probing = 1
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

I couldn't win her heart back even if I rolled back all these settings 
and removed the packages.


I'm willing to pay if someone can help me resolve this issue

Thank you!


Hello,

It looks like that if I start installing it right after OS 
installation, it works. But not if I install any packages, for 
example, make, gcc,strongswan and so on. once it stop working, it will 
not work anymore even if I remove all aforementioned packages. reboot 
also doesn't help. I also tried it on Debian 11. no luck either! it 
only works in old ubuntu 16
I can be 100% sure that squid is not listening on any TCP ports. 
running these commands looks fine


Thanks for your being patient and kind

root@host8d66c97880:~# netcat -v -l -4 34568
Listening on 0.0.0.0 34568
^C
root@host8d66c97880:~# netcat -v -l -6 34568
Listening on :: 34568

I configured it to listen on 34568



netcat -v -l -6 
netcat -v -l -4 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-13 Thread ben



Hello,

It looks like that if I start installing it right after OS installation, 
it works. But not if I install any packages, for example, make, 
gcc,strongswan and so on. once it stop working, it will not work anymore 
even if I remove all aforementioned packages. reboot also doesn't help. 
I also tried it on Debian 11. no luck either! it only works in old ubuntu 16
I can be 100% sure that squid is not listening on any TCP ports. running 
these commands looks fine


Thanks for your being patient and kind

root@host8d66c97880:~# netcat -v -l -4 34568
Listening on 0.0.0.0 34568
^C
root@host8d66c97880:~# netcat -v -l -6 34568
Listening on :: 34568

I configured it to listen on 34568



netcat -v -l -6 
netcat -v -l -4 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-12 Thread Eliezer Croitoru
Hey Ben,

You should try the next test:
install netcat with "apt install netcat"

Then run the next two commands:
netcat -v -l -6 
netcat -v -l -4 

and send us the output of these.
You can change the ports to 3128 which doesn't work and see what might cause
this issue.
It's possible that your VPS hosting service is using a custom kernel or
another thing happens there.
It's not squid by itself that is at fault in this issue since it was tested
on more then one system over the last 10 years including Ubuntu 20.04.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
ben
Sent: Saturday, March 12, 2022 05:25
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hi Eliezer,
Thanks for your help. I tried your method. it worked in a few VM 
instances but not on others. All have the same version of ubuntu 20.04. 
I just have no idea why Squid is so glitchy. same methods, same OS, 
sometimes it did start accepting connection on the specificed TCP port, 
but most of times it didn't. I also tried to install from a PPA repos 
and it is the same story. Any suggestion?
> Hey Ben,
>
> I cannot tell you if there is something wrong with what you are doing or
the
> OS.
> What I did was to install a basic squid on ubuntu 20.4 which comes with
> version 4.10.
> I shut down the current running suqid.
> I took the /etc/squid/squid.conf file and left it with a single line.
> After that I started squid with "systemctl start squid" and it seems to
work
> fine.
> I shut down squid and downloaded my version and again left the squid.conf
> with a single line.
> Just.. adding the mime.conf into /etc/squid/ and it worked like a charm.
> Try to use "ss -ntlp" instead of netstat.
> You should first try this on a VM on you local desktop in virtualbox or
> hyperv.
>
> All The Bests,
> Eliezer
>
> 
> Eliezer Croitoru
> NgTech, Tech Support
> Mobile: +972-5-28704261
> Email: ngtech1...@gmail.com
>
> -Original Message-
> From: squid-users  On Behalf Of
> ben
> Sent: Sunday, March 6, 2022 07:51
> To: squid-users@lists.squid-cache.org
> Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port
>
>
> Hi Eliezer,
>
> It is a KVM VPS server with ubuntu 20.04. I just reinstalled the whole
> operating sytem and started it from scratch but got the same result: No
> tcp port listening. I don't know if it is something wrong with the OS
> template. Please let me know what I need to do. Thank you!
>> Hey Ben,
>>
>> If it doesn't work for you then you are clearly doing something wrong
>>
>> I can try to give you instructions on how to make it work 100% unless
your
> setup is messed up or is not a plain ubuntu 20.04.
>> Is it a simple VM?
>>
>> Eliezer
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-11 Thread ben



Hi Eliezer,
Thanks for your help. I tried your method. it worked in a few VM 
instances but not on others. All have the same version of ubuntu 20.04. 
I just have no idea why Squid is so glitchy. same methods, same OS, 
sometimes it did start accepting connection on the specificed TCP port, 
but most of times it didn't. I also tried to install from a PPA repos 
and it is the same story. Any suggestion?

Hey Ben,

I cannot tell you if there is something wrong with what you are doing or the
OS.
What I did was to install a basic squid on ubuntu 20.4 which comes with
version 4.10.
I shut down the current running suqid.
I took the /etc/squid/squid.conf file and left it with a single line.
After that I started squid with "systemctl start squid" and it seems to work
fine.
I shut down squid and downloaded my version and again left the squid.conf
with a single line.
Just.. adding the mime.conf into /etc/squid/ and it worked like a charm.
Try to use "ss -ntlp" instead of netstat.
You should first try this on a VM on you local desktop in virtualbox or
hyperv.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
ben
Sent: Sunday, March 6, 2022 07:51
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hi Eliezer,

It is a KVM VPS server with ubuntu 20.04. I just reinstalled the whole
operating sytem and started it from scratch but got the same result: No
tcp port listening. I don't know if it is something wrong with the OS
template. Please let me know what I need to do. Thank you!

Hey Ben,

If it doesn't work for you then you are clearly doing something wrong

I can try to give you instructions on how to make it work 100% unless your

setup is messed up or is not a plain ubuntu 20.04.

Is it a simple VM?

Eliezer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-06 Thread Eliezer Croitoru
Hey Ben,

I cannot tell you if there is something wrong with what you are doing or the
OS.
What I did was to install a basic squid on ubuntu 20.4 which comes with
version 4.10.
I shut down the current running suqid.
I took the /etc/squid/squid.conf file and left it with a single line.
After that I started squid with "systemctl start squid" and it seems to work
fine.
I shut down squid and downloaded my version and again left the squid.conf
with a single line.
Just.. adding the mime.conf into /etc/squid/ and it worked like a charm.
Try to use "ss -ntlp" instead of netstat.
You should first try this on a VM on you local desktop in virtualbox or
hyperv.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of
ben
Sent: Sunday, March 6, 2022 07:51
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port


Hi Eliezer,

It is a KVM VPS server with ubuntu 20.04. I just reinstalled the whole 
operating sytem and started it from scratch but got the same result: No 
tcp port listening. I don't know if it is something wrong with the OS 
template. Please let me know what I need to do. Thank you!
> Hey Ben,
>
> If it doesn't work for you then you are clearly doing something wrong
>
> I can try to give you instructions on how to make it work 100% unless your
setup is messed up or is not a plain ubuntu 20.04.
> Is it a simple VM?
>
> Eliezer
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-05 Thread ben



Hi Eliezer,

It is a KVM VPS server with ubuntu 20.04. I just reinstalled the whole 
operating sytem and started it from scratch but got the same result: No 
tcp port listening. I don't know if it is something wrong with the OS 
template. Please let me know what I need to do. Thank you!

Hey Ben,

If it doesn't work for you then you are clearly doing something wrong

I can try to give you instructions on how to make it work 100% unless your 
setup is messed up or is not a plain ubuntu 20.04.
Is it a simple VM?

Eliezer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-05 Thread Eliezer Croitoru
Hey Ben,

If it doesn't work for you then you are clearly doing something wrong

I can try to give you instructions on how to make it work 100% unless your 
setup is messed up or is not a plain ubuntu 20.04.
Is it a simple VM?

Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Sunday, March 6, 2022 05:13
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

Hi,Eliezer

Many thanks for your help. But sorry to tell you that it didn't work 
either. I've done with it and will try to use a different version of 
ubuntu. Thank you again!

在 2022/3/6 2:11, Eliezer Croitoru :
> My binaries include ssl bump.
> I belive it will be good enough for your use case.
> Just remember to first install squid package from ubuntu to make sure all 
> dependencies are installed and only then use my binaries.
> I still do not have an installation file but this will come later on in a 
> form of a Makefile.
> I will probably not provide a deb file since others do that better then me.
>
> What you need is this file:
> http://www.ngtech.co.il/repo/ubuntu/20.04/x86_64/squid-4.17-64-bin-stripped-only.tar
>
> There are other files there as well but this is the latest version.
> First untar the file into a temporary directory.
> Then and only then you should install the relevant binaries and conf files to
> their respective directories ie /etc/squid and /usr/sbin /usr/bin and 
> /usr/share...
>
> If you have any trouble let me know and I will try to help you if possible.
>
> All The Bests,
> Eliezer
>
> 
> Eliezer Croitoru
> NgTech, Tech Support
> Mobile: +972-5-28704261
> Email: ngtech1...@gmail.com
>
> -Original Message-
> From: squid-users  On Behalf Of ben
> Sent: Friday, March 4, 2022 16:45
> To: squid-users@lists.squid-cache.org
> Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port
>
> Hi,
>
> Does it have ssl enabled? I use squid mainly as a https proxy server and
> the default version on ubuntu 20.04 doesn't have it. Thank you for being
> so kind
>
> 在 2022/3/4 22:41, Eliezer Croitoru
>> Do you want to try another version of squid that was compiled by me?
>>
>> All The Bests,
>> Eliezer
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-05 Thread ben

Hi,Eliezer

Many thanks for your help. But sorry to tell you that it didn't work 
either. I've done with it and will try to use a different version of 
ubuntu. Thank you again!


在 2022/3/6 2:11, Eliezer Croitoru :

My binaries include ssl bump.
I belive it will be good enough for your use case.
Just remember to first install squid package from ubuntu to make sure all 
dependencies are installed and only then use my binaries.
I still do not have an installation file but this will come later on in a form 
of a Makefile.
I will probably not provide a deb file since others do that better then me.

What you need is this file:
http://www.ngtech.co.il/repo/ubuntu/20.04/x86_64/squid-4.17-64-bin-stripped-only.tar

There are other files there as well but this is the latest version.
First untar the file into a temporary directory.
Then and only then you should install the relevant binaries and conf files to
their respective directories ie /etc/squid and /usr/sbin /usr/bin and 
/usr/share...

If you have any trouble let me know and I will try to help you if possible.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Friday, March 4, 2022 16:45
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

Hi,

Does it have ssl enabled? I use squid mainly as a https proxy server and
the default version on ubuntu 20.04 doesn't have it. Thank you for being
so kind

在 2022/3/4 22:41, Eliezer Croitoru

Do you want to try another version of squid that was compiled by me?

All The Bests,
Eliezer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-05 Thread Eliezer Croitoru
My binaries include ssl bump.
I belive it will be good enough for your use case.
Just remember to first install squid package from ubuntu to make sure all 
dependencies are installed and only then use my binaries.
I still do not have an installation file but this will come later on in a form 
of a Makefile.
I will probably not provide a deb file since others do that better then me.

What you need is this file:
http://www.ngtech.co.il/repo/ubuntu/20.04/x86_64/squid-4.17-64-bin-stripped-only.tar

There are other files there as well but this is the latest version.
First untar the file into a temporary directory.
Then and only then you should install the relevant binaries and conf files to
their respective directories ie /etc/squid and /usr/sbin /usr/bin and 
/usr/share...

If you have any trouble let me know and I will try to help you if possible.

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Friday, March 4, 2022 16:45
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

Hi,

Does it have ssl enabled? I use squid mainly as a https proxy server and 
the default version on ubuntu 20.04 doesn't have it. Thank you for being 
so kind

在 2022/3/4 22:41, Eliezer Croitoru
> Do you want to try another version of squid that was compiled by me?
>
> All The Bests,
> Eliezer
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread Alex Rousskov

On 3/4/22 06:11, ben wrote:


I've done this and uploaded the log. Please take a look at it. Thank you
https://www.dropbox.com/s/k8nwdjs7bly4exw/squid.log.gz


Did you wait a few seconds and then killed Squid? Or did Squid quit 
(i.e. gave back control to your terminal/console session) on its own?


It looks like your Squid process is being killed by something: The log 
is missing a debugging line that should have been there right after the 
last line logged. There are no particularly dangerous calls between 
those two debugging lines.


Can you start your Squid from gdb instead of the command line?

sudo gdb --args squid -X -N -d9 -f ...
(gdb) run

Alex.


On 3/3/22 11:12, ben wrote:


I tried your suggestions and it is the same result
first I deliberately put some erroreous config in squid.conff and it 
failed to start as a result.
When I ran it again by specifying the default config manually, it 
make no difference from before.


There is a difference, but apparently not in the final outcome.

Please use the following or equivalent command to start your Squid 
with debugging enabled (-X), wait ~30 seconds, and then press 
Control-C (to kill the running Squid process if it is running), 
compress, and share a pointer to the resulting stderr output captured 
in the /tmp/debugging.log file.


    squid -X -N -d9 -f /etc/squid/squid.conf.saved 2> /tmp/debugging.log

It is best to use default Squid configuration for this triage in order 
to reduce the chances of sharing sensitive information in that 
debugging log.


Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread ben

Hi,

Does it have ssl enabled? I use squid mainly as a https proxy server and 
the default version on ubuntu 20.04 doesn't have it. Thank you for being 
so kind


在 2022/3/4 22:41, Eliezer Croitoru

Do you want to try another version of squid that was compiled by me?

All The Bests,
Eliezer

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread Eliezer Croitoru
Do you want to try another version of squid that was compiled by me?

All The Bests,
Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of ben
Sent: Friday, March 4, 2022 16:24
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

Hi,

But the sad fact is that there is an empty result when running netstat 
-tunpal | grep 3128. Nor can I telnet localhost 3128 successfully.Any 
idea what it is going on? Thank you!

在 2022/3/4 21:18, Amos Jeffries :
> This log shows port 3128 being opened, right at the end.
>
>
> 2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(25) AsyncCall: The 
> AsyncCall clientListenerConnectionOpened constructed, 
> this=0x5579e31de710 [call3]
> ...
>
> 2022/03/04 18:12:54.537| 54,3| StartListening.cc(58) StartListening: 
> opened listen local=[::]:3128 remote=[::] FD 12 flags=9
>
> 2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(92) ScheduleCall: 
> StartListening.cc(59) will call 
> clientListenerConnectionOpened(local=[::]:3128 remote=[::] FD 12 
> flags=9, err=0, HTTP Socket port=0x5579e31de770) [call3]
>
>
> Amos 
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread ben

Hi,

But the sad fact is that there is an empty result when running netstat 
-tunpal | grep 3128. Nor can I telnet localhost 3128 successfully.Any 
idea what it is going on? Thank you!


在 2022/3/4 21:18, Amos Jeffries :

This log shows port 3128 being opened, right at the end.


2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(25) AsyncCall: The 
AsyncCall clientListenerConnectionOpened constructed, 
this=0x5579e31de710 [call3]

...

2022/03/04 18:12:54.537| 54,3| StartListening.cc(58) StartListening: 
opened listen local=[::]:3128 remote=[::] FD 12 flags=9


2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(92) ScheduleCall: 
StartListening.cc(59) will call 
clientListenerConnectionOpened(local=[::]:3128 remote=[::] FD 12 
flags=9, err=0, HTTP Socket port=0x5579e31de770) [call3]



Amos 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread Amos Jeffries

On 5/03/22 00:11, ben wrote:

Hi,

I've done this and uploaded the log. Please take a look at it. Thank you

https://www.dropbox.com/s/k8nwdjs7bly4exw/squid.log.gz



This log shows port 3128 being opened, right at the end.


2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(25) AsyncCall: The AsyncCall 
clientListenerConnectionOpened constructed, this=0x5579e31de710 [call3]

...

2022/03/04 18:12:54.537| 54,3| StartListening.cc(58) StartListening: 
opened listen local=[::]:3128 remote=[::] FD 12 flags=9


2022/03/04 18:12:54.537| 33,2| AsyncCall.cc(92) ScheduleCall: 
StartListening.cc(59) will call 
clientListenerConnectionOpened(local=[::]:3128 remote=[::] FD 12 
flags=9, err=0, HTTP Socket port=0x5579e31de770) [call3]



Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-04 Thread ben

Hi,

I've done this and uploaded the log. Please take a look at it. Thank you

https://www.dropbox.com/s/k8nwdjs7bly4exw/squid.log.gz


On 3/3/22 11:12, ben wrote:


I tried your suggestions and it is the same result
first I deliberately put some erroreous config in squid.conff and it 
failed to start as a result.
When I ran it again by specifying the default config manually, it 
make no difference from before.


There is a difference, but apparently not in the final outcome.

Please use the following or equivalent command to start your Squid 
with debugging enabled (-X), wait ~30 seconds, and then press 
Control-C (to kill the running Squid process if it is running), 
compress, and share a pointer to the resulting stderr output captured 
in the /tmp/debugging.log file.


    squid -X -N -d9 -f /etc/squid/squid.conf.saved 2> /tmp/debugging.log

It is best to use default Squid configuration for this triage in order 
to reduce the chances of sharing sensitive information in that 
debugging log.


Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Amos Jeffries

On 4/03/22 00:50, Eliezer Croitoru wrote:

Should "squid -kparse" be of help for such a scenario?


Ideally, but it depends on what the exact cause is. The purpose of 
"-kparse" is to find errors that a startup would show anyway, but 
without actually needing a running proxy.


Nothing being visible at all in cache.log indicates Squid has no 
specific check for the situation yet.




Else then using the default squid.conf it would be helpful to explain what are 
the basic squid.conf that is required for squid to run.
I believe that a wiki/doc about this would be nice (volunteering to write a 
draft later on)



The bundled QUICKSTART file is supposed to be that first-time basic intro.

FYI; wiki is being overhauled by kinkie right now :-). If you do any 
significant update please ping him with details. Cheers



Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Alex Rousskov

On 3/3/22 11:12, ben wrote:


I tried your suggestions and it is the same result
first I deliberately put some erroreous config in squid.conff and it 
failed to start as a result.
When I ran it again by specifying the default config manually, it make 
no difference from before.


There is a difference, but apparently not in the final outcome.

Please use the following or equivalent command to start your Squid with 
debugging enabled (-X), wait ~30 seconds, and then press Control-C (to 
kill the running Squid process if it is running), compress, and share a 
pointer to the resulting stderr output captured in the 
/tmp/debugging.log file.


squid -X -N -d9 -f /etc/squid/squid.conf.saved 2> /tmp/debugging.log

It is best to use default Squid configuration for this triage in order 
to reduce the chances of sharing sensitive information in that debugging 
log.


Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread ben


Hi,

I tried your suggestions and it is the same result
first I deliberately put some erroreous config in squid.conff and it 
failed to start as a result.
When I ran it again by specifying the default config manually, it make 
no difference from before.


Many thinks for your help
root@vps:/etc/squid# squid -d1
2022/03/04 00:04:37| FATAL: http_port: missing Port: dfdf
2022/03/04 00:04:37| FATAL: Bungled /etc/squid/squid.conf line 1: 
http_port dfdf

2022/03/04 00:04:37| Squid Cache (Version 4.17): Terminated abnormally.
CPU Usage: 0.005 seconds = 0.000 user + 0.005 sys
Maximum Resident Size: 54160 KB
Page faults with physical i/o: 1
root@vps3:/etc/squid# squid -N -d1 -f /etc/squid/squid.conf.saved
2022/03/04 00:05:32| Created PID file (/var/run/squid.pid)
2022/03/04 00:05:32| Set Current Directory to /var/cache/squid
2022/03/04 00:05:32| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...

2022/03/04 00:05:32| Service Name: squid
2022/03/04 00:05:32| Process ID 384315
2022/03/04 00:05:32| Process Roles: master worker
2022/03/04 00:05:32| With 1024 file descriptors available
2022/03/04 00:05:32| Initializing IP Cache...
2022/03/04 00:05:32| DNS Socket created at [::], FD 3
2022/03/04 00:05:32| DNS Socket created at 0.0.0.0, FD 9
2022/03/04 00:05:32| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/04 00:05:32| Logfile: opening log daemon:/var/log/access.log
2022/03/04 00:05:32| Logfile Daemon: opening log /var/log/access.log
2022/03/04 00:05:32| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec

2022/03/04 00:05:32| Store logging disabled
2022/03/04 00:05:32| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2022/03/04 00:05:32| Target number of buckets: 1008
2022/03/04 00:05:32| Using 8192 Store buckets
2022/03/04 00:05:32| Max Mem  size: 262144 KB
2022/03/04 00:05:32| Max Swap size: 0 KB
2022/03/04 00:05:32| Using Least Load store dir selection
2022/03/04 00:05:32| Set Current Directory to /var/cache/squid
2022/03/04 00:05:32| Finished loading MIME types and icons.
2022/03/04 00:05:32| HTCP Disabled.



--
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.
I don't have lysdexia. The Dog wouldn't allow that.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Alex Rousskov

On 3/3/22 09:42, 苏 格 wrote:

Yes, I checked the config again and I'm sure that's the config squid is 
running with


Your Squid output suggests that you are running an SMP Squid. That, in 
turn, suggests that you suffer from an SMP/IPC communication problem.


I suggest the following triage steps:

1. Move your Squid configuration file somewhere else for safekeeping.

2. Write a new configuration file with nothing but some garbage in it. 
For example, you can put an "http_port XXX" line and nothing else. Make 
sure you get a startup error with that configuration file. No Squid 
process should be running. If your Squid still starts OK, then you are 
not using the configuration file you think you are using.


3. Start Squid from the command line, using "-N -d1 -f 
path/to/saved-configuration-file-from-item1.conf" or similar command 
line options and see if you can get your Squid to listen that way. Share 
your results.



HTH,

Alex.





netstat -tnlpe|grep :3128 failed to produce any output

Thank you for your help!


*发件人:* squid-users  代表 
Matus UHLAR - fantomas 

*发送时间:* 2022年3月3日 14:29
*收件人:* squid-users@lists.squid-cache.org 


*主题:* Re: [squid-users] SQUID refuses to listen on any TCP Port
On 03.03.22 13:56, 苏 格 wrote:

I tried using the default config. No difference


are you sure there's this line in the default config?

http_port 3128

are you sure there's nothing listening on 3128?

netstat -tnlpe|grep :3128


2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...
2022/03/03 21:49:17 kid1| Service Name: squid
2022/03/03 21:49:17 kid1| Process ID 382776
2022/03/03 21:49:17 kid1| Process Roles: worker
2022/03/03 21:49:17 kid1| With 1024 file descriptors available
2022/03/03 21:49:17 kid1| Initializing IP Cache...
2022/03/03 21:49:17 kid1| DNS Socket created at [::], FD 5
2022/03/03 21:49:17 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 21:49:17 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 21:49:17 kid1| Logfile: opening log daemon:/var/log/access.log
2022/03/03 21:49:17 kid1| Logfile Daemon: opening log /var/log/access.log
2022/03/03 21:49:17 kid1| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2022/03/03 21:49:17 kid1| Store logging disabled
2022/03/03 21:49:17 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2022/03/03 21:49:17 kid1| Target number of buckets: 1008
2022/03/03 21:49:17 kid1| Using 8192 Store buckets
2022/03/03 21:49:17 kid1| Max Mem  size: 262144 KB
2022/03/03 21:49:17 kid1| Max Swap size: 0 KB
2022/03/03 21:49:17 kid1| Using Least Load store dir selection
2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Finished loading MIME types and icons.
2022/03/03 21:49:17 kid1| HTCP Disabled.

netstat -tunpal shows
netstat -tunpal | grep squid
udp    0  0 0.0.0.0:21638   0.0.0.0:*   
382776/(squid-1)
udp6   0  0 ::1:40383   ::1:50900   ESTABLISHED 
382776/(squid-1)
udp6   0  0 ::1:50900   ::1:40383   ESTABLISHED 
382776/(squid-1)
udp6   0  0 :::15633    :::*    
382776/(squid-1)


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.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.
I don't have lysdexia. The Dog wouldn't allow that.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users 
<http://lists.squid-cache.org/listinfo/squid-users>


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread 苏 格
Hi,
Yes, I checked the config again and I'm sure that's the config squid is running 
with


netstat -tnlpe|grep :3128 failed to produce any output

Thank you for your help!


发件人: squid-users  代表 Matus UHLAR - 
fantomas 
发送时间: 2022年3月3日 14:29
收件人: squid-users@lists.squid-cache.org 
主题: Re: [squid-users] SQUID refuses to listen on any TCP Port

On 03.03.22 13:56, 苏 格 wrote:
>I tried using the default config. No difference

are you sure there's this line in the default config?

http_port 3128

are you sure there's nothing listening on 3128?

netstat -tnlpe|grep :3128

>2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
>2022/03/03 21:49:17 kid1| Starting Squid Cache version 4.17 for 
>x86_64-pc-linux-gnu...
>2022/03/03 21:49:17 kid1| Service Name: squid
>2022/03/03 21:49:17 kid1| Process ID 382776
>2022/03/03 21:49:17 kid1| Process Roles: worker
>2022/03/03 21:49:17 kid1| With 1024 file descriptors available
>2022/03/03 21:49:17 kid1| Initializing IP Cache...
>2022/03/03 21:49:17 kid1| DNS Socket created at [::], FD 5
>2022/03/03 21:49:17 kid1| DNS Socket created at 0.0.0.0, FD 8
>2022/03/03 21:49:17 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
>2022/03/03 21:49:17 kid1| Logfile: opening log daemon:/var/log/access.log
>2022/03/03 21:49:17 kid1| Logfile Daemon: opening log /var/log/access.log
>2022/03/03 21:49:17 kid1| Local cache digest enabled; rebuild/rewrite every 
>3600/3600 sec
>2022/03/03 21:49:17 kid1| Store logging disabled
>2022/03/03 21:49:17 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
>2022/03/03 21:49:17 kid1| Target number of buckets: 1008
>2022/03/03 21:49:17 kid1| Using 8192 Store buckets
>2022/03/03 21:49:17 kid1| Max Mem  size: 262144 KB
>2022/03/03 21:49:17 kid1| Max Swap size: 0 KB
>2022/03/03 21:49:17 kid1| Using Least Load store dir selection
>2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
>2022/03/03 21:49:17 kid1| Finished loading MIME types and icons.
>2022/03/03 21:49:17 kid1| HTCP Disabled.
>
>netstat -tunpal shows
> netstat -tunpal | grep squid
>udp0  0 0.0.0.0:21638   0.0.0.0:*  
> 382776/(squid-1)
>udp6   0  0 ::1:40383   ::1:50900   
>ESTABLISHED 382776/(squid-1)
>udp6   0  0 ::1:50900   ::1:40383   
>ESTABLISHED 382776/(squid-1)
>udp6   0  0 :::15633:::*   
> 382776/(squid-1)

--
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.
I don't have lysdexia. The Dog wouldn't allow that.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Matus UHLAR - fantomas

On 03.03.22 13:56, 苏 格 wrote:

I tried using the default config. No difference


are you sure there's this line in the default config?

http_port 3128

are you sure there's nothing listening on 3128?

netstat -tnlpe|grep :3128


2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...
2022/03/03 21:49:17 kid1| Service Name: squid
2022/03/03 21:49:17 kid1| Process ID 382776
2022/03/03 21:49:17 kid1| Process Roles: worker
2022/03/03 21:49:17 kid1| With 1024 file descriptors available
2022/03/03 21:49:17 kid1| Initializing IP Cache...
2022/03/03 21:49:17 kid1| DNS Socket created at [::], FD 5
2022/03/03 21:49:17 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 21:49:17 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 21:49:17 kid1| Logfile: opening log daemon:/var/log/access.log
2022/03/03 21:49:17 kid1| Logfile Daemon: opening log /var/log/access.log
2022/03/03 21:49:17 kid1| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2022/03/03 21:49:17 kid1| Store logging disabled
2022/03/03 21:49:17 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2022/03/03 21:49:17 kid1| Target number of buckets: 1008
2022/03/03 21:49:17 kid1| Using 8192 Store buckets
2022/03/03 21:49:17 kid1| Max Mem  size: 262144 KB
2022/03/03 21:49:17 kid1| Max Swap size: 0 KB
2022/03/03 21:49:17 kid1| Using Least Load store dir selection
2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Finished loading MIME types and icons.
2022/03/03 21:49:17 kid1| HTCP Disabled.

netstat -tunpal shows
netstat -tunpal | grep squid
udp0  0 0.0.0.0:21638   0.0.0.0:*   
382776/(squid-1)
udp6   0  0 ::1:40383   ::1:50900   ESTABLISHED 
382776/(squid-1)
udp6   0  0 ::1:50900   ::1:40383   ESTABLISHED 
382776/(squid-1)
udp6   0  0 :::15633:::*
382776/(squid-1)


--
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.
I don't have lysdexia. The Dog wouldn't allow that.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread 苏 格


here is the default config

#
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 0.0.0.1-0.255.255.255  # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10  # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly 
plugged) machines
acl localnet src 172.16.0.0/12  # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN)
acl localnet src fc00::/7   # RFC 4193 local private network range
acl localnet src fe80::/10  # RFC 4291 link-local (directly 
plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70  # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/cache/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/cache/squid

#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp:   144020% 10080
refresh_pattern ^gopher:14400%  1440
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern .   0   20% 4320

Hi,

I tried using the default config. No difference

2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...
2022/03/03 21:49:17 kid1| Service Name: squid
2022/03/03 21:49:17 kid1| Process ID 382776
2022/03/03 21:49:17 kid1| Process Roles: worker
2022/03/03 21:49:17 kid1| With 1024 file descriptors available
2022/03/03 21:49:17 kid1| Initializing IP Cache...
2022/03/03 21:49:17 kid1| DNS Socket created at [::], FD 5
2022/03/03 21:49:17 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 21:49:17 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 21:49:17 kid1| Logfile: opening log daemon:/var/log/access.log
2022/03/03 21:49:17 kid1| Logfile Daemon: opening log /var/log/access.log
2022/03/03 21:49:17 kid1| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2022/03/03 21:49:17 kid1| Store logging disabled
2022/03/03 21:49:17 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2022/03/03 21:49:17 kid1| Target number of buckets: 1008
2022/03/03 21:49:17 kid1| Using 8192 Store buckets
2022/03/03 21:49:17 kid1| Max Mem  size: 262144 KB
2022/03/03 21:49:17 kid1| Max Swap size: 0 KB
2022/03/03 21:49:17 kid1| Using Least Load store dir selection
2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Finished loading MIME types and icons.
2022/03/03 21:49:17 kid1| HTCP Disabled.

netstat -tunpal shows
 netstat -tunpal | grep squid
udp0  0 0.0.0.0:21638   0.0.0.0:*   
382776/(squid-1)
udp6   0  0 ::1:40383   ::1:50900   ESTABLISHED 
382776/(squid-1)
udp6   0  0 ::1:50900   ::1:40383   ESTABLISHED 
382776/(squid-1)
udp6   0  0 :::15633:::*
382776/(squid-1)

On 3/03/22 14:48, ben wrote:
> Hi,Alex,
>
>
> Thanks for your help. I run squid with the option d1 and its output is
> as followings
> 2022/03/03 09:17:39 kid1| Current Directory is /root
> 2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17 for
> x86_64-pc-linux-gnu...
> 2022/03/03 09:17:39 kid1| Service 

Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread 苏 格


Hi,

I tried using the default config. No difference

2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...
2022/03/03 21:49:17 kid1| Service Name: squid
2022/03/03 21:49:17 kid1| Process ID 382776
2022/03/03 21:49:17 kid1| Process Roles: worker
2022/03/03 21:49:17 kid1| With 1024 file descriptors available
2022/03/03 21:49:17 kid1| Initializing IP Cache...
2022/03/03 21:49:17 kid1| DNS Socket created at [::], FD 5
2022/03/03 21:49:17 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 21:49:17 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 21:49:17 kid1| Logfile: opening log daemon:/var/log/access.log
2022/03/03 21:49:17 kid1| Logfile Daemon: opening log /var/log/access.log
2022/03/03 21:49:17 kid1| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2022/03/03 21:49:17 kid1| Store logging disabled
2022/03/03 21:49:17 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2022/03/03 21:49:17 kid1| Target number of buckets: 1008
2022/03/03 21:49:17 kid1| Using 8192 Store buckets
2022/03/03 21:49:17 kid1| Max Mem  size: 262144 KB
2022/03/03 21:49:17 kid1| Max Swap size: 0 KB
2022/03/03 21:49:17 kid1| Using Least Load store dir selection
2022/03/03 21:49:17 kid1| Set Current Directory to /var/cache/squid
2022/03/03 21:49:17 kid1| Finished loading MIME types and icons.
2022/03/03 21:49:17 kid1| HTCP Disabled.

netstat -tunpal shows
 netstat -tunpal | grep squid
udp0  0 0.0.0.0:21638   0.0.0.0:*   
382776/(squid-1)
udp6   0  0 ::1:40383   ::1:50900   ESTABLISHED 
382776/(squid-1)
udp6   0  0 ::1:50900   ::1:40383   ESTABLISHED 
382776/(squid-1)
udp6   0  0 :::15633:::*
382776/(squid-1)

On 3/03/22 14:48, ben wrote:
> Hi,Alex,
>
>
> Thanks for your help. I run squid with the option d1 and its output is
> as followings
> 2022/03/03 09:17:39 kid1| Current Directory is /root
> 2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17 for
> x86_64-pc-linux-gnu...
> 2022/03/03 09:17:39 kid1| Service Name: squid
> 2022/03/03 09:17:39 kid1| Process ID 239617
> 2022/03/03 09:17:39 kid1| Process Roles: worker
> 2022/03/03 09:17:39 kid1| With 1024 file descriptors available
> 2022/03/03 09:17:39 kid1| Initializing IP Cache...
> 2022/03/03 09:17:39 kid1| DNS Socket created at [::], FD 5
> 2022/03/03 09:17:39 kid1| DNS Socket created at 0.0.0.0, FD 8
> 2022/03/03 09:17:39 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
> 2022/03/03 09:17:39 kid1| Logfile: opening log
> daemon:/var/log/squid/access.log
> 2022/03/03 09:17:39 kid1| Logfile Daemon: opening log
> /var/log/squid/access.log
> 2022/03/03 09:17:39 kid1| Local cache digest enabled; rebuild/rewrite
> every 3600/3600 sec
> 2022/03/03 09:17:39 kid1| Store logging disabled
> 2022/03/03 09:17:39 kid1| Swap maxSize 0 + 262144 KB, estimated 20164
> objects
> 2022/03/03 09:17:39 kid1| Target number of buckets: 1008
> 2022/03/03 09:17:39 kid1| Using 8192 Store buckets
> 2022/03/03 09:17:39 kid1| Max Mem  size: 262144 KB
> 2022/03/03 09:17:39 kid1| Max Swap size: 0 KB
> 2022/03/03 09:17:39 kid1| Using Least Load store dir selection
> 2022/03/03 09:17:39 kid1| Current Directory is /root
> 2022/03/03 09:17:39 kid1| Finished loading MIME types and icons.
> 2022/03/03 09:17:39 kid1| HTCP Disabled.
>
> the only line in squid.conf is http_port 3128


That itself could be the problem.

Please at least use the default config file shown in
, or better use the squid.conf
file built with your custom binary.



Cheers
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Eliezer Croitoru
Should "squid -kparse" be of help for such a scenario?
Else then using the default squid.conf it would be helpful to explain what are 
the basic squid.conf that is required for squid to run.
I believe that a wiki/doc about this would be nice (volunteering to write a 
draft later on)

Eliezer


Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1...@gmail.com

-Original Message-
From: squid-users  On Behalf Of Amos 
Jeffries
Sent: Thursday, March 3, 2022 10:38
To: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] SQUID refuses to listen on any TCP Port

On 3/03/22 14:48, ben wrote:
> Hi,Alex,
> 
> 
> Thanks for your help. I run squid with the option d1 and its output is 
> as followings
> 2022/03/03 09:17:39 kid1| Current Directory is /root
> 2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17 for 
> x86_64-pc-linux-gnu...
> 2022/03/03 09:17:39 kid1| Service Name: squid
> 2022/03/03 09:17:39 kid1| Process ID 239617
> 2022/03/03 09:17:39 kid1| Process Roles: worker
> 2022/03/03 09:17:39 kid1| With 1024 file descriptors available
> 2022/03/03 09:17:39 kid1| Initializing IP Cache...
> 2022/03/03 09:17:39 kid1| DNS Socket created at [::], FD 5
> 2022/03/03 09:17:39 kid1| DNS Socket created at 0.0.0.0, FD 8
> 2022/03/03 09:17:39 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
> 2022/03/03 09:17:39 kid1| Logfile: opening log 
> daemon:/var/log/squid/access.log
> 2022/03/03 09:17:39 kid1| Logfile Daemon: opening log 
> /var/log/squid/access.log
> 2022/03/03 09:17:39 kid1| Local cache digest enabled; rebuild/rewrite 
> every 3600/3600 sec
> 2022/03/03 09:17:39 kid1| Store logging disabled
> 2022/03/03 09:17:39 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 
> objects
> 2022/03/03 09:17:39 kid1| Target number of buckets: 1008
> 2022/03/03 09:17:39 kid1| Using 8192 Store buckets
> 2022/03/03 09:17:39 kid1| Max Mem  size: 262144 KB
> 2022/03/03 09:17:39 kid1| Max Swap size: 0 KB
> 2022/03/03 09:17:39 kid1| Using Least Load store dir selection
> 2022/03/03 09:17:39 kid1| Current Directory is /root
> 2022/03/03 09:17:39 kid1| Finished loading MIME types and icons.
> 2022/03/03 09:17:39 kid1| HTCP Disabled.
> 
> the only line in squid.conf is http_port 3128


That itself could be the problem.

Please at least use the default config file shown in 
<https://wiki.squid-cache.org/Squid-4>, or better use the squid.conf 
file built with your custom binary.



Cheers
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-03 Thread Amos Jeffries

On 3/03/22 14:48, ben wrote:

Hi,Alex,


Thanks for your help. I run squid with the option d1 and its output is 
as followings

2022/03/03 09:17:39 kid1| Current Directory is /root
2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...

2022/03/03 09:17:39 kid1| Service Name: squid
2022/03/03 09:17:39 kid1| Process ID 239617
2022/03/03 09:17:39 kid1| Process Roles: worker
2022/03/03 09:17:39 kid1| With 1024 file descriptors available
2022/03/03 09:17:39 kid1| Initializing IP Cache...
2022/03/03 09:17:39 kid1| DNS Socket created at [::], FD 5
2022/03/03 09:17:39 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 09:17:39 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 09:17:39 kid1| Logfile: opening log 
daemon:/var/log/squid/access.log
2022/03/03 09:17:39 kid1| Logfile Daemon: opening log 
/var/log/squid/access.log
2022/03/03 09:17:39 kid1| Local cache digest enabled; rebuild/rewrite 
every 3600/3600 sec

2022/03/03 09:17:39 kid1| Store logging disabled
2022/03/03 09:17:39 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 
objects

2022/03/03 09:17:39 kid1| Target number of buckets: 1008
2022/03/03 09:17:39 kid1| Using 8192 Store buckets
2022/03/03 09:17:39 kid1| Max Mem  size: 262144 KB
2022/03/03 09:17:39 kid1| Max Swap size: 0 KB
2022/03/03 09:17:39 kid1| Using Least Load store dir selection
2022/03/03 09:17:39 kid1| Current Directory is /root
2022/03/03 09:17:39 kid1| Finished loading MIME types and icons.
2022/03/03 09:17:39 kid1| HTCP Disabled.

the only line in squid.conf is http_port 3128



That itself could be the problem.

Please at least use the default config file shown in 
, or better use the squid.conf 
file built with your custom binary.




Cheers
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-02 Thread ben

Hi,Alex,


Thanks for your help. I run squid with the option d1 and its output is 
as followings

2022/03/03 09:17:39 kid1| Current Directory is /root
2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17 for 
x86_64-pc-linux-gnu...

2022/03/03 09:17:39 kid1| Service Name: squid
2022/03/03 09:17:39 kid1| Process ID 239617
2022/03/03 09:17:39 kid1| Process Roles: worker
2022/03/03 09:17:39 kid1| With 1024 file descriptors available
2022/03/03 09:17:39 kid1| Initializing IP Cache...
2022/03/03 09:17:39 kid1| DNS Socket created at [::], FD 5
2022/03/03 09:17:39 kid1| DNS Socket created at 0.0.0.0, FD 8
2022/03/03 09:17:39 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2022/03/03 09:17:39 kid1| Logfile: opening log 
daemon:/var/log/squid/access.log
2022/03/03 09:17:39 kid1| Logfile Daemon: opening log 
/var/log/squid/access.log
2022/03/03 09:17:39 kid1| Local cache digest enabled; rebuild/rewrite 
every 3600/3600 sec

2022/03/03 09:17:39 kid1| Store logging disabled
2022/03/03 09:17:39 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 
objects

2022/03/03 09:17:39 kid1| Target number of buckets: 1008
2022/03/03 09:17:39 kid1| Using 8192 Store buckets
2022/03/03 09:17:39 kid1| Max Mem  size: 262144 KB
2022/03/03 09:17:39 kid1| Max Swap size: 0 KB
2022/03/03 09:17:39 kid1| Using Least Load store dir selection
2022/03/03 09:17:39 kid1| Current Directory is /root
2022/03/03 09:17:39 kid1| Finished loading MIME types and icons.
2022/03/03 09:17:39 kid1| HTCP Disabled.

the only line in squid.conf is http_port 3128
On 2022/3/2 22:45, Alex Rousskov wrote:

On 3/1/22 21:15, 苏 格 wrote:

I run squid 4.17 on ubuntu 20.04.4 and it starts without any error. 
But no matter what TCP port I specify, it won’t listen on it.Netstat 
-tunpal shows only udp port associated with squid.


I have compiled it using the following options:

  ./configure  --prefix=/usr/local --localstatedir=/var 
--libexecdir=${prefix}/lib/squid  --srcdir=. 
--datadir=${prefix}/share/squid --sysconfdir=/etc/squid 
--with-default-user=proxy --with-logdir=/var/log 
--with-pidfile=/var/run/squid.pid --enable-ssl --enable-dlmalloc 
--enable-gnuregex --enable-xmalloc-debug --enable-xmalloc-debug-trace 
--enable-xmalloc-statistics --enable-async-io --enable-icmp 
--enable-delay-pools --enable-useragent-log--enable-kill-parent-hack 
--enable-cachemgr-hostname --enable-htpc --enable-forw-via-db 
--enable-cache-digests --enable-follow-x-forwarded-for --enable-auth 
--enable-linux-netfilter --with-openssl --with-filedescriptors=65536 
--enable-ltdl-convenience


Do you use "workers" in squid.conf? If yes, try temporary setting that 
directive to 1 or starting Squid with "-N" to see whether this is an 
SMP-related problem.


Please share cache.log output that appears when you start Squid. That 
log may be in /var/log, but I am not sure (and it depends, in part, on 
your Squid configuration). If there is no output there, you may need 
to start your Squid by hand and give a "-d1" command line option 
(among others) to see startup output on the console.


Sharing you *_port directives may also be helpful.

Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] SQUID refuses to listen on any TCP Port

2022-03-02 Thread Alex Rousskov

On 3/1/22 21:15, 苏 格 wrote:

I run squid 4.17 on ubuntu 20.04.4 and it starts without any error. But 
no matter what TCP port I specify, it won’t listen on it.Netstat -tunpal 
shows only udp port associated with squid.


I have compiled it using the following options:

  ./configure  --prefix=/usr/local --localstatedir=/var 
--libexecdir=${prefix}/lib/squid  --srcdir=. 
--datadir=${prefix}/share/squid --sysconfdir=/etc/squid 
--with-default-user=proxy --with-logdir=/var/log 
--with-pidfile=/var/run/squid.pid --enable-ssl --enable-dlmalloc 
--enable-gnuregex --enable-xmalloc-debug --enable-xmalloc-debug-trace 
--enable-xmalloc-statistics --enable-async-io --enable-icmp 
--enable-delay-pools --enable-useragent-log--enable-kill-parent-hack 
--enable-cachemgr-hostname --enable-htpc --enable-forw-via-db 
--enable-cache-digests --enable-follow-x-forwarded-for --enable-auth 
--enable-linux-netfilter --with-openssl --with-filedescriptors=65536 
--enable-ltdl-convenience


Do you use "workers" in squid.conf? If yes, try temporary setting that 
directive to 1 or starting Squid with "-N" to see whether this is an 
SMP-related problem.


Please share cache.log output that appears when you start Squid. That 
log may be in /var/log, but I am not sure (and it depends, in part, on 
your Squid configuration). If there is no output there, you may need to 
start your Squid by hand and give a "-d1" command line option (among 
others) to see startup output on the console.


Sharing you *_port directives may also be helpful.

Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] SQUID refuses to listen on any TCP Port

2022-03-01 Thread 苏 格
Hi,

I run squid 4.17 on ubuntu 20.04.4 and it starts without any error. But no 
matter what TCP port I specify, it won’t listen on it.Netstat -tunpal shows 
only udp port associated with squid.

I have compiled it using the following options:



 ./configure  --prefix=/usr/local --localstatedir=/var 
--libexecdir=${prefix}/lib/squid  --srcdir=. --datadir=${prefix}/share/squid 
--sysconfdir=/etc/squid --with-default-user=proxy --with-logdir=/var/log 
--with-pidfile=/var/run/squid.pid --enable-ssl --enable-dlmalloc 
--enable-gnuregex --enable-xmalloc-debug --enable-xmalloc-debug-trace 
--enable-xmalloc-statistics --enable-async-io --enable-icmp 
--enable-delay-pools --enable-useragent-log--enable-kill-parent-hack 
--enable-cachemgr-hostname --enable-htpc --enable-forw-via-db 
--enable-cache-digests --enable-follow-x-forwarded-for --enable-auth 
--enable-linux-netfilter --with-openssl --with-filedescriptors=65536 
--enable-ltdl-convenience



I have been struggling with this for several days and hope someone here can 
help me. Thank you!

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users