Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom SSH ListenAddress

Featured Replies

I have ZeroTierOne running which I would like to SSH to, however every time I reboot my unraid server, or even restart the service now - the ListenAddress in ssd_config goes back to the BR0 address / LAN address but I want it to be a custom address or 0.0.0.0. 

 

I have tried editing /boot/config/ssh/sshd_config and /etc/ssh/sshd_config locations but after a reboot both are reset back to the br0 address. 

 

I have the SSH plugin installed which I am not sure if it's doing something. There doesn't look to be any way of setting the listen address in here, so my next option would be to remove it, but I wanted to get some opinions in first before I sarted doing that. 

 

Does anyone have any ideas why this keeps resetting back to the default LAN and not what I've set it to?

 

Edited by tomwhi

You will need to run a user script and edit sshd to add the zero tier ip to the ssh server.
once the script is edited you need to restart the service...
the running config is in /etc/ssh/ ...
 


For a permeant solution:
go too /boot/config/sshd/sshd_config


add a listen address to the zero tier network:

image.png.ca69475eb4d0f5ab4e90982b84048229.png

and reboot to apply custom sshd config

  • Author

Thank you @bmartino1 however I have already tried this as I mentioned in the original post and when I restart the service the settings are reset back to br0. 

 

This is the proccess I'm following: 

 

nano /etc/ssh/sshd_config  --->  Add the new network 

 

image.png.de4f1e1493cfd8b8eec642ac4fa03d51.png

 

/etc/rc.d/rc.sshd restart --->  Restart the SSHD service 

 

image.png.6aeb02e4757f3e0965b99117f1eab23f.png

 

nano /etc/ssh/sshd_config  --->  Open the config file again to see that my config has been erased. 

 

image.png.86bff53230a6f3a8bf682ce0b62f5411.png

 

I don't think adding this as a user script will help the problem I'm encountering where my config alterations are being wiped out. 

 

I can also confirm that after a reboot the /boot/config/ssh/sshd_config is overwritten and reset back to just my default bridge, even though I added the extra IP address of my ZTO interface in here as another line.

 

image.png.a1f6baf0fb29610bb15a99639824082e.png

 

 

Any ideas for why when I restart the service the default br0 network is being added back into the config?

Edited by tomwhi

  • 1 year later...

Hi @tomwhi ,

I came to this topic for the same reason you generated (zerotier) , searching and testing I have added in the go file (etc/config/go) the following:

/boot/config/go

cp /boot/sshd_config /etc/sshd/sshd_config

chmod 600 /etc/ssh/sshd_config

/usr/sbin/sshd

The above allows you to override permissions and start the daemon manually, since directly as it would be (rc.local) would not work. I hope it helps you

NOTE: I disabled the ssh service from unraid config

Edited by zobber

Hi,

I have found a much easier way and that already brings the tool (check first the docs :p) in which you declare the name of the zerotier interface in this way will be linked locally and so you can have access to ssh, nginx and others.

Go to:

Setting -> Network Setting -> Interface Extra

int.png

netstat -tunlp o ss -tunlp to check:

p.png

  • Author
On 6/17/2025 at 4:24 AM, zobber said:

Hi,

I have found a much easier way and that already brings the tool (check first the docs :p) in which you declare the name of the zerotier interface in this way will be linked locally and so you can have access to ssh, nginx and others.

Go to:

Setting -> Network Setting -> Interface Extra

int.png

netstat -tunlp o ss -tunlp to check:

p.png

This is a great update - thanks for keeping us up to date and sharing your progress too.

I actually sacked off ZTO in favour of Tailscale now. It seemed to integrate a lot easier into the Unraid OS and I've got some really sexy features like using SWAG with Tailscale to provide me an internal reverse proxy. I might look at ZTO again in the future but for now this seems to be working with a lot more stability.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.