[CentOS] Squid3 on CentOS 6.6: IPv6 PTR endianess

Sat Jan 31 18:36:30 UTC 2015
Max Grobecker <max at grobecker.info>


I'm running a Squid cache (Version 3.1.10) on CentOS 6.6 as a forward proxy which is reachable over a global IPv6 address.
For whatever reason, Squid tries to perform PTR lookups on the client's IPv6 address.

The weird thing is, that Squid seems to struggle with the "endianess" of the IPv6 address blocks.
For example:

My current client IP is 2003:6e:d79:2104:7163:7ecd:9333:f0be.
Squid tries to resolve b.e.f.
That means:

->   0230 :  00e6 :  d097 :  1240 :  1736 :  e7dc :  3933 :  0feb

For comparison:

Squid:	0230:00e6:d097:1240:1736:e7dc:3933:0feb
Real:	2003:006e:0d79:2104:7163:7ecd:9333:f0be

It seems, that Squid just messes with the order of the Bytes on each block.

I couldn't find any related bug report on this (checked Squid and CentOS bug tracker), so I'm not sure if it's
a CentOS or Squid related problem.

Is anyone else experiencing this? It seems to be happen on IPv6 client addresses only - with IPv4 it works just fine.
And besides of these broken PTR lookups Squid is working as expected.

Greetings from Wuppertal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20150131/7ae2778c/attachment-0002.sig>