hi there,
i use a lokal nextcloud on 123.123.123.10.
with letsentcrypt i got an certificat for https. on the smartphone i use the nextcloud app with an dynamic domaine service (xxxx.com)
on windows i can modify the hostfile to
123.123.123.10 xxxx.com
on windows i will reroute to the nextcloud on this way.
now i have tried it on ipfire with add host.
but after these settings i can see on the traffic that the smartphone (with wifi connected to lokal lan in green zone) go to the internet back to me home to the nextcloud.
is it not possible that ipfire reroute the public adress xxxx.com direkt to the lokakal adress 123.123.123.10 ?
hmm, over network/host or over ssh ?
the smartphone is conneted to an fritz repeater and the repeater is connected to the the nic to blue zone. all fine no problem.
but if i connect (smartphone connected to wifi) i can see that the route go over the internet and not lan from ip blue to ip nextcloud
How does your smartphone access the nextcloud server?
By FQDN? Is it reolved to a local blue address?
By IP? Is it an IP of blue ( 192.168.240.0/24)?
The access from green to blue should work according to chapter ‘Default zone ruleset’ of www.ipfire.org - Firewall Default Policy
regulary i use the nextcloud app with an dnydns account (xxxx.com)
if i connect in my wlan to this address than show me ipfire a connection from phone to sbc to net and from net to nextcloud. now i have tried over a browser with lan ip of nextcloud 192.168.240.2 and i can see in the traffic a connection from 192.168.220.4 (phone) to 192.168.240.2 (nextcloud) direkt
on windows i modified the host and if i open xxxx.com than the host reroute it to the lan ip without public dns.
today i have tried this on ipfire without sucess. is this not possible ?
You can add the host’s definition to IPFire. But you must force your smartphone to use the DNS server of IPFire. If the nextcloud app asks any other DNS server your modification isn’t relevant for the request.
Then your clients do not really ask IPFire only for DNS name resolution.
If there is an entry (xxx.com address, 192.168.240.2) in Network → Edit Hosts ( see www.ipfire.org - Edit Hosts ), unbound -IPFire’s DNS resolver- answers with the local address to a question for the nextcloud FQDN.
The clients should have cleared their DNS cache before, also.