Score:1

Cannot connect to Samba share via VPN

pl flag

I have a Wireguard site-to-site VPN that connects successfully.

  • I can ping the remote Samba server using it's IP address 192.168.30.1
  • I cannot access a share over the VPN tunnel using its IP address \\192.168.30.1\disk

Some background;

  • Two ASUS routers configured with a wireguard site to site VPN.
  • router A; the VPN server has 192.168.30.1
  • router B; the VPN client has 192.168.20.1
  • Router A has a shared USB disk accessible via Samba via \\192.168.30.1\disk
  • from the 192.168.30 network, the samba share is accessible
  • I access the share via a windows 11 client, no firewall, the windows client is able to browse other samba shares

Previously I had the same setup with OpenVPN, I could access the remote samba share via \\192.168.30.1\disk. But the performance was very bad, that's why I want to give wireguard a go...

I can ping computers in the 192.168.30 network from the 192.168.20 network.

I can access HTTP pages on the 192.168.30 network from the 192.168.20 network...

It puzzles me...

schmichri avatar
tw flag
Does this answer your question? [Samba over OpenVPN - horribly slow](https://serverfault.com/questions/264922/samba-over-openvpn-horribly-slow)
Score:1
pl flag

I found the answer myself;

  1. You need the custom Merlin firmware on your ASUS router, and enable the JFFS option
  2. Enable SSH to your Asus Router
  3. Copy /etc/smb.conf /jffs/etc/smb.conf
  4. edit /jffs/etc/smb.conf and add the network 192.168.20.x like so; hosts allow = 127.0.0.1 192.168.30.254/255.255.255.0 192.168.20.254/255.255.255.0

Strange thing stays, for OpenVPN this was not needed. Speed is a little better tho...

Score:0
tw flag

Might be answered in Samba over OpenVPN - horribly slow already.

Dennis avatar
pl flag
That's a work around, a nice alternative to read. But my question is; why I cannot acces smb over over wireguard. You answered the question; why is OpenVPN slow.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.