Possible bug in MASQ under 2.6?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Travis Morgan
I think I've found what might be called a bug with MASQ under 2.6 but I want a second opinion. We have a Linux router box here and two home internet connections. We were using multipath to balance between the two connecions under 2.4 (2.4.26-gentoo-r2, has grsec and bunch of other stuff)
The proper place for bugs is netfilter-devel.
Quoted 8 lines
default proto static
nexthop via 142.179.128.1 dev eth0 weight 2 nexthop via 68.148.196.1 dev eth1 weight 1For iptables POSTROUTING we had two MASQ rules, one with -o eth0 and one with -o eth1.
Quoted 8 lines
Under 2.4 that worked beautifully. We decided to upgrade to 2.6 and had a slew of problems. I finally tracked it down to this dmesg:
printk: 12 messages suppressed.
MASQUERADE: Route sent us somewhere else.
printk: 17 messages suppressed.
MASQUERADE: Route sent us somewhere else.
You currently can't use MASQUERADE with multipath routes. The MASQUERADE routing lookup to get the source adress must return the same output device the packet is already heading for. With multipath routes pointing to two different devices this oviously isn't guaranteed.
Look for Rusty's patch "[PATCH] Fix MASQUERADE" in the netfilter-devel archives, it should fix your problem.
Regards
Patrick