This guide walks through setting up a physical, Linux server to connect to the
The guide was created on an Ubuntu 18.04 (Bionic Beaver) machine, but should be
compatible with most Debian-based distribution.
NOTE: As of June 2020, this guide will not work on Ubuntu 20.04 (Focal Fossa)
Source code and detailed instructions are available in the Xaptum enftun repository on github.
> sudo apt install dirmngr > sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys c615bfaa7fe1b4ca
bionic. Replace this with the appropriate distribution name.
> echo "deb http://dl.bintray.com/xaptum/deb bionic main" | sudo tee /etc/apt/sources.list.d/xaptum.list > sudo apt update
> sudo apt install enftun
enftun package includes sample
systemd unit files. We will use the
server sample as our example.
> sudo cp /usr/share/doc/enftun/example/server.conf /etc/enftun/enf0.conf
We will start the
enf services after generating the keys.
Each machine is one endpoint on the
ENF and is identified by its IPv6
address. Each endpoint needs its own credentials.
enftun-keygen utility helps in creating the credentials. The utility was
installed with the
> sudo mkdir -p /etc/enftun/enf0
> sudo enftun-keygen -c /etc/enftun/enf0.conf \ -u JohnQPublic@somecompany.com \ -a 2607:8f80:8080:b::deb:c002
> sudo systemctl enable enftun@enf0
enf0manually. This avoids having to reboot.
> sudo systemctl start enftun@enf0