[squid-users] IPv6 interception crash: Ip::Address::getInAddr : Cannot convert non-IPv4 to IPv4.

Egerváry Gergely gergely at egervary.hu
Tue Oct 4 11:38:56 UTC 2016


> Aha. Damn macros.
> 
> There are a few changes needed, for both v4/v6 inputs and 'realip'
> processing. This attached patch should be what you need for Squid-3.5 to
> work.

Getting closer, but still not there...

The browser client is 2001:738:7a00:a::a:d, the remote destination is
2001:4c48:2:268::2:1c

The ipnat state table entry:
RDR 2001:738:7a00:a::14 3128  <- -> 2001:4c48:2:268::2:1c 80
[2001:738:7a00:a::a:d 56623]

Squid log:

2016/10/04 13:16:33.365 kid1| 51,3| fd.cc(198) fd_open: fd_open() FD 22
HTTP Request
2016/10/04 13:16:33.366 kid1| 89,5| Intercept.cc(391) Lookup: address
BEGIN: me/client= [2001:738:7a00:a::14]:3128, destination/me=
[2001:738:7a00:a::14]:65491
2016/10/04 13:16:33.366 kid1| 89,9| Intercept.cc(290) IpfInterception:
address: local=[2001:738:7a00:a::14]:3128
remote=[2001:738:7a00:a::14]:65491 FD 22 flags=33
2016/10/04 13:16:33.366 kid1| ERROR: NAT/TPROXY lookup failed to locate
original IPs on local=[2001:738:7a00:a::14]:3128
remote=[2001:738:7a00:a::14]:65491 FD 22 flags=33
2016/10/04 13:16:33.366 kid1| 5,5| TcpAcceptor.cc(287) acceptOne:
Listener: local=[2001:738:7a00:a::14]:3128 remote=[::] FD 1
9 flags=41 accepted new connection local=[2001:738:7a00:a::14]:3128
remote=[2001:738:7a00:a::14]:65491 FD 22 flags=33 handler
 Subscription: 0x16acf40*1

--
Gergely EGERVARY



More information about the squid-users mailing list