Recent versions of Windows (Vista & up, I think) do not support binding firewall rules to specific interfaces. They do; however, allow you to specify firewall rules that affect the following interface types:
- FW_INTERFACE_TYPE_ALL: Represents all types of network adapters (NICs). The following types fall into this type.
FW_INTERFACE_TYPE_LAN: Represents network adapters (NICs) that use wired network physical layers such as Ethernet.
FW_INTERFACE_TYPE_WIRELESS: Represents network adapters that use the wireless 802 network physical layer.
FW_INTERFACE_TYPE_REMOTE_ACCESS: Represents network adapters that use VPN connections.
After many hours of research and testing, I have come up with a hack that allows the OpenVPN interface to be recognized by Windows as a Remote Access interface; however, it is a hack. I'm hoping someone has a more-appropriate way to solve the problem.
Here is my hack:
- 1. Add the following line under [tap0901.ndi] in OemWin2k.inf:
2. Run addtap.bat to install the OpenVPN TAP adapter driver. Note that after modifying the OemWin2k.inf file, the signature on your driver will become invalid and you'll have to go through some extra steps to get it installed.
Code: Select all
*IfType = 28 ; IF_TYPE_SLIP
For your reference, all Windows-sanctioned interface types can be found here:
http://msdn.microsoft.com/en-us/library ... s.85).aspx
I tried each of the values below for *IfType, and only 28 worked. When the TAP-Windows driver is installed without a *IfType directive, it shows up with *IfType = 6.
Code: Select all
Name Value
IF_TYPE_OTHER 1
IF_TYPE_ETHERNET_CSMACD 6
IF_TYPE_ISO88025_TOKENRING 9
IF_TYPE_PROP_POINT2POINT_SERIAL 22
IF_TYPE_PPP 23
IF_TYPE_SOFTWARE_LOOPBACK 24
IF_TYPE_SLIP 28
IF_TYPE_ATM 37
IF_TYPE_MODEM 48
IF_TYPE_PROP_VIRTUAL 53
IF_TYPE_HIPPIINTERFACE 57
IF_TYPE_IEEE80211 71
IF_TYPE_PPPMULTILINKBUNDLE 108
IF_TYPE_TUNNEL 131
IF_TYPE_COFFEE 132
IF_TYPE_L2_VLAN 135
IF_TYPE_L3_IPVLAN 136
IF_TYPE_IEEE1394 144
Jason Crowley | Innovative Networks | http://in-kc.com