[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: Ryan Nielsen <ryan@xxxxxxxxxxxxxxxxx>
  • Date: Wed, 17 Dec 2003 11:10:35 -0700

John,

It was the sales.up script that is incorrect. It worked as soon as I commented out that line in my .conf file.

I appreciate yours and Dick's comments.  You guys are life-savers.

I may have questions about my sales.up script.  So, stay tuned.

Thanks, Ryan


John Locke wrote:

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,



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