I’m trying to use squid ( v 3.4.4-3.4.2) but it does not work properly so far, as soon i enable squid in the brower the sites are not loaded anymore, they are as usual if i disable squid in the brower (firefox).
i first had this error in the journal : hostname was not seen properly
i added the line in squid.conf :
# set visible_hostname (specify hostname)
visible_hostname my_hostname
Is this enough or shall i add to /etc/hosts too ?
Now it seems the squid service can’t be started properly :
# systemctl start /usr/lib/systemd/system/squid.service
Failed to start usr-lib-systemd-system-squid.service.mount: Unit usr-lib-systemd-system-squid.service.mount failed to load: No such file or directory.
Well, the message says that /usr/lib/systemd/system/squid.service does not exist. Should it exist? You think it should, else you wouldn’t have used it your command. But are you sure this is the correct name?
By default Squid doesn’t allow anyone to connect to it, not even localhost (or at least that’s what I remember, I’ve used my own Squid configuration for almost 10 years now so I haven’t looked at the default one in a while)
You need to edit the configuration file, add a acl line and then http_access allow theacl, or edit one of the “localnet” ranges that are in the configuration file by default.
hi,
i don’t get it for i used squid before and did not touch the conf file, just installed it and enabled it in yast system services and in firefox settings.
now i have this
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl localnet src 127.0.0.1
...
# 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