45

I want to create 2 separate tunnels on 2 separate subnets, so I have 2 separate .ovpn (client) files.

The 1st tunnel comes up, but the 2nd one fails because of a conflict over the same TAP-windows adapter. Evidently the 2nd tunnel needs its own TAP-windows adapter.

How to create a 2nd TAP-windows adapter? Apparently there used to be a utility packaged with the Windows OpenVPN installer - but there no longer is.

tisc0
  • 193
  • 8
flymike
  • 935
  • 2
  • 9
  • 18

2 Answers2

80

+1, I actually had to dig for this because the Add TAP Adapter link that used to be in the OpenVPN folder isn't there. This is because now it's a separate install (see this ticket), and as such the utilities are located in the %PROGRAMFILES%\Tap-Windows folder, under that folder there is a bin folder, and you can run the AddTap.bat script to add a new adapter, with elevated permissions of course.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
MDMoore313
  • 3,233
  • 1
  • 23
  • 38
6

There is already a driver for new installation at:

C:\Users\Luis->dir "%PROGRAMFILES%\TAP-Windows\driver\"
 Volume in drive C is Windows7
 Volume Serial Number is: 54AF-1483

 Directory of C:\Program Files\TAP-Windows\driver

28/07/2015  01:22    <DIR>          .
28/07/2015  01:22    <DIR>          ..
05/11/2014  15:16             7.523 OemVista.inf
05/11/2014  15:16             9.194 tap0901.cat
05/11/2014  15:16            27.136 tap0901.sys
               3 archivos         43.853 bytes

You can simply install a new TAP adapter referring this path with the New Hardware Wizard at Control Panel (just running hdwwiz.exe on Win Vista and above). Select Manual Installation --> Network Adapter .

Tested on Windows XP SP3 and Windows 7 SP1.

Example of my Windows 7 SP1 computer with a physical NIC, 2 TAP adapters, a PPTP and a virtual NIC created by VirtualBox:

Multiple network adapters

boop
  • 7,413
  • 13
  • 50
  • 94
Sopalajo de Arrierez
  • 3,543
  • 4
  • 34
  • 52
  • An adapter created in such way is not visible to `openvpn --show-adapters`. besides, there's no way to delete it – basin Dec 07 '17 at 12:15
  • its not visible to openvpn, but you can at least uninstall it from device manager. – vmatyi Mar 09 '18 at 17:49
  • Well, @basin ... even when the `openvpn` command-line tool can not see it, it should be possible to use it for connecting to another network by referring it on your `.ovpn` config file, in the `dev-node [Name]` part (comments in this section of the file say "# Windows needs the TAP-Win32 adapter name from the Network Connections panel if you have more than one", and the Network Connections Panel must see/show this new adapter). As for today I don't have possibility to test it (I would swear it worked the moment I wrote this answer, but I am not sure). Could anyone please confirm? – Sopalajo de Arrierez Mar 12 '18 at 15:31
  • I have checked another computer, @basin , and I can confirm I configured PeerVPN ( http://www.peervpn.net/ , works with the same TAP adapter) using this manually installed driver. I have both OpenVPN and PeerVPN adapters that can connect to different networks correctly. I have edited my answer to reflect. – Sopalajo de Arrierez Mar 13 '18 at 01:34