[Bug 207831] r293311 breaks OpenVPN routing using pf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 9 17:54:38 UTC 2016


guyyur at gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |guyyur at gmail.com

--- Comment #1 from guyyur at gmail.com ---
Does the route for the VPN network has Netif lo0 instead of tun0 on your box?

reverting r293159 changes in rtsock.c fixed it for me.

I posted to freebsd-net last month

rib_lookup_info doesn't return info->rti_info[RTAX_GATEWAY] because the found
interface route has a gateway but no RTF_GATEWAY in rt_flags.
The check then fails to clear RTF_GATEWAY ss.ss_family is 0 not AF_LINK.

With info.rti_flags still containing RTF_GATEWAY instead of RTF_GWFLAG_COMPAT,
rtrequest1_fib -> rt_getifa_fib -> ifa_ifwithroute then returns lo0.

Before the change the check was for rt_gateway->sa_family without caring if
RTF_GATEWAY is set or not.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list