I installed wire-guard in the app on my truenas-scale. And I have a virtual machine on my truenas scale.
truenas ip: 192.168.22.56/24
vm ip: 192.168.22.52/24
I successfully connected to wire-guard on my local WINDOWS PC and it basically works fine. My local WIN PC can connect to the truenas host and other devices on the 192.168.22.x/24 LAN. So I am sure my configuration is correct.
truenas-scale network is classic configuration.
The only problem is that my WIN PC cannot connect to the VM, can’t ping or ssh.
Interestingly, if I enter the bash of the wire-guard container, it can ping the VM.
Summary is as follows:
WIN PC === WIRE-Guard ==== TrueNAS-host ok
WIN PC === WIRE-Guard ==== 192.168.22.0/24 LAN ok
WIRE-GUARD bash ===== TrueNAS-host and TrueNAS-vm ok
TrueNAS-host ======= TrueNAS-vm ok
WIN PC === WIRE-Guard =xx= TrueNAS-VM NO!!