Need HELPPP.... How to tell nexcloud server or truenas scale open port 9001 for zerotier ip

hello,

finally i can remote my truenas from outside with zerotier, now 1 more issue.

i already join the zerotier network, can do ping from outside my home with different isp, also can remote my truenas scale. but i don’t why i can’t access my nextcloud server using ip from zerotier.

nextcloud server port :9001

i can login from lan with local ip, but can’t access using zerotier ip, even i add :9001

try scan the truenas ip port, i see zerotier ip:9001 port is not open, :9001 only open for local lan.

any idea how to configure to open :9001 for zerotier ip so i can access nextcloud from outside.

many thank for help.

btw i can’t use ddns coz i in double NAT.

Did you adjust trusted_domains in config.php?

yes, below is the nextcloud config.php
zerotier ip:9001 could not find host

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.3.71’,
2 => ‘192.168.193.71’,
),

root@truenas[~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default OpenWrt.lan 0.0.0.0 UG 0 0 0 enp2s0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 kube-bridge
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0
192.168.193.0 0.0.0.0 255.255.255.0 U 0 0 0 ztr2qyexzy
root@truenas[~]#

image

image

i just don’t know how to tell nextcloud or turenas scale to open port 9001 for zerotier ip.
i can enter with port 80 it will direct to truenas web gui. if using port 9001 could not find host.

Did you try

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.3.71:9001’,
),

hi, follow you guide, still no work, the issue is port 9001 is not open if using zerotier ip. i don’t know why, and i don’t how to open the port 9001 it in zerotier ip.

if i access by local ip no issue.

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.3.71:9001’,
),

why is so hard to solve this puzzle, getting crazy in here. change port name only open with local ip, still not open using zerotier ip.

is just me have this issue??

Well, it is not very Nextcloud specific.

This service creates a virtual network, that is somehow routed. Perhaps there are some rules or firewall that prevent it (if it shows up as regular network interface, your firewall might block it)?

You can directly use ipv6 without tunnelling and virtual networks?

Done i slove my case, i use zerotier link to my openwrt, now i can access using local ip from outside. Don’t know why truenas not opening port for zerotie. Just default port.