Skip to content

[BUG] OpenVPN import defaults to routing all traffic through VPN #543

Description

@cachebag

pop-os/cosmic-settings#1305

when importing a .ovpn file that has no redirect-gateway directive and the server does not push one, the built connection still routes all traffic through the VPN.

the VPN builder only writes ipv4.never-default = false when redirect-gateway is explicitly present. when it is absent, never-default is never set, and NM defaults to giving the VPN the default route.

the expected behavior is: if the .ovpn does not contain redirect-gateway and the server does not push it, the VPN should only carry traffic for routes the server pushes — not take over the default route.

fix would be to emit ipv4.never-default = true when redirect_gateway is false / absent in the parsed config.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildersConnection builder API and validationopenvpnOpenVPN protocolvpnChanges to VPN surface

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions