I used the pre-configured VM by tech an me. Newest download.
We have got a Sophos UTM Firewall with an external interface and one internal interface. Our ISP provide us an IP-Subnet (for example 18.104.22.168 /29). The default IP address of the external interface is 22.214.171.124. We just added 126.96.36.199 to the external (additional addresses) and configure NATing from the external 188.8.131.52 to the internal (static) IP of our Nextcloud Server. The internal interface just can masqueraded with the main IP (184.108.40.206).
When I now start the nextcloud vm, after bootup it shows me something like that:
WAN IPv4: 220.127.116.11
LAN IPv4: [my internal ip]
So, nextcloud think it’s WAN IPv4 ist 18.104.22.168 but it’s 22.214.171.124!
I can reach the nextcloud Server when I am typing https://126.96.36.199 in my browser…
The problem is now that I want to generate a ssl certificate from let’s encrypt. But that script fails because by subdomain “cloud.mydomain.com” is not reachable. But it actually is reachable. I think that is caused by the wrong WAN IP…
Can you help me?
I hope you understood me and sorry for my bad english