My host is Window 11, the guest is Oracle Linux 8.7 that I use for an Oracle XE 12c installation. The network adapter i use is NAT.
On my host I have two different VPNs that I use to connect to different customers. They are Cisco AnyConnect and Ivanti Secure Access Client. Those two can easily operate simultaneously, assuming there is no overlapping on the host routing table, but this is expected. Overall, I can use them both connected, and the host is just fine.
A first issue was that whenever I boot my Linux VM when the Ivanti VPN is connected, the guest OS automatically asumes a hostname "somestring.mycustomer.com" instead of the usual localhost.localdomain that is used when the VM boots when the Ivanti network is disconnected. The status of the Cisco VPN is irrelevant: if it is connected or not at boot, the hostname of the guest is always localhost.localdomain. I can add that a search on the files of the /etc root in the guest OS does not find anywhere the name "somestring", so I assume that the name is somewhat obtained from the "mycustomer.com" network.
This first issue was a nuisance for the Oracle server installed in the guest, because the Oracle Listener configuration files needed to be connected to the correct hostname, but I solved this problem configuring the Oracle config files with the "somestring.mycustomer.com" as host name, and adding the same name to the /etc/hosts file as a synonym for 127.0.0.1. So far, so good.
The problem I cannot solve is this. The Linux guest can see the network behind the host Cisco VPN, regardless of the VPN status at the guest boot. Even if the VPN was down during the guest boot, if I connect the host VPN afterward, the guest can see the network behind the just opened VPN.
But this is not the behavior I get when I boot the Linux guest while the Ivanti VPN is disconnected: even if I later connect that VPN, the guest will not be able to see the network behind it. The only way to use the host Ivanti VPN within the guest OS is to boot the guest while the VPN network is already connected.
The two problems may be related, I don't know what else to try to have a configuration of my guest that can dynamically recognize the Ivanti VPN, like it is already doing withe the Cisco VPN. I am afraid that this can be an issue for the Ivanti VPN software itself (or its configuration whatsoever) but I don't understand why I get this different behavior form the two VPNs.
Let me add that the same configuration runs correctly with a VM managed by VMware Player/Workstation: the name of the Linux hostname is always localhost.localdomain and the Linux guest can see the host VPN even when the host (Windows) VPN is opened after the guest (Linux) boot. And in that case too the network adapter configured for the VM is NAT.
Any idea?
Thanks
Pietro