Robotron Datenbank-Software GmbH Firmenlogo
MIT DATEN MEHR BEWEGEN.
🇩🇪 🇬🇧

Special Use Cases

The RemoteService is the foundation for virtual connections to the networks of the RoboGate Device. Building on this, certain precautions must be taken for specific use cases, which are described here.

SSH Tunnel

To use protocols that are not yet properly supported, an SSH tunnel can be configured to provide access to the service.

This procedure requires experience with the Linux shell and the administration of Linux systems and may pose a security risk.

First, the SSH service must be configured via RoboGate RemoteService.

FieldValue

Name

(freely selectable)

Local Port

1522 (in principle freely selectable, but adjust the -p parameter in the ssh command)

Protocol

TCP

IP

127.0.0.1

Port

22 or 1522 (RoboGate Device xCom)

SSH forwarding may still need to be enabled over this connection (this feature is disabled by default on the RoboGate Device xCom).

In the file /etc/ssh/sshd_config, ensure that the following entries are configured:

AllowTcpForwarding yes
...
#AllowTcpForwarding no
#AllowAgentForwarding no

Restart the SSH service with sudo service sshd restart to apply the configuration.

Caution: the configuration is reset on RoboGate Devices xCom by an operating system update!

An SSH tunnel (example: VNC) can then be established using the ssh CLI installed on the service PC:

 ssh -L 5901:<remote_ip>:5900 localhost -p1522

A connection can then be established using a VNC viewer via localhost:5901.

This approach should only be used in exceptional cases, for example to test / verify the basic functionality of tunneling a TCP service.

TIA Portal

To establish a connection to a Siemens S7 PLC via the S7Comm protocol, a local port proxy must be configured that redirects traffic from 127.0.0.3:102 to 127.0.0.1:23456. By default, the required port 102 on 127.0.0.1 is blocked by TIA Portal. A different port cannot be configured in TIA Portal. This addition is therefore necessary.

netsh interface portproxy add v4tov4 listenport=102 connectaddress=127.0.0.1 connectport=23456 listenaddress=127.0.0.3 protocol=tcp

A connection must now be configured as follows:

FieldValue

Name

(freely selectable)

Local Port

23456 (in principle also freely selectable, but adjust the connectport parameter!)

Protocol

TCP

IP

(IP of S7)

Port

102

The tunnel can then be used by establishing a direct connection to a PLC at 127.0.0.3.

TwinCat

To establish a connection to a Beckhoff PLC via ADS, a local port proxy must be configured that redirects traffic from 127.0.0.3:48898 to 127.0.0.1:12345. By default, the required port 48898 on 127.0.0.1 is blocked by TwinCat. A different port cannot be configured in TwinCat. This addition is therefore necessary.

netsh interface portproxy add v4tov4 listenport=48898 connectaddress=127.0.0.1 connectport=12345 listenaddress=127.0.0.3 protocol=tcp

Additionally, the NetID and IP of the RoboGate Device must be configured in the controller ("Static Return Route") in order to authorize a connection to the device.

A connection must now be configured as follows:

FieldValue

Name

(freely selectable)

Local Port

12345 (in principle freely selectable, but adjust the connectport parameter!)

Protocol

TCP

IP

(IP of Beckhoff PLC)

Port

48898

A direct connection can then be configured in TwinCat.

Limitations

  • Currently, discovery is not available. Only direct connections can be established.