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

2016-10-13 Thread Egerváry Gergely
Thanks for the testing and feedback. I've applied this as part-2 of the bug 4302 updates. It will be in the next releases of 3.5 and 4.x. One more patch for Intercept.cc: On NetBSD, USE_INET6 is only defined by netinet/ip_compat.h if __NetBSD_Version__ is defined by sys/param.h: #if defined(__

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

2016-10-04 Thread Egerváry Gergely
> Thanks for the testing and feedback. I've applied this as part-2 of the > bug 4302 updates. It will be in the next releases of 3.5 and 4.x. you are the hero of the day, thank you very much! -- Gergely EGERVARY ___ squid-users mailing list squid-user

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

2016-10-04 Thread Stephen Borrill
On 04/10/2016 14:10, Amos Jeffries wrote: > On 5/10/2016 1:16 a.m., Egerváry Gergely wrote: >>> Getting closer, but still not there... >> >> Hah, we need to apply the kern/50198 patch to ipnat_6.c too. >> >> --- ip_nat6.c.orig 2015-08-08 18:31:21.0 +0200 >> +++ ip_nat6.c 2016-10-04 1

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

2016-10-04 Thread Amos Jeffries
On 5/10/2016 1:16 a.m., Egerváry Gergely wrote: >> Getting closer, but still not there... > > Hah, we need to apply the kern/50198 patch to ipnat_6.c too. > > --- ip_nat6.c.orig 2015-08-08 18:31:21.0 +0200 > +++ ip_nat6.c 2016-10-04 14:04:21.0 +0200 > @@ -2470,8 +2469,8 @@

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

2016-10-04 Thread Egerváry Gergely
> Getting closer, but still not there... Hah, we need to apply the kern/50198 patch to ipnat_6.c too. --- ip_nat6.c.orig 2015-08-08 18:31:21.0 +0200 +++ ip_nat6.c 2016-10-04 14:04:21.0 +0200 @@ -2470,8 +2469,8 @@ } }

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

2016-10-04 Thread Egerváry Gergely
> 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:2

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

2016-10-04 Thread Amos Jeffries
On 4/10/2016 10:52 p.m., Egerváry Gergely wrote: >> Is there another defined somewhere else? For some reason your Squid is >> managing to build with just "nl_inip" (no 'addr') in the field name. > > There's a copy in /usr/include/netinet, but it's the same: > > typedef struct natlookup { >

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

2016-10-04 Thread Egerváry Gergely
> Is there another defined somewhere else? For some reason your Squid is > managing to build with just "nl_inip" (no 'addr') in the field name. There's a copy in /usr/include/netinet, but it's the same: typedef struct natlookup { i6addr_tnl_inipaddr; i6addr_tnl_ou

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

2016-10-04 Thread Amos Jeffries
On 4/10/2016 8:57 p.m., Egerváry Gergely wrote: >> Apparently the IPFilter 5.1 code defines an 32-bit IPv4-only structure >> for 64-bit IPv6 addresses to be placed into. That was supposed to be >> fixed in IPFilter 5.0.3. >> >> Can you look through your system for code header files that define >> "

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

2016-10-04 Thread Egerváry Gergely
Apparently the IPFilter 5.1 code defines an 32-bit IPv4-only structure for 64-bit IPv6 addresses to be placed into. That was supposed to be fixed in IPFilter 5.0.3. Can you look through your system for code header files that define "struct natlookup" and show me what they contain? in sys/extern

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

2016-10-04 Thread Amos Jeffries
On 4/10/2016 7:25 p.m., Egerváry Gergely wrote: >>> 2016/10/03 17:08:03.233 kid1| Ip::Address::getInAddr : Cannot convert >>> non-IPv4 to IPv4. IPA=[2001:738:7a00:a::14]:3128 >> Okay your setup looks fine. Apparently the IPFilter 5.1 code defines an 32-bit IPv4-only structure for 64-bit IPv6 addr

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

2016-10-03 Thread Egerváry Gergely
2016/10/03 17:08:03.233 kid1| Ip::Address::getInAddr : Cannot convert non-IPv4 to IPv4. IPA=[2001:738:7a00:a::14]:3128 And what are your squid.conf http_port line(s) ? http_port 127.0.0.1:8080 http_port [::1]:8080 http_port 172.28.0.20:3128 intercept http_port 172.28.0.20:8080 http_port [2001:

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

2016-10-03 Thread Amos Jeffries
On 4/10/2016 4:12 a.m., Egerváry Gergely wrote: > Hi, > > I'm running on NetBSD 7-STABLE, with IPFilter 5.1 > (--enable-ipf-transparent) > > NAT interception rule: > rdr wm1 from 2001:738:7a00:a::/64 to any port = 80 -> > 2001:738:7a00:a::14 port 3128 tcp > > cache.log: > > 2016/10/03 17:08:03.

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

2016-10-03 Thread Egerváry Gergely
Hi, I'm running on NetBSD 7-STABLE, with IPFilter 5.1 (--enable-ipf-transparent) NAT interception rule: rdr wm1 from 2001:738:7a00:a::/64 to any port = 80 -> 2001:738:7a00:a::14 port 3128 tcp cache.log: 2016/10/03 17:08:03.232 kid1| 5,2| TcpAcceptor.cc(220) doAccept: New connection on FD 18 201