open apps from any ip network from host

arkanjo

Cadet
Joined
Jun 8, 2022
Messages
8
I use Scale with zerotier network because my server is behind a cgnat and with zerotier I can conect from any device in my zerotier network. Before is using ok with openmediavault and nextcloud in docker, nextcloud open ok in IP from internal network or ip from zerotier network.

But now using truenas scale, I install nextcloud oficial but only open using IP from internat network from host, if try put zerotier ip network I receive error refused_connection

SSH, Webgui or SMB is ok in any IP from host, only has this problem using apps ...
How to solve this ? I want use any IP from host.

Tks !!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Under the Apps screen, go to Settings | Advanced Settings and set the Node IP to 0.0.0.0 that may do what you expect.

Also on that same screen, check that you don't have an IP address range conflict with your ZeroTier network.
 

arkanjo

Cadet
Joined
Jun 8, 2022
Messages
8
Under the Apps screen, go to Settings | Advanced Settings and set the Node IP to 0.0.0.0 that may do what you expect.

Also on that same screen, check that you don't have an IP address range conflict with your ZeroTier network.
It´s already like that, but dont work for me

1654778736524.png


Its my network
1654778770885.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I see from your screenshot that you didn't set the other 2 settings... perhaps those are mandatory to make it work... although it might imply that you can't have both unless your router/gateway knows how to go back to the other interface.
 

arkanjo

Cadet
Joined
Jun 8, 2022
Messages
8
Are u saying about network interfaces ??? I´m using only one, the others is a second network port, not in use and other is wireless interface. How disable this ?

I thinking.. no has other configuration in kubernets to say what connection use ? configure to multiple connection interfaces ? .. In openmediavault work fine, but want use now Truenas scale.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
A VPN interface is also an interface...

The only way to get VPNs to work with apps in my understanding is to use TrueCharts apps and use their VPN support options.
 

DaSnipe

Explorer
Joined
Jun 26, 2021
Messages
86
I use Scale with zerotier network because my server is behind a cgnat and with zerotier I can conect from any device in my zerotier network. Before is using ok with openmediavault and nextcloud in docker, nextcloud open ok in IP from internal network or ip from zerotier network.

But now using truenas scale, I install nextcloud oficial but only open using IP from internat network from host, if try put zerotier ip network I receive error refused_connection

SSH, Webgui or SMB is ok in any IP from host, only has this problem using apps ...
How to solve this ? I want use any IP from host.

Tks !

Unfortunately it's not possible with the TrueCharts app, if you're using Host Networking (which you are since you're getting a separate IP from Zerotier) you can't use that IP inside Kubernetes without some way of bridging it back to host and other networking magic. Basically not advised.
 

arkanjo

Cadet
Joined
Jun 8, 2022
Messages
8
but there must be some way to configure kubernetes to accept connection from both the physical IP of the network and the zerotier VPN.
Does iptables not have some way? I don't know much about iptables and networks.
 

DaSnipe

Explorer
Joined
Jun 26, 2021
Messages
86
but there must be some way to configure kubernetes to accept connection from both the physical IP of the network and the zerotier VPN.
Does iptables not have some way? I don't know much about iptables and networks.
If you want to mess with iptables and networking you can always play around but then you'd be better off doing things on your own, aka using docker-compose or installing via CLI. Just don't want to get your hopes up on the app automatically supporting connections to the rest of the kubernetes stack.
 

arkanjo

Cadet
Joined
Jun 8, 2022
Messages
8
I think I solved it... partially.
Interface was in DHCP, I put it as static, so in the advanced option of the apps tab, in the part of Kubernetes in Node IP it started to show the other IPs besides "0.0.0.0", I selected the zerotier interface IP, then I edited the app oficial nextcloud and in Nextcloud Host I also put the zerotier IP and it started to work.

But now only by the zerotier IP, no longer by the IP of the physical interface. I want to make it work in both, but what I needed most is already solved, just need to get both now.
 

xness

Dabbler
Joined
Jun 3, 2022
Messages
30
When clicking Apps > Settings > Advanced Settings nothing even happens for me using Firefox and TrueNAS-SCALE-22.02.2

Trying for MinIO to use my secondary VLAN interface.
 

Kasen

Dabbler
Joined
Sep 15, 2023
Messages
17
Hi, have you successfully access NextCloud via zerotier? Would you please share some tips?
 
Top