[tproxy] Problem with Tproxy more kernel2.6.22.9
Ming-Ching Tiew
mingching.tiew at redtone.com
Fri Jan 11 16:46:13 CET 2008
Laszlo Attila Toth wrote:
>
> I correct this in the next release, which will also contain patch for
> iptables 1.4.
>
Because of the bridge problem mentioned in the list, I had to setup
bridge redirect target for packets to arrive at the real interfaces ( vs
br0 ). However, when doing so, if the real interface has no IP address,
it will cause kernel ooops due to accessing null pointers.
I made a small change here to avoid the kernel ooops :-
@@ -394,7 +394,7 @@
if (lport == 0)
lport = hp->dest;
- if (laddr == 0)
+ if (laddr == 0 && indev->ifa_list )
laddr = indev->ifa_list->ifa_local;
DEBUGP(KERN_DEBUG "IPT_TPROXY: performing redirect to
%08x:%04x\n", laddr, lport);
Not sure it will be relevent to your next release. If not, kindly ignore.
Ming-Ching.
More information about the tproxy
mailing list