[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] openvpn fails to add hosts routes with linux


  • Subject: Re: [Openvpn-users] openvpn fails to add hosts routes with linux
  • From: "James Yonan" <jim@xxxxxxxxx>
  • Date: Tue, 3 Feb 2004 22:42:24 -0000

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