Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Mar 2016 17:54:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207831] r293311 breaks OpenVPN routing using pf
Message-ID:  <bug-207831-8-DPMJArvbTD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207831-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207831-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207831

guyyur@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |guyyur@gmail.com

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

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

I posted to freebsd-net last month
https://lists.freebsd.org/pipermail/freebsd-net/2016-February/044591.html

rib_lookup_info doesn't return info->rti_info[RTAX_GATEWAY] because the fou=
nd
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_COMP=
AT,
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207831-8-DPMJArvbTD>