Skip to main content

Direct Routing IIS

Configure wan/lan interface to allow receive

Change bond 101 to whatever you nic name is, use "netsh interface ipv4 show interfaces" to display names

PS C:\Users\Administrator> netsh interface ipv4 set interface "bond0" weakhostreceive=enabled
PS C:\Users\Administrator> netsh interface ipv4 set interface "bond0 - VLAN 101" weakhostreceive=enabled
PS C:\Users\Administrator> netsh interface ipv4 set interface "bond0 - VLAN 102" weakhostreceive=enabled
PS C:\Users\Administrator> netsh interface ipv4 set interface "Loopback Pseudo-Interface 1" weakhostreceive=enabled
PS C:\Users\Administrator> netsh interface ipv4 set interface "Loopback Pseudo-Interface 1" weakhostsend=enabled
PS C:\Users\Administrator> netsh interface ipv4 show interfaces

 

Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
3 15 1500 connected bond0
8 15 1500 connected bond0 - VLAN 101
7 15 1500 connected bond0 - VLAN 102

Add WAN IP to loopback interface, replace <VIP-WAN> for the interface IP

PS C:\Users\Administrator> netsh interface ip set address "Loopback Pseudo-Interface 1" static <VIP-WAN> 255.255.255.255
PS C:\Users\Administrator> netsh interface ip set address "Loopback Pseudo-Interface 1" static <VIP-WAN> 255.255.255.255
PS C:\Users\Administrator> netsh interface ipv4 add address “Loopback Pseudo-Interface 1” 127.0.0.1 255.0.0.0
PS C:\Users\Administrator> Get-NetIPInterface

ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
7 bond0 - VLAN 3181 IPv4 1500 15 Disabled Connected ActiveStore
8 bond0 - VLAN 2165 IPv4 1500 15 Disabled Connected ActiveStore
3 bond0 IPv4 1500 15 Enabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 50 Disabled Connected ActiveStore

Replace "1" for the ID of the loopback in your output

Set-NetIPInterface -InterfaceIndex 1 -InterfaceMetric 254
PS C:\Users\Administrator> netsh interface ipv4 show config

Your config showed look like below

Configuration for interface "Loopback Pseudo-Interface 1"
DHCP enabled: No
IP Address: <VIP-WAN>
Subnet Prefix: <VIP-WAN>/32 (mask 255.255.255.255)
IP Address: 127.0.0.1
Subnet Prefix: 127.0.0.0/8 (mask 255.0.0.0)
InterfaceMetric: 50
Statically Configured DNS Servers: None
Register with which suffix: Primary only
Statically Configured WINS Servers: None