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.
pop-os/cosmic-settings#1305
when importing a
.ovpnfile that has noredirect-gatewaydirective 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 = falsewhenredirect-gatewayis explicitly present. when it is absent,never-defaultis never set, and NM defaults to giving the VPN the default route.the expected behavior is: if the
.ovpndoes not containredirect-gatewayand 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 = truewhenredirect_gatewayisfalse/ absent in the parsed config.