wodVPN ActiveX Control - Fast notifications interface
 

Since version 2.0 wodVPN can route all network traffic (of selected network adapter) to remote peer. Windows does not see a difference - when it sends packet to your adapter (based on IP/Netmask combination of the adapter), wodVPN accepts it, encrypts it, and sends to remote peer. Remote peer then decrypts it and injects them into his instance of the adapter. This way packet appears on remote network just as it was distributed over the cable as through real network adapters.

 

Preparing the adapter

Assuming you have read 'Installing virtual network adapter' page and your adapter is ready, you can use it with wodVPN. Make sure your adapter has correct IP/Netmask combination, otherwise VPN will not work.

When wodVPN is initialized, you can access your adapters through VPNInterfaces collection. It will contain all adapters that can be used by wodVPN. Usually there will be only one - 'WeOnlyDo Network Adapter' (current version 2.4) but wodVPN is capable of using others too, so choose correct adapter. Make sure LocalIP and LocalNetmask of the adapter are correctly set.

 

 

Establishing wodVPN connection

Just as always, set MyID property, and use Search or Connect methods to connect to remote peer. You must establish the connection before making VPN with remote side.

 

 

Making VPN over selected adapter

When connection is established, all you need to do is set RedirectActive property to True. This will initiate VPN with remote peer. Remote peer will receive VPNRequest event (with your IP and MAC). At that point remote side must set RedirectActive property to True also. Timing is not important here - any side can initiate redirection at any time, other side may just ignore it.

You can set RedirectActive to True for only one adapter. Currently wodVPN cannot work with two adapters at the same time. Also, only one process can use one adapter at a time. However, multiple wodVPN instances can share same adapter in same process - this is required if you want to establish VPN connection with more than one peer. Just use separate instance of wodVPN for each peer, set same LocalIP for them, and set RedirectActive to True with all of them. Note that you will not "relay" traffic between them, if they want to route traffic between themselves, they must make their own connections.

If wodVPN connection get broken and you get Disconnected, you can reconnect, but you must also set RedirectActive property again to True - wodVPN will not persist this setting between sessions. If you want to automate this, you should set RedirectActive inside Connected event:

Private Sub wodVPN1_Connected(ByVal PeerID As String, ByVal IP As String, ByVal Port As Long)
    wodVPN1.VPNInterfaces("WeOnlyDo").RedirectActive = True
End Sub