From: Mathias Sundman Subject: Re: [Openvpn-devel] [Patch] Allow multiple TAP devices without --dev-node on Windows In-Reply-To: Message-ID: References: MIME-Version: 1.0 Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed Oct 6 23:40:46 2004 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net On Tue, 5 Oct 2004, Mathias Sundman wrote: > I was going to ask for a feature yesterday, but though I'd write it myself > instead of just asking for others todo things for me :-) > > I have about 15 OpenVPN configs on my Windows machine, but I only use 2-3 > simulatainously. But, as I need be able to connect to more than one site, > I've had to create one TAP device for EVERY config file, as I had to specify > the the dev-node in every config if I had installed more than one TAP device. > > With the attached patch this behavior is modified so that if dev-node is not > specified, OpenVPN tries to open the first TAP device is finds. If > CreateFile() fails on this device, it moves on and tries to open next device. > > If all CreateFile() fails on all avaiable TAP devices, first then openvpn > terminates. > > This works great as long as all TAP configuration is done dynamically from > OpenVPN which is always the case for me. If you have static configuration > done on the TAP devices, you need to use dev-node to specify which device to > use anyway, so I don't think this patch should brake anything. Now that Eric Tanner has showed us how we can install the TAP device as hidden this patch became even more useful, as it's a little troublesome to change the TAP device name, when it's not visible in "Network Connections" :-) James, could you consider applying this patch for the beta12 release? If there's something with the patch you dislike or would like to have implemented in a diffrent way, let me know, and I'll try fixing it... -- _________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign NILINGS AB X NO HTML/RTF in e-mail Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail