Public IP Adress and NextCloud Remote Access (DDNS)

Joined
Jul 20, 2023
Messages
3
Hi, first of all, i am quite new in the server space but I know a lot about computers in general.
I got TrueNAS installed and i can access it at 10.0.0.54, my local IP. I can access NextCloud as well at 10.0.0.54:9001

I want to set up a remote access for NextCloud in order to connect to it outside of my home network. Do i need a 192.168.x.x public IP adress for TrueNas remote access? How do I get the TrueNas IP to be public?

I got the ports 80 and 443 forwarded in my router settings as shown below (it's german). That seems to work normal.

1689892233994.png



I also set up a Google Domains DDNS and if I go to files.mywebsite.com I see the TrueNas Login screen, but I want it to forward it to the port 9001 (NextCloud) and not TrueNas. I set the DDNS up in my router settings with the proivder URL domains.google.com, my generated username and password and the domain name files.mywebsite.com.
I couldn't find any settings regarding the port on Google Domains DDNS settings or on my DDNS router settings. Maybe it will work better with a different DDNS provider? Like No-IP?

NextCloud Config:
1689892705977.png

1689892731289.png


TrueNas DDNS settings:
1689893156193.png

below i put in my domain name files.mywebsite.com and my credentials from domains.google.com


Thanks in advance for the help



My Hardware and Software:
Server: hp proliant dl385p gen8
2x 10 Gb LAN
2x 12 Cores AMD Opteron 6348
2x 600 GB SAS Boot Drive in Hardware Raid
4x 900 GB SAS in Raid 5 Hardware
192 GB RAM
True Nas: TrueNAS-SCALE-22.12.3.2
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Do i need a 192.168.x.x public IP adress
That's not a public IP address, that's a private subnet.
I got the ports 80 and 443 forwarded in my router settings as shown below (it's german). That seems to work normal.
Undo that immediately, unless you want a visit from the russian mafia. Also, NAT gateway is probably a more apt description.
I also set up a Google Domains DDNS and if I go to files.mywebsite.com I see the TrueNas Login screen
That's because the TrueNAS host's web GUI is running on ports 80 and 443. You would have needed to forward a port (either 80/443 or something else entirely) to 10.0.0.54:9001.
Maybe it will work better with a different DDNS provider? Like No-IP?
It seems to be working just fine, you just need to fix your port forwarding to point to the right port.
 
Joined
Jul 20, 2023
Messages
3
That's not a public IP address, that's a private subnet.

Undo that immediately, unless you want a visit from the russian mafia. Also, NAT gateway is probably a more apt description.

That's because the TrueNAS host's web GUI is running on ports 80 and 443. You would have needed to forward a port (either 80/443 or something else entirely) to 10.0.0.54:9001.

It seems to be working just fine, you just need to fix your port forwarding to point to the right port.
Thanks for the quick reply. Forwarding from port 80 or 443 to 10.0.0.54/9001 makes sense, but somehow my router doesn't allow it. I probably have to upgrade to a FritzBox or so (quite common in Austria)
 

wren2k2

Cadet
Joined
Sep 28, 2022
Messages
6
I'm having a similar problem. I've got port forwarding set up for port 9001, I can access the nextcloud page from inside my network, I have multiple other ports forwarded for other services/application even on the same server so I know the forwarding works, I suspect I'm having a "trusted domain" problem with nextcloud, but in the truecharts version of Truenas Scale I have no idea where my config.php file is to make any suggested edits I've seen on several posts.
 

Kasen

Dabbler
Joined
Sep 15, 2023
Messages
17
Hi, have you solved this problem? I encountered the same problem, and would you please share some tips?
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Top