I'm having some issues with OpenVPN and multiple VPNs. Not earth shattering, but after bringing up a combination of VPNs I didn't intend to I've ended up in a situation I don't understand. Looking at the following output;
C:\Users\craig>route print
===========================================================================
Interface List
60...........................Nlwt Tun
5...00 ff 28 fe 53 4f ......TAP-NordVPN Windows Adapter V9
16...a8 6d aa 2b 75 b9 ......Intel(R) Wireless-AC 9260 160MHz
21...a8 6d aa 2b 75 ba ......Microsoft Wi-Fi Direct Virtual Adapter
17...aa 6d aa 2b 75 b9 ......Microsoft Wi-Fi Direct Virtual Adapter #2
14...c8 f7 50 3e 3b 20 ......Intel(R) Ethernet Connection (7) I219-LM
8...00 ff 3a cd cd 66 ......TAP-Windows Adapter V9
22...00 ff e8 c6 1b 54 ......TAP-Windows Adapter V9 #2
9...00 ff 49 67 a3 95 ......TAP-Windows Adapter V9 #3
12...a8 6d aa 2b 75 bd ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.8.254 192.168.8.166 35
0.0.0.0 128.0.0.0 192.168.145.129 192.168.145.221 35
0.0.0.0 128.0.0.0 10.7.3.1 10.7.3.3 35
10.7.3.0 255.255.255.0 On-link 10.7.3.3 291
10.7.3.3 255.255.255.255 On-link 10.7.3.3 291
10.7.3.255 255.255.255.255 On-link 10.7.3.3 291
10.8.0.1 255.255.255.255 10.8.0.29 10.8.0.30 35
10.8.0.28 255.255.255.252 On-link 10.8.0.30 291
10.8.0.30 255.255.255.255 On-link 10.8.0.30 291
10.8.0.31 255.255.255.255 On-link 10.8.0.30 291
92.12.132.63 255.255.255.255 192.168.8.254 192.168.8.166 35
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
128.0.0.0 128.0.0.0 192.168.145.129 192.168.145.221 35
128.0.0.0 128.0.0.0 10.7.3.1 10.7.3.3 35
192.168.8.0 255.255.255.0 On-link 192.168.8.166 291
192.168.8.166 255.255.255.255 On-link 192.168.8.166 291
192.168.8.255 255.255.255.255 On-link 192.168.8.166 291
192.168.145.0 255.255.255.0 On-link 192.168.145.221 291
192.168.145.221 255.255.255.255 On-link 192.168.145.221 291
192.168.145.255 255.255.255.255 On-link 192.168.145.221 291
195.206.183.56 255.255.255.255 192.168.8.254 192.168.8.166 35
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 10.8.0.30 291
224.0.0.0 240.0.0.0 On-link 192.168.145.221 291
224.0.0.0 240.0.0.0 On-link 10.7.3.3 291
224.0.0.0 240.0.0.0 On-link 192.168.8.166 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 10.8.0.30 291
255.255.255.255 255.255.255.255 On-link 192.168.145.221 291
255.255.255.255 255.255.255.255 On-link 10.7.3.3 291
255.255.255.255 255.255.255.255 On-link 192.168.8.166 291
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
1 331 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
C:\Users\craig>ping 10.7.0.1
Pinging 10.7.0.1 with 32 bytes of data:
Reply from 10.7.0.1: bytes=32 time=38ms TTL=64
Reply from 10.7.0.1: bytes=32 time=38ms TTL=64
Reply from 10.7.0.1: bytes=32 time=38ms TTL=64
Ping statistics for 10.7.0.1:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 38ms, Maximum = 38ms, Average = 38ms
C:\Users\craig>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : home
IPv4 Address. . . . . . . . . . . : 192.168.8.166
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.8.254
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 10.8.0.30
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.145.221
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 10.7.3.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
I'm able to ping 10.7.0.1, which is working fine for Windows filesharing, but I see no way it should be working. The only 10.7.x.x in there is 10.7.3.x, and since none of the netmasks allow the third octet to vary how can this machine be successfully routing to 10.7.0.x? Am I missing something in how a gateway and netmask combine to indicate the addresses the gateway can be used for?
What I should have here is a VPN to 10.8.0.1, one to 10.7.0.1 and physical networks 192.168.8.x and 192.168.145.x (which is actually disconnected). 10.7.3.3 is a NordVPN that accidentally got left to start on boot, along with a few others that errored when there were no more free TAP interfaces.