OpenConnect doesn't work when OpenVPN Connect is installed
Summary
After installing OpenVPN Connect (checked on OpenVPN Connect 3.4.3), OpenConnect stops working.
Probably is related to #699, but I cant figure out how to force it to use existing or new adapter.
Version of the software & operating system
OpenConnect-GUI 1.6.0
OpenVPN Connect 3.4.3
Windows 11 23H2
ocserv 1.2.2 on AlmaLinux 9
Steps to reproduce
(How one can reproduce the issue - this is very important)
Steps to reproduce the behavior:
- Install OpenConnect GUI
- Try to connect to anyconnect-compatible VPN
- Connection works
- Disconnect, install OpenVPN Connect
- Try to connect to anyconnect-compatible VPN
Actual results
OpenConnect connection doesn't work.
It seems that OpenConnect thinks that WinTAP driver from OpenVPN is Wintun driver?
Expected results
OpenConnect connects to VPN successfully and resources are accessible over it.
Relevant logs and/or screenshots
2024-02-05 15:48:43 | 2f10 | Opened tun device
2024-02-05 15:48:43 | 2f10 | TAP-Windows driver v9.26 (0)
2024-02-05 15:48:43 | 2f10 | Using TAP-Windows device 'Подключение по локальной сети', index 19
2024-02-05 15:48:43 | 2f10 | -> C:\Windows\system32\cmd.exe /C "route print" 2>&1
2024-02-05 15:48:43 | 2f10 | stdout+stderr dump: ===========================================================================
2024-02-05 15:48:43 | 2f10 | Interface List
2024-02-05 15:48:43 | 2f10 | 4...08 00 27 65 54 3a ......Intel(R) PRO/1000 MT Desktop Adapter
2024-02-05 15:48:43 | 2f10 | 19...00 ff 6d ae 90 0e ......TAP-Windows Adapter V9 for OpenVPN Connect
2024-02-05 15:48:43 | 2f10 | 29...........................OpenVPN Data Channel Offload
2024-02-05 15:48:43 | 2f10 | 1...........................Software Loopback Interface 1
2024-02-05 15:48:43 | 2f10 | ===========================================================================
2024-02-05 15:48:43 | 2f10 |
2024-02-05 15:48:43 | 2f10 | IPv4 Route Table
2024-02-05 15:48:43 | 2f10 | ===========================================================================
2024-02-05 15:48:43 | 2f10 | Active Routes:
2024-02-05 15:48:43 | 2f10 | Network Destination Netmask Gateway Interface Metric
2024-02-05 15:48:43 | 2f10 | 0.0.0.0 0.0.0.0 10.0.2.2 10.0.2.15 25
2024-02-05 15:48:43 | 2f10 | 10.0.2.0 255.255.255.0 On-link 10.0.2.15 281
2024-02-05 15:48:43 | 2f10 | 10.0.2.15 255.255.255.255 On-link 10.0.2.15 281
2024-02-05 15:48:43 | 2f10 | 10.0.2.255 255.255.255.255 On-link 10.0.2.15 281
2024-02-05 15:48:43 | 2f10 | 127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
2024-02-05 15:48:43 | 2f10 | 127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
2024-02-05 15:48:43 | 2f10 | 127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
2024-02-05 15:48:43 | 2f10 | 224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
2024-02-05 15:48:43 | 2f10 | 224.0.0.0 240.0.0.0 On-link 10.0.2.15 281
2024-02-05 15:48:43 | 2f10 | 224.0.0.0 240.0.0.0 On-link 13 281
2024-02-05 15:48:43 | 2f10 | 255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
2024-02-05 15:48:43 | 2f10 | 255.255.255.255 255.255.255.255 On-link 10.0.2.15 281
2024-02-05 15:48:43 | 2f10 | 255.255.255.255 255.255.255.255 On-link 13 281
2024-02-05 15:48:43 | 2f10 | ===========================================================================
2024-02-05 15:48:43 | 2f10 | Persistent Routes:
2024-02-05 15:48:43 | 2f10 | None
2024-02-05 15:48:43 | 2f10 |
2024-02-05 15:48:43 | 2f10 | IPv6 Route Table
2024-02-05 15:48:43 | 2f10 | ===========================================================================
2024-02-05 15:48:43 | 2f10 | Active Routes:
2024-02-05 15:48:43 | 2f10 | If Metric Network Destination Gateway
2024-02-05 15:48:43 | 2f10 | 1 331 ::1/128 On-link
2024-02-05 15:48:43 | 2f10 | 4 281 fe80::/64 On-link
2024-02-05 15:48:43 | 2f10 | 19 281 fe80::/64 On-link
2024-02-05 15:48:43 | 2f10 | 4 281 fe80::13a5:bffa:994d:c5aa/128
2024-02-05 15:48:43 | 2f10 | On-link
2024-02-05 15:48:43 | 2f10 | 19 281 fe80::3258:349f:cd6e:b806/128
2024-02-05 15:48:43 | 2f10 | On-link
2024-02-05 15:48:43 | 2f10 | 1 331 ff00::/8 On-link
2024-02-05 15:48:43 | 2f10 | 4 281 ff00::/8 On-link
2024-02-05 15:48:43 | 2f10 | 19 281 ff00::/8 On-link
2024-02-05 15:48:43 | 2f10 | ===========================================================================
2024-02-05 15:48:43 | 2f10 | Persistent Routes:
2024-02-05 15:48:43 | 2f10 | None
2024-02-05 15:48:43 | 2f10 |
Possible fixes
Make OpenConnect not use existing adapters, and create it's own?