Make your BeagleBone accessible from anywhere via the Yaler relay.
Setting up your device requires a relay domain. Please sign up to get one.
Plug in external power and make sure the BeagleBone is connected to the Internet via Ethernet, Wi-Fi or 3G.
This tutorial is for Angstrom. Not your OS? See how to access BeagleBone Debian or BeagleBone Ubuntu from the Web.
Follow these steps to install YalerTunnel on the BeagleBone.
$ cd ~
$ mkdir yalertunnel $ cd yalertunnel
$ curl -LO http://s3.yaler.net/yalertunnel/YalerTunnel2-v2.3.2.src.tar.gz $ tar xfzmv YalerTunnel2-v2.3.2.src.tar.gz $ make
A Web server or service is running (per default) on the BeagleBone.
How to configure YalerTunnel on your BeagleBone to make a local Web service accessible from anywhere.
$ curl -L http://s3.yaler.net/beaglebone/yalertunnel.service -o /lib/systemd/system/yalertunnel.service
$ ln -s /lib/systemd/system/yalertunnel.service /etc/systemd/system/multi-user.target.wants/yalertunnel.service
$ nano /lib/systemd/system/yalertunnel.service
Check the path (default: /home/root/yalertunnel), set the port of the local Web service (default: 80), and set your relay domain1 [Unit] ⋮ 7 ExecStart=/home/root/yalertunnel/yalertunnel server 127.0.0.1:80 try.yaler.io:80 RELAY_DOMAIN -min-listeners 1
Save changes with CTRL-X, then Y, then RETURN. Do not change the local IP (default: 127.0.0.1), unless the Web service runs on a separate device in the same network.
$ reboot
How to remove YalerTunnel to disable Web access from anywhere.
$ systemctl stop yalertunnel.service $ rm /etc/systemd/system/multi-user.target.wants/yalertunnel.service $ rm /lib/systemd/system/yalertunnel.service $ reboot
The SSH daemon sshd is running (per default) on the BeagleBone.
How to configure YalerTunnel on your BeagleBone to allow SSH access from anywhere.
$ curl -L http://s3.yaler.net/beaglebone/yalertunnel-ssh.service -o /lib/systemd/system/yalertunnel-ssh.service
$ ln -s /lib/systemd/system/yalertunnel-ssh.service /etc/systemd/system/multi-user.target.wants/yalertunnel-ssh.service
$ nano /lib/systemd/system/yalertunnel-ssh.service
Check the path (default: /home/root/yalertunnel), set the port of the local SSH service (default: 22), and set your relay domain1 [Unit] ⋮ 7 ExecStart=/home/root/yalertunnel/yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 RELAY_DOMAIN
Save changes with CTRL-X, then Y, then RETURN. Do not change the local IP (default: 127.0.0.1), unless the SSH service runs on a separate device in the same network.
$ reboot
How to remove YalerTunnel to disable SSH access from anywhere.
$ systemctl stop yalertunnel-ssh.service $ rm /etc/systemd/system/multi-user.target.wants/yalertunnel-ssh.service $ rm /lib/systemd/system/yalertunnel-ssh.service $ reboot
To enable Web and SSH access at the same time, or tunnel another protocol, please get in touch.
This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.