Bug 46213 - Correct squid.conf template for local ip addresses
Correct squid.conf template for local ip addresses
Status: NEW
Product: UCS
Classification: Unclassified
Component: Squid
UCS 5.0
All other
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-03 10:05 CET by Ulf Kosack
Modified: 2021-05-03 21:33 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup, Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Kosack 2018-02-03 10:05:35 CET
UCS generates squid.conf with incorrect localnet lines for the local ip addresses, so every restart (also via cronjob) produces warnings:

Feb  3 09:36:44 srv005 squid3[3226]: Starting Squid HTTP Proxy 3.x: squid32018/02/03 09:36:44| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '10.0.1.12/24'
Feb  3 09:36:44 srv005 squid3[3226]: 2018/02/03 09:36:44| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '10.0.2.5/24'

Please correct the template, so ip adresses will followed by the correct subnetmask of /32 and daily reload/restart don't produce warnings (that send via email).

--- /etc/squid3/squid.conf.gen  2018-02-03 09:40:51.773426506 +0100
+++ /etc/squid3/squid.conf      2018-02-03 10:03:04.496192959 +0100
@@ -46,8 +46,8 @@
 acl web_ports port 21

 # network ACLs
-acl localnet0 src 10.0.1.12/24
-acl localnet1 src 10.0.2.5/24
+acl localnet0 src 10.0.1.12/32
+acl localnet1 src 10.0.2.5/32
 acl localnet2 src 10.0.1.0/24
 acl localnet3 src 10.0.2.0/24
 acl localnet4 src 10.0.3.0/24


UCS: 4.2-3 errata284
App Center compatibility: 4
Installed: mobydick=1.0.0 pkgdb=10 squid=3.4
Upgradable: