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

Re: [Openvpn-users] tun Device Error --try 2


  • Subject: Re: [Openvpn-users] tun Device Error --try 2
  • From: John Locke <john@xxxxxxxxxxxx>
  • Date: Wed, 17 Dec 2003 09:50:10 -0800

Okay. So maybe it's not the ifconfig statement.

But right after it, this looks like OpenVPN is calling a script called sales.up. What do you have in this script?

Looks like whatever you have, the syntax is incorrect for the route command. The route command has a different syntax on each platform. By the way, James, OpenVPN isn't supporting the --route statement for Mac, at least for Panther--had to create a route up script myself for that platform.

Ryan, try disabling the up script, and see if you get a connection. If you do, then add the route manually with the route(8) command, until you get it right.

Syntax would be something like:

route add -net 10.0.0.3 -netmask 255.0.0.0 gw 192.168.0.187

Choose an appropriate netmask for the remote network. If you have multiple interfaces on the 192.168.0.7, you'll have to specify the interface (don't know the command offhand--man route). Then it looks like you could use the variables passed by OpenVPN in your script as follows:

route add -net $5 -netmask 255.0.0.0 gw $4

... or just add a --route to the configuration:

route 10.0.0.3 255.0.0.0

Cheers,
--
John Locke
Open Source solutions for small business problems
http://freelock.com

Ryan Nielsen wrote:

Tue Dec 16 15:31:40 2003 89[0]: ./sales.up tun0 1259 1300 192.168.0.187 10.0.0.3

route: netmask doesn't match route address
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.

route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
route {-V|--version} Display version/author and exit.

-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB

<AF>=Use '-A <af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)



____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2003-12/msg00086.html on line 222

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2003-12/msg00086.html on line 222