This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An explanation of this script is available on my blog https://jackburgess.dev/blog/truenas-jails-access-via-mdns | |
# This allows you a nice way of connecting to your jails via their hostname using mDNS | |
# e.g. for Netdata, which runs on port 3000, you can access it on your jail via: | |
# http://<jail ip>:3000/ | |
# But wouldn't it be nice to access it on | |
# http://jailhostname.local/ | |
# | |
# Oneliner to kickstart | |
# pkg install -y curl && curl --silent https://gist.githubusercontent.com/jack828/b8375b16b6fb9eae52201d4deb563ab7/raw | /bin/sh -s PORT |