How to disable connecting over a specific network interface? (like hamachi or another VPN)

Yes. Actions → Advanced, the device in question, allowedNetworks, set to !192.168.20.0/24,0.0.0.0/0 to disallow that network and allow everything else.