Hello, I have replaced my Qnap server with a Ubuntu server.
Remotely I made connection to my Qnap using wireguard on the GLinet AX1800 router.
With Android's X-plore I could access my files remotely.
Now I'm trying to setup the same, with my Ubuntu server to access the smb shares.
My phone connects to the AX1800.
I can access the webserver of the Ubuntu server but I do not have access to the Samba shares.
Can somebody help me to configure smb and the ufw please?
My phone connects to the router using VPN. Allow LAN is activated in the router.
When I connect my phone locally, I have no problems opening the SMB server shares on my phone.
I also disabled the firewall of the ubuntu server but still NO connection from the outside.
Also added hosts allow = 192.168.8.0/24, 10.0.0.0/24 in smb.conf, still the same.
In X-plore I get error 'failed to connect to localhost /127.0.0.1 (port 445) from /127.0.0.1 (port 48970) after 30000ms
In the Android app I'm making a connection to the IP address of the server.
It is working locally.
Only when I connect to the VPN on the router, it responds with the 127.0.0.1 IP address.
I just played with the Android app and firewall settings (AX1800) and after deleting the server in the Android app (X-plore) and creating a new, identical entry, I can suddenly access my homeserver.
After that, I removed the forwarding port 445 to my homeserver and even after a reboot, I can still access my homeserver using the WG server without forwarding the smb port.
Is this normal behaviour?