Skip to main content
1 of 3
tsorn
  • 159
  • 1
  • 8

Squid only works when run with 'sudo'

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 none
$ 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

tsorn
  • 159
  • 1
  • 8