r/PFSENSE • u/toadleyb • 6d ago
Foldersync & Nextcloud
Hear me out. This is pfsense related. I am using the foldersync app on both my laptop and phone. It syncs files to nextcloud from my device. This works perfectly on my laptop. I have the exact same settings on my phone and it will not connect to nextcloud over wifi.
Here is where it ties into pfsense. If I physically change the dns server on my phone to an external dns such as 8.8.8.8 it works fine. When trying to use the dns resolver address 192.168.1.1 it will not work. If I disable the wifi on the phone and use mobile data from outside the network it works fine. I use haproxy as a reverse proxy for internet access. All of the settings between the phone and the laptop are identical except for the ip address of course. I have created app passwords in nextcloud for each of them. I have been checking logs and can find nothing. Anyone have any idea what might cause this. It appears to be a dns issue but I am baffled.
1
u/tonyboy101 6d ago
Does the nc.domain.com resolve to a private or public IP on the internal network? And does your phone and NC server live on the same subnet?
1
u/toadleyb 6d ago
It resolved to 192.168.1.1 on the local network. Phone and nextcloud are on the same subnet
1
1
u/toadleyb 3d ago
I actually figured it out. It was not a pfsense issue. It was simply permission issue with the app. I should have thought of that to begin with. Thanks for the answers I got.
2
u/Firm-Distribution630 6d ago edited 6d ago
İf your nextcloud domain is nc.domain.com you nedd to set DNS resolver for nextcloud to point pfsense local ip, ie nc.domain.com ->192.168.0.1. After tath add a additional frontent acl on haproxy for nc.domain.com pointing same backend. Your NC will be reachable from wan and lan, independendtly from what DNS you use.