Make your Siemens SIMATIC IOT2020 accessible from anywhere via the Yaler relay.
PrerequisitesSetting up your device requires a relay domain. Please sign up to get one.
Setting up the hardwareMake sure the Siemens IOT2020 is connected to the Internet via Ethernet, Wi-Fi or 3G. The SD card image v2.1.2 requires changing iface eth0 inet static dhcp
in the file /etc/network/interfaces.
To get a shell for setup, use 115200 baud serial via FTDI on UART port X14 as shown on p.49 and 55 of the operating instructions.
Installing YalerTunnel on YoctoFollow these steps to install YalerTunnel on the Siemens IOT2020. This tutorial is still in beta. Installation details will change. Found a bug? Let us know. Open a shell on your Siemens IOT2020 (default login is root, no password), or type:
$ cd ~
Create a yalertunnel directory:
$ mkdir yalertunnel
$ cd yalertunnel
Download, unzip and build the YalerTunnel source:
$ curl -LO http://s3.yaler.net/yalertunnel/YalerTunnel2.src.tar.gz
$ tar -xzv -f YalerTunnel2.src.tar.gz
$ cd udns && ./configure && cd .. && make
- Done. Now either enable Web access or SSH access.
A Web server or service has been installed and is running on the Siemens IOT2020.
Enabling Web access on YoctoHow to configure YalerTunnel on your Siemens IOT2020 to make a local Web service accessible from anywhere. Those steps are for manual testing only. Init script to be done.
Run yalertunnel in server mode, using the port of the local Web service (default: 80), and your relay domain:
$ ./yalertunnel server 127.0.0.1:80 try.yaler.io:80 RELAY_DOMAIN
- Done. Now, see how to access your device from any Web browser or with Curl or from iOS or from Android (and resolve errors).
How to remove YalerTunnel to disable Web access from anywhere. Open a shell on your Siemens IOT2020 and type:
$ rm -r yalertunnel
SSH accessPrerequisitesThe SSH daemon sshd is running (per default) on the Siemens IOT2020.
Enabling SSH access on YoctoHow to configure YalerTunnel on your Siemens IOT2020 to allow SSH access from anywhere. Those steps are for manual testing only. Init script to be done. Run yalertunnel in proxy mode, using the port of the local SSH service (default: 22), and your relay domain:
$ ./yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 RELAY_DOMAIN
- Done. Now, see how to access your device with Putty or with SSH (for Linux, Mac OS X).
How to remove YalerTunnel to disable SSH access from anywhere. Open a shell on your Siemens IOT2020 and type:
$ rm -r yalertunnel
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.
Yaler
Comments