RedirectActive Property
      
 

Description

Determines if interface raw packets are redirected to remote peer.

Property type

A Boolean value.  

Syntax

object.RedirectActive [= value]

The RedirectActive Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type VPNInterface.
valueA Boolean value.

Remarks

RedirectActive property determines if raw network packets that arrive on this adapter are routed to remote peer. When set to False, no packets are exchanged. Remote peer may send them, but wodVPN will discard them completely.

When you select the adapter (with correct IP address and Netmask) you only need to set this property to True to start actual VPN between local peer and remote peer. When this property is set, remote side will receive VPNRequest event, on which it can also set this property to True, or can ignore your request. Both sides must have this property set in order for VPN to work

When Disconnect method is called, or connection with remote side is broken for whatever reason, this property is internally set to False. After you establish connection back, you must set this property again to True if you want adapter traffic to be routed.

NOTE: you can set RedirectActive property only for one adapter at a time. Also, you must be connected with remote peer before it can be set.