Allowing External Access to NextCloud Jail

ChrisLucas

Cadet
Joined
Apr 6, 2020
Messages
2
Hello,

I'm trying to access my NextCloud from internet. I haven't setup SSL yet but it will be done. Here are the steps that I've done:
  1. Install the NextCloud Plugin and Logged in with the admin account.
  2. I own a Domain and I create a Type A DNS zone that points to my public IP.
  3. From my router, I've port forwarded the port 80 (tcp/udp) to my server with the port 8282.
  4. My server isn't located in the DMz.
  5. The Jail is set to NAT and has NAT Port Forwarding set to 8282 (host) -> 80 (Jail)
I've missed something but I don't know what... Should I move my server to the DMZ? Do I need to configure a proxy?

SPECS:
- CPU: AMD Ryzen 2700x
- RAM: 16GB
- Storage: 32 TB HDD and 128GB SSD
- Freenas 11.3
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Do I need to configure a proxy?
You don't "need to", but you should if you don't want to have issues with security. Look for the how-to articles in the forum for Caddy or nginX reverse proxy and SSL.

I haven't setup SSL yet
Don't. The reverse proxy can terminate SSL for you and that will usually be enough.
 

ChrisLucas

Cadet
Joined
Apr 6, 2020
Messages
2
Thanks for the advices for the proxy but any reasons/theories why I can't access my server from internet?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Nextcloud does a bunch of stuff (which can be controlled by the config) to redirect the web client to the "right" URL.

I imagine that the problem you're seeing is related to that.

In order to solve it, you should probably get the SSL setup working first and use that to edit the config to point correctly to your public URL.
 

maxudak

Dabbler
Joined
Jan 26, 2020
Messages
10
Perhaps you need to add your domain to trusted domains or addresses in the config.php config
 
Top