Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot connect to smb share over Wireguard VPN

Featured Replies

I am helping my father who does not live with me with some remote tech support. I need him to be able to access a SMB share on my UNRAID server.

 

Our subnets are the same, so I need to connect via the server's wireguard network IP instead of its local IP. I connected his (Mac) laptop via Wireguard. I can access the UNRAID admin page, but when I try and connect via SMB it says there was an error connecting to the server. 

 

I think this may have to do with the fact that SMB is not listening on the wireguard network. As discussed, I cannot use the local IP even though remote access to LAN is setup because of the fact that both my and my parents subnets are the same (192.168.1.0/24). Is there a way to listen for SMB connections over the wireguard interface>

Edited by 54lzy

34 minutes ago, 54lzy said:

I am helping my father who does not live with me with some remote tech support. I need him to be able to access a SMB share on my UNRAID server. I connected his (Mac) laptop via Wireguard. I can access the UNRAID admin page, but when I try and connect via SMB it says there was an error connecting to the server. 

 

Has anyone encountered this issue and have a solution? Do I need to whitelist being able to access SMB via wireguard or something?

 

I think this may have to do with the fact that SMB is not listening on the wireguard network. My fathers router IPs are same as mine so I am trying to connect using the Unraid servers wireguard IP and not the unraid servers regular IP. If this is the issue how can I resolve?


you can definitely access SMB shares via WireGuard - I do it all the time.

 

I have, however, configured my router to not use the default subnet so that I am almost certainly on a different subnet when I try and connect remotely.    Not sure if this explains why I do not have problems as I would have thought using the server WireGuard ip address should work.

  • Author

Right - I think one solution would be to change my networks subnet (or my fathers). But trying to avoid doing that because my reverse proxy often hard links to IPs.

  • 3 weeks later...

Im having a similar issue. I can connect to the vpn and when i ping an IP on my home network it works. But when i try to add the network drive to my remote laptop. it gives me this error

Screenshot 2023-08-24 173418.png

6 minutes ago, stanek7110 said:

Im having a similar issue. I can connect to the vpn and when i ping an IP on my home network it works. But when i try to add the network drive to my remote laptop. it gives me this error

Screenshot 2023-08-24 173418.png

 

I fixed my issue. I was trying to map network drive instead of adding a network location 🤦‍♂️

  • 2 years later...

Hi @54lzy
I had a similar problem. My Solution is described in detail the German forum:
https://forums.unraid.net/topic/125268-ipv4-ds-lite/#findComment-1579293

Basically solution was:
Step 1: Change Wireguard to use IPv6
AllowedIPs = 192.168.178.0/24, ::/0
Endpoint = [7zPulbicAdress3y5n.myfritz.net]:56769


Step 2: Make sure SMB listens to IPv6 Interface as well:
Settings → Network Services → SMB → Extra configuration
bind interfaces only = no


Step 3: Use different Port then 445 for SMB
Settings → Network Services → SMB → Extra configuration
smb ports = 1445

Then restart samba service:
/etc/rc.d/rc.samba restart


Usage:
smbclient -L //192.168.178.10 -p 1445 -U username -W Workgroup
or in Linux File Browser like Nemo:

smb://192.168.178.10:1445/

Edited by Asgard

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.