TrueNas( or freenas) + Zerotier (how to install zerotier on truenas )

Unlock package management

# sed -i .orig 's/enabled: yes/enabled: no/' /usr/local/etc/pkg/repos/local.conf
# sed -i .orig 's/enabled: no/enabled: yes/' /usr/local/etc/pkg/repos/FreeBSD.conf


Update & install the package

#pkg update
#pkg install zerotier

Add on /usr/local/sbin this script with correct permission (in my example zt.sh)

after the join on the last row put your network ID

zt.sh :

#!/bin/bash
ln -s /usr/local/var/db/zerotier-one /var/db/zerotier-one
/usr/local/sbin/zerotier-one -d /usr/local/var/db/zerotier-one
sleep 1
/usr/local/bin/zerotier-cli join 0123456789012345

Start it after the boot process

TASKS -> init/shutdown scripts

ADD script in the postinit


Fix on macOS AnyConnect error: cannot confirm it is connected to your secure gateway. The local network may not be trustworthy. Please try another network

Open terminal and do the following (you will need administrator rights on your Mac)

cd /opt/cisco/AnyConnect

sudo nano AnyConnectLocalPolicy.xml

Then edit the field for ExcludeMacNativeCertStore to "true"

<ExcludeMacNativeCertStore>true</ExcludeMacNativeCertStore>


Quit AnyConnect and start it up again. 

You will now receive a certificate warning with the option to continue and, if available, install the certificate.

Chrome tip & triks

1- Error Chrome NET::ERR_CERT_INVALID (self signed certificate)

There’s a secret passphrase built into the error page (advanced). Just make sure the page is selected (click anywhere on the background), and type `thisisunsafe` and [ENTER]

2- Self Signed Certificate from localhsot

go to url chrome://flags/#allow-insecure-localhost and enable the option