Hi. I am using docker apps, inside Unraid NAS. I set up a Nextcloud container (docker). To be able to use it from outside, I created a DNAT rule so that from outside, I can access Nextcloud app. It is working. Nextcloud uses port 80 and port 443. These ports are used by my Unraid NAS. I mapped incoming http to port 380 of docker app, and incoming https to port 643 of docker app. So far, so good.
DNAT rule
Source- WAN. Allowed client network- ANY
Destination- WAN port Services- HTTP and another rule HTTPS
Protected Servers- NAS IP Mapped port- 380 and another port 643 for HTTPS
Protected zone- LAN
From inside the network, I can't access Nextcloud app
Sounds like the DNS is poiting towards the outside ip. But is thats they way you would like to use it, add the Lan zone aswell as source and it should work.
Source- WAN and LAN. Allowed client network- ANY
//Rickard
I accessed the Nextcloud docker from the inside by accessing https://NAS_ip_address:643. it went to https://xxx.duckdns.org, the hostname I use to access from outside, still unable to resolve. All these after adding LAN to the firewall ule already.
Hi! Currently, I left the advice of RickardNordahl in the firewall rules:
Source- WAN and LAN. Allowed client network- ANY
I created an FQDN host, didn't see any option not to advertise to WAN though.
Do I change the firewall rules previously created? How do I integrate this to the previous firewall rule? Or do I create a new one?
What should be the hostname? The name I got it to work from outside? The same name I want to call it from within the network? I call it xxx.duckdns.org from external, I also want to use this inside the network.
The IP address should be 192.168.1.1 or 192.168.1.whatever the unraid nas' ip is?
Regards,
Hi. Host/domain name
xxx.duckdns.org
IP address
192.168.1.xxx (NAS that hosts Nextcloud docker container)
TTL "60" Weight "1" Publish on WAN "No"
Reverse DNS lookup "On"
Created FQDN host
Name* "duckdns.org"
FQDN* "*.duckdns.org"
FQDN host group BLANK
Anything I missed? Unfortunately, it's not working.
Hi,
please try a traceroute from your PC to see where the traffic goes.
Your FQDN will point the outside because you are using the generic *, you will need to use the full name not the generic name.
Ian
XGS118 - v21.5.0
XG115 converted to software licence v21.5.0
If a post solves your question please use the 'Verify Answer' button.