GNOME Bugzilla – Bug 788137
Openvpn Routes are limited to 255
Last modified: 2017-10-05 10:28:48 UTC
Created attachment 360358 [details] NetworkManagerLog When connecting to VPN that pushes more than 255 routes only the first 254 are added. Invoking the openvpn client from the command line does add the routes correctly. I am not sure how much I can disclose from the logs, but as far as I could see there was no error. Config: [connection] id=vpn-connection uuid=4915b0be-25d5-4fa5-90e4-8ad755eec46d type=vpn permissions= timestamp=1506346097 [vpn] ca=/home/user/.openvpn/ca.crt cert=/home/user/.openvpn/user.crt key=/home/user/.openvpn/user.key cert-pass-flags=0 comp-lzo=adaptive connection-type=tls dev=tun dev-type=tun max-routes=5000 ping-restart=30 remote=endpoint:port service-type=org.freedesktop.NetworkManager.openvpn [ipv4] dns-search= method=auto never-default=true [ipv6] addr-gen-mode=stable-privacy dns-search= method=auto
> 255 routes only the first 254 are added. are you sure about 254? I think the first 255 are added, no?
please review th/helper-parse-route-bgo788137 https://git.gnome.org/browse/network-manager-openvpn/log/?h=th/helper-parse-route-bgo788137
(In reply to Thomas Haller from comment #1) > > 255 routes only the first 254 are added. > > are you sure about 254? I think the first 255 are added, no? Yes it felt like one off, might have counted it wrong(Hence the attached log)
(In reply to aknarts@aknarts.com from comment #3) > (In reply to Thomas Haller from comment #1) > > > 255 routes only the first 254 are added. > > > > are you sure about 254? I think the first 255 are added, no? > > Yes it felt like one off, might have counted it wrong(Hence the attached log) ah. I missed the attached logfile. It's 255 routes there (not 254). As expected. Thanks
(In reply to Thomas Haller from comment #2) > please review th/helper-parse-route-bgo788137 > > https://git.gnome.org/browse/network-manager-openvpn/log/?h=th/helper-parse- > route-bgo788137 static GVariant * get_ip6_routes (void) { ... + gs_strfreev char *dst = NULL; gs_free ? The rest LGTM.
Thanks. Merged as https://git.gnome.org/browse/network-manager-openvpn/commit/?id=ed55d4563a09e8d1342835f189ad37713584f547
There is a necessary follow-up fix: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=e4d8cda14483b3195dbf2a9d61c565f426108ea3