Make your Arduino Yún accessible from anywhere via the Yaler relay.
Setting up your device requires a relay domain. Please sign up to get one.
Make sure the Arduino Yún is connected to the Internet via Ethernet or Wi-Fi.
Follow these steps to install YalerTunnel on the Arduino Yún.
$ opkg update
$ opkg upgrade libopenssl
$ opkg install http://s3.yaler.net/openwrt-yun/yalertunnel_1_ar71xx.ipk
Follow these steps to install Daemontools on the Arduino Yún.
$ opkg install daemontools
$ vi /etc/rc.local
Use vi commands to add the following line4 wifi-live-or-reset 5 boot-complete-notify 6 /usr/bin/svscanboot & ⋮
A Web server is running (per default) on the Arduino Yún.
The built-in REST API can be used with the Bridge or Mailbox Arduino library.
How to configure YalerTunnel on your Arduino Yún to make a local Web service accessible from anywhere.
$ mkdir -p /service/yalertunnel $ cd /service/yalertunnel
$ wget http://s3.yaler.net/openwrt-yun/run $ chmod a+x run
$ vi /service/yalertunnel/run
Use vi commands to set the port of the local Web service (default: 80), and set your relay domain1 #!/bin/sh 2 3 exec yalertunnel server 127.0.0.1:80 try.yaler.io:80 RELAY_DOMAIN -min-listeners 8 </dev/null 2>&1
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
The SSH daemon sshd is running (per default) on the Arduino Yún.
How to configure YalerTunnel on your Arduino Yún to allow SSH access from anywhere.
$ mkdir -p /service/yalertunnel-ssh $ cd /service/yalertunnel-ssh
$ wget http://s3.yaler.net/openwrt-yun/run-ssh -O run $ chmod a+x run
$ vi /service/yalertunnel-ssh/run
Use vi commands to set the port of the local SSH service (default: 22), and set your relay domain1 #!/bin/sh 2 3 exec yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 RELAY_DOMAIN </dev/null 2>&1
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 fix common issues.
$ ps w | grep [y]aler
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.