PSInternetConnectionSharing icon indicating copy to clipboard operation
PSInternetConnectionSharing copied to clipboard

Set-Ics is not working with a VPN connection with a device manufacturer being "WireGuard LLC"

Open 333van opened this issue 5 months ago • 1 comments

I am trying to share a VPN connection with a device manufacturer being "WireGuard LLC" in my VM to my host computer, via a NIC with host-only network. The VPN is a close-souce one. The ICS can be done manually via ncpa.cpl, but not possible via, for example:

Install-Module -Name PSInternetConnectionSharing
Set-Ics -PublicConnectionName $VpnConn -PrivateConnectionName $HostOnlyConn
# these are the error messages Set-Ics gives me:
OperationStopped: An event was unable to invoke any of the subscribers (0x80040201)
OperationStopped: An event was unable to invoke any of the subscribers (0x80040201)

That host-only NIC is configured with an interface with a fixed IP, and the above commands clear its IP configuration as well.

Any help would be appreciated.

333van avatar Sep 03 '24 12:09 333van