-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DCO + bind-dev, initial connection binds to interface, but switches to default VRF #683
Comments
This is a screenshot of Adding the following policy rule is enough to resolve this issue, however that defeats the purpose of binding to an interface:
|
Hi @BCurrell and thanks for your report. |
Hi @ordex. Is this something that can be handled, either with a PR to add the feature, or a documentation / code update to state that it's not a valid config? |
@BCurrell IMHO this should first addressed via config handling. I.e. disable DCO when --bind-dev is used. |
I'll be honest, the OpenVPN code base is quite intimidating, but I'll take a look at this soon and see if I can figure my way around. |
Describe the bug
When running OpenVPN with DCO enabled, using the bind-dev config directive is not working as expected. The initial connection starts using the interface configured with bind-dev, however after a while, this switches to using the default route interface in the default VRF.
I believe this could be related to when the connection is established, or perhaps if / when the interface offloads to the kernel.
Verified by disabling DCO, when running in TUN mode, the bind-dev config directive works correctly. The connection remains attached to the defined interface.
To Reproduce
DCO config, server:
DCO config, client:
For the TUN configs, I just added
disable-dco
, the rest was left alone.In my environment, I use networkd to handle the interface configuration. I can provide the networkd config files with the VRF declaration and interface configuration if required.
Expected behavior
The tunnel connects over the bound interface, and continues to use this interface for the whole session.
Version information (please complete the following information):
Additional context
OpenVPN 2.6.3 was installed from the Debian Bookworm APT repo, however I also built 2.6.13 from release tar.gz from the OpenVPN downloads. The issue is also present there.
The text was updated successfully, but these errors were encountered: