FreeBSD 8: ipfw fwd and pf route-to broken?

Julian Elischer julian at elischer.org
Sun Dec 6 08:36:08 UTC 2009


Luigi Rizzo wrote:
> On Sat, Dec 05, 2009 at 09:54:48PM -0800, Julian Elischer wrote:
>> Lytochkin Boris wrote:
>>> Hi!
>>>
>>> sbin/ipfw in RELENG_8 do not set sin_len in fwd rule, so sockaddr_in
>> >from ipfw is sucked into rtalloc1_fib() at last with zero length and
>>> is routed to lo0 instead of correct interface.
>>> Returning sin_len into sbin/ipfw resolves issue.
>>>
>>> sin_len setting was removed in revision 1.146 by luigi.
>>>
>>> What is correct solution? Return sin_len setting into sbin/ipfw or
>>> something else?
> 
> if you have tested that putting back sin_len fixes the problem
> then it should definitely go in again.
> interesting bug, i will put it a fix as soon as i have a chance
> 
> thanks
> luigi


if this indeed breaks fwd in 8.0 it's a big deal and needs to go into 
the errata.



More information about the freebsd-net mailing list