How to connect to local NAS (SMB) while VPN connection

Hello everyone,

I have set up a small Proxmox server with various VMs.

A Win11Pro VM and Fedora VM are installed on the Proxmox and I have also created a TrueNAS CORE VM to store my data. I have activated a share via SMB on the TrueNAS. This works perfectly and I can mount the SMB share in both VMs without any problems.

However, if I now activate a VPN connection, both VMs lose the connection to the SMB share. I have already tested the split tunneling function, but this did not work. I have also tried to set up a static route to the NAS. Unfortunately this does not work either or I have done it wrong.

My NAS has the IP: 192.168.0.21

With the command: route add 192.168.0.21 mask 255.255.255.255 192.168.0.21 metric 1 - I have set the route.

Unfortunately no success.

Does anyone else have an idea how to use local network services like SMB during a VPN connection?

Thanks!

Hey! :waving_hand: VPNs can be tricky, huh? For your SMB share hiccup, try adding a route like this: `route add 192.168.0.21 mask 255.255.255.255 192.168.0.1` (replace 192.168.0.1 with your router’s IP). Sometimes it’s about routing through the router. Hope this helps! :crossed_fingers: If not, community forums might have more wizardry to fix this. Good luck! :rocket: