OpenVPN and avoiding default route



Would it make sense to let the OpenVPN server disable default-routing in network manager, for instance
by checking if a 'push "route-gateway x.y.z.w"' has been done from the server?

I mena smething like this, (nm-openvpn-service-openvpn-helper.c):

        /* Internal VPN subnet gateway */
        tmp = getenv ("route_vpn_gateway");
        if (tmp == NULL) {
                val = g_variant_new_boolean (TRUE);
                g_variant_builder_add (&ip4builder, "{sv}", NM_VPN_PLUGIN_IP4_CONFIG_NEVER_DEFAULT, val);
        }

/Anders

-- 
Anders Blomdell                  Email: anders blomdell control lth se
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118                     Fax:      +46 46 138118
SE-221 00 Lund, Sweden



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]