You can make Samba inaccessible from the physical network interface.
Procedure
- Open the Samba configuration file (/etc/samba/smb.conf) in a text editor.
- Add the interfaces parameter and set it to vmnet*.
For example:
interfaces = vmnet*
- Restart Samba.