|
|
Claas, Right, but isn't "add -host %s gw %s" functionally equivalent to "add -net %s netmask 255.255.255.255 gw %s"? James Claas Hilbrecht <claas+maillinglists.openvpn@xxxxxxxxxxxxxxxxx> said: > If you look at the code below (from route.c) you will see that openvpn > doesn't handle host routes for linux at all. They need a "add -host %s gw > %s" syntax. > > #if defined(TARGET_LINUX) > buf_printf (&buf, ROUTE_PATH " add -net %s netmask %s gw %s", > network, > netmask, > gateway); > if (r->metric_defined) > buf_printf (&buf, " metric %d", r->metric); > > msg (D_ROUTE, "%s", BSTR (&buf)); > status = system_check (BSTR (&buf), "ERROR: Linux route add command > failed", false); > > #elif defined (WIN32) > > -- > Claas Hilbrecht > http://www.jucs-kramkiste.de > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Openvpn-users mailing list > Openvpn-users@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/openvpn-users > -- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |