Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Can not connect to truenas webgui #3

Open
crackinx opened this issue Mar 29, 2023 · 6 comments
Open

Can not connect to truenas webgui #3

crackinx opened this issue Mar 29, 2023 · 6 comments

Comments

@crackinx
Copy link

this is probably something stupid I am overlooking but, I can ping out from the host shell of TrueNas to other devices on my tailscale network, but when I try to connect to the webgui from outside I get an instant connection refused. No clue as to why.

@crackinx
Copy link
Author

to update, I have been trying to resolve this for some time and it seems like the jail is not forwarding to the main truenas install, can not find any setting to indicate as to why.

@TheCodeHermit
Copy link

I just barely got this working for my system today. My issue was that I needed to set tailscale to down, then bring it up using the --advertise-routes flag
The example used on the tailscale support site is
tailscale up --advertise-routes=192.168.0.0/24,10.0.0.0/24
After that all that is needed is to approve the subnet routes in tailscale admin console and then it worked for me

@KornelJahn
Copy link
Owner

I just barely got this working for my system today. My issue was that I needed to set tailscale to down, then bring it up using the --advertise-routes flag The example used on the tailscale support site is tailscale up --advertise-routes=192.168.0.0/24,10.0.0.0/24 After that all that is needed is to approve the subnet routes in tailscale admin console and then it worked for me

Please see my comment for the related PR. The point of the whole guide and IPFW NAT tinkering has been to avoid activating the --advertise-routes functionality.

@KornelJahn
Copy link
Owner

to update, I have been trying to resolve this for some time and it seems like the jail is not forwarding to the main truenas install, can not find any setting to indicate as to why.

I repeated the whole setup process on a fresh install of TrueNAS Core and could not reproduce your issue. Are you sure IPFW NAT is set up correctly in your case?

E.g., if the TrueNAS host has the IP of 192.168.1.2, ipfw nat show config should yield something like

ipfw nat 1 config if tailscale0 log same_ports redirect_port tcp 192.168.1.2:28757 28757 redirect_port tcp 192.168.1.2:5201 5201 redirect_port tcp 192.168.1.2:2049 2049 redirect_port tcp 192.168.1.2:445 445 redirect_port tcp 192.168.1.2:443 443 redirect_port tcp 192.168.1.2:22 22

@crackinx
Copy link
Author

crackinx commented Apr 3, 2023

It was setup right, could ping in both directions with no issue, just never got the gui to show. I ended up migrating from core to scale since you can use tailscale directly with truecharts.

@ghost
Copy link

ghost commented May 27, 2023

EDIT: Turns out I had two differences upon taking the time to inspect. First, I was using 13.2-RELEASE for the jail, and second I had an IPv4 Default Gateway set in Network -> Global Configuration. I cleared that and re-setup with 13.1-RELEASE and can confirm it now works. I will test later with a 13.2-RELEASE but for now I need it working.

Just adding my experience from a fresh install.
I too could not get SMB or HTTP to work (I didn't test others). Pinging both ways (via tailscale ip) worked.

TrueNAS 13.0 U4
TrueNAS Host: 192.168.0.111/24
TrueNAS Jail: 192.168.0.123/24
Static Route: 100.64.0.0/10 GW: 192.168.0.123

ipfw nat 1 config if tailscale0 log same_ports redirect_port tcp 192.168.0.111:28757 28757 redirect_port tcp 192.168.0.111:5201 5201 redirect_port tcp 192.168.0.111:2049 2049 redirect_port tcp 192.168.0.111:445 445 redirect_port tcp 192.168.0.111:443 443 redirect_port tcp 192.168.0.111:22 22

I also just gave up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants