OpenVPN and Samba

Hi,
I can’t see my samba disks when I’m connected via OpenVPN and (FFS) I cannot find any option in LuCI where to enable it.
Can someone help please? :slight_smile:

Is samba running? ps shows smbd running?
Try to mount them directly? You know the name of your own server?

Samba is OK - I can access my disks when I’m at home. But can’t access them when I’m connected via oVPN.

Hard to help without more info about your setup … or some log output .

If the samba shares are on windows10 and later, check what samba protocol(dialect) is at use?.
5 things to know before troubleshooting SMB performance check the “negotiation” section, so you can pick min/max protocol to ensure you are using compatible ones (server/clients).

Also check the firewall and enable ports : It is old and for SAMBA3, but that stuff for windows10 machine setup should work. Maxmilian's notes on smb.conf and some stuff is still valid even for samba4 :slight_smile:

Also what type of routing are you using for OpenVPN and what protocol (tcp/udp?). Do you have option topology 'subnet' also option client_to_client '1' in your openvpn uci config ?

As for mounting, you can mount any samba directly to your router filesystem or to any lxc container and access via the router (not directly openvpn-client to lan-client).

If you have it mounted directly to Turris and still strugling with access, check if you have correct rights/ownership (from openwrt perspective) as well correct rights/mask (from samba perspective).