I want to run may instances of squid proxies. But I am only able to connect with them when squid is started with sudo. In the squid config I have:
access_log none
cache_store_log none
cache_log /dev/null
$ squid -n squida -f /tmp/squid_80fm8klt.conf
$ curl --proxy http://localhost:3129 https://httpbin.org/ip
curl: (7) Failed to connect to localhost port 3129: Connection refused
$ sudo squid -n squida -f /tmp/squid_80fm8klt.conf
WARNING: Cannot write log file: none
none: Permission denied
messages will be sent to 'stderr'.
$ curl --proxy http://localhost:3129 https://httpbin.org/ip
{
"origin": "92.119.18.XX"
}
I'm on a Fedora 32 system.
Full config:
http_access allow all
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
access_log none
cache_store_log none
cache_log /dev/null
never_direct allow all
cache_peer zzz.nordvpn.com parent 89 3130 tls login=xXx:yYy
http_port 3129
none". Have you readman -k squid? What port are you using? Ports under 1000 are privileged.cache_logdoesn't shownoneas a supported value (compare withaccess_log, which does).noneis from here: wiki.squid-cache.org/SquidFaq/…/dev/nullas per the wiki and I still have the same issuenone. However,squidrun as my user does fail, but debug logging showed that that was because it could not write to the PID file. Runsquid -n squida -f /tmp/squid_80fm8klt.conf -N -d 1to see what your squid is failing over.