[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 <mail@xxxxxxxxxxxx>
  • Date: Wed, 17 Dec 2003 09:56:07 -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

____________________________________________
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/msg00083.html on line 198

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/msg00083.html on line 198