Access your Siemens IOT2020 from the Web

Make your Siemens SIMATIC IOT2020 or IOT2040 accessible from anywhere via the Yaler relay.

Prerequisites

Setting up your device requires a relay domain. Please sign up to get one.

Setting up the hardware

Make 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 Yocto

Follow 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.

  1. Open a shell on your Siemens IOT2020 (default login is root, no password), or type
    $ cd ~
  2. Create a yalertunnel directory
    $ mkdir yalertunnel
    $ cd yalertunnel
  3. 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
  4. Done. Now either enable Web access or SSH access.


Web access

Prerequisites

A Web server or service has been installed and is running on the Siemens IOT2020.

Enabling Web access on Yocto

How 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.

  1. 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
  2. Done. Now, see how to access your device from any Web browser or with Curl or from iOS or from Android (and resolve errors).

Disabling Web access on Yocto

How to remove YalerTunnel to disable Web access from anywhere.

  1. Open a shell on your Siemens IOT2020 and type
    $ rm -r yalertunnel


SSH access

Prerequisites

The SSH daemon sshd is running (per default) on the Siemens IOT2020.

Enabling SSH access on Yocto

How 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.

  1. 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
  2. Done. Now, see how to access your device with Putty or with SSH (for Linux, Mac OS X).

Disabling SSH access on Yocto

How to remove YalerTunnel to disable SSH access from anywhere.

  1. 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.


Creative Commons License This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.