Setting up a secure VPN Connection between a Tablet (ios), SCALANCE S615 and SINEMA Remote Connect Server. SINEMA Remote Connect, SCALANCE S615

Similar documents

Setting up a secure VPN connection between two SCALANCE S Modules Using a static IP Address

Setting up a secure VPN Connection between the TS Adapter IE Advanced and Windows 7

Setting up a secure VPN Connection between SCALANCE S and SSC Using a static IP Address. SCALANCE S, SOFTNET Security Client

Setting up a secure VPN Connection between SCALANCE S and CP x43-1 Adv. Using a static IP Address. SCALANCE S, CP Advanced, CP Advanced

Setting up a secure VPN Connection between CP x43-1 Adv. and SOFTNET Security Client Using a static IP Address

Setting up a secure VPN Connection between SCALANCE M-800 and SSC

Setting up a secure VPN Connection between two M812-1 Using a static IP Address

Setting up a secure VPN Connection between SCALANCE S and M812-1 Using a static IP Address

Setting up a secure VPN Connection between CP x43-1 Adv. and M812-1 Using a static IP Address


Transmitting HMI data to an external monitor

Networking a SINUMERIK 828D

Configuration of an MRP Ring and a Topology with Two Projects

IP-based Remote Networks

Windows firewall settings for X-Tools Server Pro. CMS X-Tools / V / CPU PN/DP. Application description 6/2016

Generating the Parameters for the Modbus/TCP Communication

SINAMICS G/S: Integrating Warning and Error Messages into STEP 7 V5.x or WinCC flexible

Setting up time synchronization of Process Historian and Information Server

Application example 02/2017. SIMATIC IOT2000 Connection to IBM Watson IoT Platform SIMATIC IOT2040

X-Tools Loading Profile Files (LPF)

PCS 7 Process Visualization on Mobile Devices with RDP

SIMATIC NET. Industrial Ethernet Security SCALANCE S615 Getting Started. Preface. Connecting SCALANCE S615 to the WAN 1



Setting up 01/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Setting up 08/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Checking of STEP 7 Programs for the Migration of S7-318 to S CPU318 Migration Check. Application description 01/2015

Determination of suitable hardware for the Process Historian 2014 with the PH-HWAdvisor tool

Applikationen & Tools. Network Address Translation (NAT) and Network Port Address Translation (NAPT) SCALANCE W. Application Description July 2009

Library Description 08/2015. HMI Templates. TIA Portal WinCC V13.

TeleService of a S station via mobile network

Multiuser Engineering in the TIA Portal

SINAMICS G/S: Tool for transforming Warning and Error Messages in CSV format

SIMATIC NET. Industrial Remote Communication - Remote Networks SINEMA Remote Connect. Preface. Connecting the SINEMA RC Server to the WAN 1

Improving the performance of the Process Historian

Application example 12/2016. SIMATIC IOT2000 OPC UA Client SIMATIC IOT2020, SIMATIC IOT2040



Data Storage on Windows Server or NAS Hard Drives


Configuration of an MRP ring with SIMOCODE and SIMATIC S SIMOCODE pro V PN, SIMATIC S Siemens Industry Online Support

Moving a Process Historian/ Information Server from Workgroup A to Workgroup B

I-Device Function in Standard PN Communication SIMATIC S7-CPU, CP, SIMOTION, SINUMERIK. Configuration Example 08/2015

SIMATIC PCS 7 Minimal Configuration


User Login with RFID Card Reader


SIMATIC NET OPC Server Implementation

Check List for Programming Styleguide for S7-1200/S7-1500

Configuring the F-I-Device function with the SENDDP and RCVDP blocks.

Key Panel Library / TIA Portal

Applications & Tools. Security Configurations in LAN and WAN (DSL) with SCALANCE S61x Modules and the Softnet Security Client. Industrial Security

Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Integration of Process Historian / Information Server in a Domain

Check List for Programming Styleguide for S7-1200/S7-1500


Display of SINAMICS Error Messages in Runtime Professional





RAID systems within Industry


Universal Parameter Server

Exchange of large data volumes between S control system and WinCC

Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016

Monitoring Energy Consumption with LOGO! 8 and LOGO! CMR



Migration of a Process Historian database

STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP

Synchronizing recipes via a SIMATIC HMI Panel

S Data Transfer with SEND/RECEIVE Interface


Integral calculation in PCS 7 with "Integral" FB or "TotalL" FB

Topology Reporter Tool Description April 2012 Applications & Tools Answers for industry.

PNDriver V2.1 Quick Start Guide for IOT2040 SIMATIC IOT

Production feedback via WinCC Data Transfer with XML file

X-Tools configuration to connect with OPC servers and clients

Automatic Visualization of the Sample Blocks in WinCC Advanced


Application for Process Automation

APF report templates based on data from the WinCC User Archive

SIMATIC PDM - Central access to MODBUS RTU devices

Sending and Receiving SMS Messages via a SCALANCE M Router SCALANCE M874/M876, S7-1200/S CPU / V1.0. Application Example 06/2016

Engineering of the Configuration Control for IO Systems




Integration of SIMATIC PCS 7 Asset Management into existing projects

SIMATIC Energy Suite Visualization example of the "*.csv"-energy Data Files

Configuration Control with the S and ET 200SP

Display of SINAMICS Fault Messages in WinCC V7.4

SINEMA Remote Connect - Server SIMATIC NET. Industrial Remote Communication - TeleControl SINEMA Remote Connect - Server. Preface

Cover. WinAC Command. User documentation. V1.5 November Applikationen & Tools. Answers for industry.

Tracking the MOP setpoint to another setpoint source to bumplessly changeover the setpoint

Recording user activity on a SIMATIC Controller using a SIEM System. SIMATIC Controller S H, S7-410E SIMATIC PCS 7



Transcription:

Configuration Example 09/2015 Setting up a secure VPN Connection between a Tablet (ios), SCALANCE S615 and SINEMA Remote Connect Server SINEMA Remote Connect, SCALANCE S615 https://support.industry.siemens.com/cs/ww/en/view/109479578

Siemens AG 2015 All rights reserved Warranty and Liability Warranty and Liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in this Application Example and other Siemens publications e.g. Catalogs the contents of the other documents shall have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of fundamental contractual obligations ( wesentliche Vertragspflichten ). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens AG. Security informati on Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. For more information about industrial security, visit http://www.siemens.com/industrialsecurity. To stay informed about product updates as they occur, sign up for a productspecific newsletter. For more information, visit http://support.industry.siemens.com. Entry ID: 109479578, V1.0, 09/2015 2

Siemens AG 2015 All rights reserved Table of Contents Table of Contents Warranty and Liability... 2 1 Task and Solution... 4 1.1 Task... 4 1.2 Possible solution... 4 1.2.1 Complete overview... 4 1.2.2 SINEMA Remote Connect... 6 1.3 Characteristics of the solution... 8... 9 2.1 Setting up the environment... 9 2.1.1 Required components and IP address overview... 9 2.1.2 Routers on the VPN clients... 12 2.1.3 Tablet... 12 2.1.4 SCALANCE S615... 13 2.1.5 Router on the VPN server... 17 2.1.6 SINEMA Remote Connect Server... 18 2.2 Setting up remote access on the SINEMA Remote Connect Server... 21 2.2.1 Defining participants and communication relationships... 22 2.2.2 Exporting certificates and user configuration... 32 2.3 Setting up the remote connection on the S615... 34 2.3.1 Enabling access to the SINEMA Remote Connect Server... 34 2.3.2 Loading the certificate... 35 2.3.3 Configuring the VPN connection... 36 2.4 Setting up the remote connection on the tablet... 40 2.4.1 Modifying the.ovpn configuration file... 40 2.4.2 Transferring the configuration data... 44 2.4.3 Establishing the VPN connection... 49 3 Testing the Tunnel Function... 50 4 History... 50 Entry ID: 109479578, V1.0, 09/2015 3

Siemens AG 2015 All rights reserved 1 Task and Solution 1 Task and Solution 1.1 Task The task is to provide a service employee with secure remote access to the SINEMA Remote Connect Server and lower-level devices for maintenance, control and diagnostic purposes. SINEMA Remote Connect is used for secure, central management of the tunnel connections. The following customer requirements have to be considered: Prevention of unauthorized access to the SINEMA Remote Connect Server and lower-level devices. Prevention of the unauthorized execution of functions through the assignment of rights. Access control to the lower-level devices. Protection against data manipulation and spying. Flexible access for the service employee (regardless of the user s location). 1.2 Possible solution 1.2.1 Complete overview The figure below shows one way of implementing the customer requirements: Control Center SINEMA Remote Connect Server Internet Router Internet Router S615 Automation Cell VPN Server Static WAN IP Address WAN Internet Router 1 VPN Client Service Technician 2 VPN Tunnel Industrial Ethernet VPN Client An automation cell (nodes such as SIMATIC stations, panels, drives, PCs) is connected with the aid of the SCALANCE S615. The service technician uses a mobile device. Entry ID: 109479578, V1.0, 09/2015 4

Siemens AG 2015 All rights reserved 1 Task and Solution Communication between the service technician and the automation cell takes place via the SINEMA Remote Connect Server located in the control center. Remote access is protected by two VPN tunnels: VPN tunnel 1 Client access from the mobile device (tablet/smartphone) to the SINEMA Remote Connect Server is established via the OpenVPN Connect app, a VPN client software product. VPN tunnel 2 Client access of the automation cell is established using the SCALANCE S615. Depending on the configured communication relationships and the security settings, the SINEMA Remote Connect Server routes between the individual VPN tunnels. Access to the SINEMA Remote Connect Server (VPN server) is predefined by the use of a static IP address. When establishing the VPN tunnel, the roles are defined as follows: Table 1-1 Component Mobile device SCALANCE S615 SINEMA Remote Connect Server VPN role Initiator (VPN client); starts the VPN connection Initiator (VPN client); starts the VPN connection Responder (VPN server); waits for the VPN connection 1 2 1 2 Entry ID: 109479578, V1.0, 09/2015 5

Siemens AG 2015 All rights reserved 1 Task and Solution 1.2.2 SINEMA Remote Connect SINEMA Remote Connect is a management platform for remote networks that centrally manages secure tunnel connections. It allows convenient and secure maintenance of widely distributed plants or machines via remote access. Even if the machines are integrated in third-party networks. For example, in the plants of end customers of machine manufacturers. Parts of a solution with SINEMA Remote Connect are: SINEMA Remote Connect as the VPN server Terminal units (VPN client): SCALANCE S615 (with KEY-PLUG) SCALANCE M-800 (with KEY-PLUG) SINEMA Remote Connect Client OpenVPN Client SINEMA Remote Connect Server SINEMA Remote Connect Server is a server application that provides integrated connection management of distributed networks via the Internet. It coordinates secure connection establishment between users, widely distributed plants and machines. The SINEMA Remote Connect Server performs the following functions: Management and establishment of encrypted connections using OpenVPN. Verification via CA certificate or fingerprint. User management with rights configuration. Establishment of permanent or event-based connections (established via a wake-up SMS text message or a signal at the digital input). Support of routing and NAT to connect subnets behind the SCALANCE S615. Provision of secure remote access to lower-level networks for maintenance, control and diagnostic purposes. Web Based Management (WBM) to configure the server. Entry ID: 109479578, V1.0, 09/2015 6

Siemens AG 2015 All rights reserved 1 Task and Solution SCALANCE S615 The SCALANCE S615 is a security module for the protection of devices, automation cells or network segments in Ethernet networks against internal and external threats. It offers the same functionalities and features as the previous SCALANCE M variants. It additionally provides a number of specific LAN functions that allow optimum connection to SINEMA Remote Connect. Among other things, the SCALANCE S615 is characterized by the following functions: Support of VPN for secure authentication of network users, data encryption and data integrity check. IPSec VPN tunnel (server and client functionality) OpenVPN for connection to SINEMA Remote Connect (Client function) Stateful inspection firewall with filtering of IP-based data traffic and communications protocols. Support of NAT/NAPT; also in conjunction with IPSec and OpenVPN. VLAN support. Flexible, reaction-free and protocol-independent protection. Support of multiple VPN tunnels at a time. Easiest connection to SINEMA Remote Connect via the auto-configuration interface (can be activated with the KEY-PLUG SINEMA REMOTE CONNECT). OpenVPN Connect OpenVPN client OpenVPN Connect is an OpenVPN client application for common smartphones and tablets and can be downloaded for free from the appropriate app store. Among other features, it provides the following functions: Easy import of OpenVPN configuration profiles. Multi-factor authentication through static and dynamic protocols. Use of mbed TLS (PolarSSL) for encryption and SSL/TLS. Entry ID: 109479578, V1.0, 09/2015 7

Siemens AG 2015 All rights reserved 1 Task and Solution 1.3 Characteristics of the solution User management and connection management via a central server application. Secure and easy dial-in to the plants from anywhere in the world. Controlled, encrypted data traffic between users, widely distributed plants and machines through a VPN tunnel. Verification of the SINEMA Remote Connect Server through the CA certificate. Low investment and operating costs for monitoring and controlling remotely connected substations. High degree of security for machines and plants through the implementation of the cell protection concept. Easy integration into existing networks and protection of devices that do not have their own security functions. Easiest connection to SINEMA Remote Connect. Entry ID: 109479578, V1.0, 09/2015 8

Siemens AG 2015 All rights reserved 2.1 Setting up the environment 2.1.1 Required components and IP address overview Software packages This solution is based on SINEMA Remote Connect Appliance and requires the SINEMA Remote Connect Server as software. Install this software on a PC without an operating system. Please consider the requirements necessary for the installation. During the installation, you have to enter the server s IP address. Use the IP address from Table 2-1. The tablet requires the OpenVPN Connect app. Download the free app from the store and install it on your tablet. NOTICE The installation of the SINEMA Remote Connect Server includes its own operating system. If you are using a PC on which an operating system already exists, the hard disk will be formatted and stored data will be lost. Required devices/components: To set up the environment, use the following components: A PC on which the SINEMA Remote Connect Server is installed. A tablet with the ios operating system and the OpenVPN Connect app. This example was created with an ipad (ios version 8.4) and the OpenVPN Connect app version V1.0.5 build 177. A SCALANCE S615. A KEY-PLUG SINEMA REMOTE CONNECT. DSL access with a dynamic WAN IP address and a DSL router with WLAN functionality. DSL access with a dynamic WAN IP address and a DSL router. DSL access with a static WAN IP address and a DSL router. A PC on which a web browser and a text editor (e.g., Notepad) are installed. The necessary network cables, TP cables (twisted pair) according to the IE FC RJ45 standard for Industrial Ethernet. Note You can also use a different Internet access method (e.g., UTMS). The configuration described below refers explicitly to the components listed in Required devices/components. Entry ID: 109479578, V1.0, 09/2015 9

Siemens AG 2015 All rights reserved IP addresses For this example, the IP addresses are assigned as follows: SINEMA Remote Connect Server 192.168.2.90 Dynamic WAN IP 192.168.2.1 S615 172.16.1.52 172.16.0.1 Static WAN IP WAN 192.168.100.1 192.168.100.4 Dynamic WAN IP 192.168.178.1 192.168.178.100 Table 2-1 Component Port IP address Router Subnet mask SINEMA Remote Connect Server PC (not shown in the figure) Router on the VPN server Router on the VPN server Router on the VPN client (tablet) Router on the VPN client (tablet) LAN port 172.16.1.52 172.16.0.1 255.255.0.0 LAN port 172.16.67.10 192.168.100.10 192.168.1.100-255.255.0.0 255.255.255.0 255.255.255.0 LAN port 172.16.0.1-255.255.0.0 WAN port WAN port Static IP address from provider Dynamic IP address from provider - Assigned by provider - Assigned by provider LAN port 192.168.178.1-255.255.255.0 Tablet WLAN 192.168.178.100 192.168.178.1 255.255.255.0 Router on the VPN client (S615) Router on the VPN client (S615) WAN port Dynamic IP address from provider - Assigned by provider LAN port 192.168.2.1-255.255.255.0 SCALANCE S615 WAN port (P5) 192.168.2.90 192.168.2.1 255.255.255.0 SCALANCE S615 LAN port (P1-4) 192.168.100.1-255.255.255.0 Programmable controller LAN port 192.168.100.4 192.168.100.1 255.255.255.0 Entry ID: 109479578, V1.0, 09/2015 10

Siemens AG 2015 All rights reserved Note The PC is used to configure the SINEMA Remote Connect Server and the SCALANCE S615 via Web Based Management. This requires that multiple IP addresses be assigned to the PC network adapter. In the advanced TCP/IP settings of the network adapter configuration, you have the option to add more IP addresses. Setting up the infrastructure Connect all the components involved in this solution. SINEMA Remote Connect Server WAN Port LAN Port WAN Port P5 S615 LAN Port LAN Port WAN Port WAN LAN Port P1-P4 LAN Port WAN Port WLAN Interface WLAN Interface Table 2-2 Component Local port Partner Partner port SINEMA Remote Connect Server LAN port Router on the VPN server LAN port Router on the VPN client (tablet) WLAN interface Tablet WLAN interface Router on the VPN client (S615) LAN port S615 WAN port P5 SCALANCE S615 LAN port Automation cell Entry ID: 109479578, V1.0, 09/2015 11

Siemens AG 2015 All rights reserved 2.1.2 Routers on the VPN clients VPN WLAN If VPN connections are configured and enabled on your routers, close them. The WLAN router is used to connect the tablet to the LAN via the WLAN. Set up the WLAN on the WLAN router. LAN IP addresses 2.1.3 Tablet On the LAN ports, use a static IP address as shown in Table 2-1. Time VPN WLAN To check the time validity of certificates, it is important that the tablet always maintains the current date and time. Check the time on your tablet and change it, if necessary. If other VPN connections are configured and enabled on your tablet, close them. On the tablet, set up the WLAN according to your router configuration. Use a static IP address as shown in Table 2-1. Entry ID: 109479578, V1.0, 09/2015 12

Siemens AG 2015 All rights reserved 2.1.4 SCALANCE S615 Factory default KEY-PLUG To make sure that no old configurations and certificates are stored in the SCALANCE S, reset the module to factory default. The KEY-PLUG SINEMA REMOTE CONNECT is required for the SCALANCE S615. The KEY-PLUG enables the connection between the SCALANCE S615 and SINEMA Remote Connect. Make sure that a valid KEY-PLUG is inserted in the SCALANCE S. Opening Web Based Management Connect the PC to a LAN port of the SCALANCE S615 (e.g., port 2). By factory default, the device has IP address 192.168.1.1/24. Use address http://192.168.1.1 to open Web Based Management. Web Based Management login When you log in for the first time or after setting to factory default, the login data is defined as follows: Name: admin Password: admin 1. Enter the name and password in the appropriate text boxes. Click the Login button. 2. When you log in for the first time or after setting to factory default, you are prompted to change the password. 3. Enter the old and new password. In Password Confirmation, repeat the password to confirm it. Both entries must match. Entry ID: 109479578, V1.0, 09/2015 13

Siemens AG 2015 All rights reserved Setting the time 4. Click the Set Values button to complete the operation and activate the new password. 5. After successful login, the start page appears. Result The password for the admin user has been changed. From now on, log in with the changed password. To establish secure communication, it is essential that the current date and time are always set on the SCALANCE. Otherwise, the certificates used are interpreted as invalid and secure VPN communication is not possible. 1. In the navigation bar, navigate to System > System Time. 2. Click the Use PC Time button to apply the time setting of the PC. 3. Apply the setting with Set Values. Result The date and time are applied and displayed in the System Time field. Note You also have the option to have the system time automatically synchronized with an NTP time server. A number of time servers from which the exact current time can be retrieved can be found on the Internet. Entry ID: 109479578, V1.0, 09/2015 14

Siemens AG 2015 All rights reserved Changing the IP settings To integrate the SCALANCE S615 into the network of the sample configuration, change the LAN interface accordingly. 1. In the navigation pane, click Layer 3 > Subnet and in the content pane, click the Configuration tab. 2. Enter the IP address for vlan1 as shown in Fehler! Verweisquelle konnte nicht gefunden werden.. 3. Click Set Values. Result The IP address is automatically changed in the web browser s address bar. Due to the assignment of multiple IP addresses, the PC can still access Web Based Management. Entry ID: 109479578, V1.0, 09/2015 15

Siemens AG 2015 All rights reserved Creating IP subnets The SCALANCE S615 features five ports that have the following factory default settings: Port 1-4: vlan 1 For access from the local network (LAN) to the device. Port 5: vlan 2 For access from the external network (WAN) to the device. The VLANs are in different IP subnets. The IP subnet for VLAN 1 has already been configured in the last section. To configure the IP subnet for VLAN 2, proceed as follows: 1. In the navigation pane, click Layer 3 > Subnet and in the content pane, click the Configuration tab. 2. In Interface, select vlan2. Enter the IP address for vlan2 as shown in Fehler! Verweisquelle konnte nicht gefunden werden.. 3. Click Set Values. Result The IP subnets have been created and are displayed in the Overview tab. Entry ID: 109479578, V1.0, 09/2015 16

Siemens AG 2015 All rights reserved 2.1.5 Router on the VPN server Static IP address for the DSL router WAN access of the VPN clients to the SINEMA Remote Connect Server (VPN server) is implemented using a fixed public IP address. This IP address must be requested from the provider and then stored in the DSL router. Port forwarding on the DSL router To allow smooth exchange of tunnel packets between the tablet, SCALANCE S615 and SINEMA Remote Connect Server, make sure that PORT forwarding for OpenVPN and https with TCP and UDP (TCP/443,UDP/1194,TCP/5443, TCP/6220) is enabled and forwarding to the SINEMA Remote Connect Server is possible. Note In the SINEMA Remote Connect Server, these ports can be changed; therefore, the port numbers are only correct if you keep the default settings. Either only UDP or TCP is used for OpenVPN. Where possible, always prefer UDP as it is faster/performs better. Entry ID: 109479578, V1.0, 09/2015 17

Siemens AG 2015 All rights reserved 2.1.6 SINEMA Remote Connect Server Opening Web Based Management Connect the PC to the local network of the SINEMA Remote Connect Server (e.g., via the local ports on the router) and connect to the web user interface of the SINEMA Remote Connect Server. The IP address was defined during the installation. Use address https://172.16.1.52 to open Web Based Management. Web Based Management login When you log in for the first time or after setting to factory default, the login data is defined as follows: Name: admin Password: admin 1. Enter the name and password in the appropriate text boxes. Click the Login button. 2. When you log in for the first time or after setting to factory default, you are prompted to change the password. 3. Enter the old and new password. The new password must be at least 8 characters long and include at least one special character, upper/lower case letters and numbers. 4. Click the Save button to complete the operation and activate the new password. Entry ID: 109479578, V1.0, 09/2015 18

Siemens AG 2015 All rights reserved Setting the time 5. After successful login, the start page appears. Result The password for the admin user has been changed. From now on, log in with the changed password. To establish secure communication, it is essential that the current date and time are always set on the SINEMA Remote Connect Server. Otherwise, the certificates used are interpreted as invalid and secure VPN communication is not possible. 1. In the navigation bar, navigate to System > System Time. 2. Click the Use PC time button to apply the time setting of the PC. Result The date and time are applied and displayed in the System time field. Note You also have the option to have the system time automatically synchronized with an NTP time server so that the exact current time can be retrieved. Entry ID: 109479578, V1.0, 09/2015 19

Siemens AG 2015 All rights reserved Checking the interface 3. In the navigation pane, click Security > Network and in the content pane, click the Interfaces tab. 4. In Port, select WAN. The port configuration is displayed. Check the WAN port settings. Check SINEMA RC is located behind a NAT device to enter the required external WAN IP address for the router. In WAN IP address, enter the WAN IP address of the router. 5. Click Save to save the settings. Note Keep the default settings if the SINEMA Remote Connect Server is in a local network. Entry ID: 109479578, V1.0, 09/2015 20

Siemens AG 2015 All rights reserved 2.2 Setting up remote access on the SINEMA Remote Connect Server To allow the service technician s tablet to access the automation cell via the SINEMA Remote Connect Server, the terminal units (tablet and SCALANCE S615) must log on to the server. The respective VPN tunnel between the terminal unit and the SINEMA Remote Connect Server is established only after successful authentication. Depending on the configured communication relationships and the security settings, the SINEMA Remote Connect Server interconnects the individual VPN tunnels and therefore allows access. This requires the following configuration steps: Define participant groups. Implement the SCALANCE S615 as a device. Create the service technician as a user. Define communication relationships. Load certificates and user configuration. Opening Web Based Management Connect the PC to the local network of the SINEMA Remote Connect Server (e.g., via the local ports on the router) and use address https://172.16.1.52 to open Web Based Management. Log in with the admin user and the appropriate password. Note: Only the admin user type has write access to the configuration in the SINEMA Remote Connect Server. Entry ID: 109479578, V1.0, 09/2015 21

Siemens AG 2015 All rights reserved 2.2.1 Defining participants and communication relationships Defining participant groups Users and devices can be combined into participant groups. The following groups are created for this sample configuration. Station : SCALANCE S615 device. Service : User account for the service technician with the tablet. 1. In the navigation pane, click Remote connections > Participant groups. Click Create. 2. The New participant group page opens. In Group name, enter Station and (optionally) a description. Click Create. Entry ID: 109479578, V1.0, 09/2015 22

Siemens AG 2015 All rights reserved 3. The Station participant group has been created and appears in the content pane. Click Create. 4. In Group name, enter Service and (optionally) a description. Click Create. Result The two participant groups have been created and appear in the content pane. Entry ID: 109479578, V1.0, 09/2015 23

Siemens AG 2015 All rights reserved Inserting the SCALANCE S615 as a device To integrate the SCALANCE S615, perform the following steps: 1. In the navigation pane, click Remote connections > Devices. Click Create to create a new device. 2. The New device page opens. Enter the device name for the device, for example S615. Click Continue. Entry ID: 109479578, V1.0, 09/2015 24

Siemens AG 2015 All rights reserved 3. Check the Connect local subnets option and configure the parameters as shown in Table 2-1. Select Add to add the device. Click Continue. 4. The Group memberships tab is displayed. Check the Station participant group. Click Continue. Entry ID: 109479578, V1.0, 09/2015 25

Siemens AG 2015 All rights reserved 5. The Password tab is displayed. Define the password for access. The password must be a combination of upper and lower case letters, digits and special characters. You will need this password later when configuring the SCALANCE S615 (see chapter 2.3.3). Click Continue. 6. The Device tab is displayed. It summarizes all the information. Click Finish. Entry ID: 109479578, V1.0, 09/2015 26

Siemens AG 2015 All rights reserved Result The SCALANCE S615 is stored in the SINEMA Remote Connect Server as a new device. Determining the device ID The device ID and if no CA certificate is used the fingerprint are pieces of information the SCALANCE S615 uses for authentication on the SINEMA Remote Connect Server during connection establishment. As this example uses the CA certificate, only the device ID is of interest. 1. In the navigation pane, click Remote connections > Devices. The SCALANCE S615 is displayed. 2. In Actions, click the icon to open the device information. 3. The Device information is displayed. Note down the Device ID entry or copy it and save the value to a text file in your local directory. 4. Select Exit dialog to close the dialog. Entry ID: 109479578, V1.0, 09/2015 27

Siemens AG 2015 All rights reserved Inserting user account for service technician In this example, access via the tablet is performed by a service technician. To do this, the service technician needs a user name and password. 1. In the navigation pane, click User accounts > Users and roles. Click Create. The New user page opens. 2. Enter the user name, e.g. MobileService, and click Continue. Entry ID: 109479578, V1.0, 09/2015 28

Siemens AG 2015 All rights reserved 3. The Rights tab is displayed. You have the following option to assign rights to the user: Rights assignment through role assignment: Select an existing role. The associated rights are automatically assigned to the user; for additional rights, check the check boxes. Rights assignment without role assignment: If you have not selected a role, check the check boxes to enable the appropriate rights. At this point, assign your desired rights. Click Continue. 4. The Group memberships tab is displayed. Assign the new user to the Service participant group. Click Continue. Entry ID: 109479578, V1.0, 09/2015 29

Siemens AG 2015 All rights reserved 5. The next step is to define the password for the new user. The password must be at least 8 characters long and include at least one special character, upper/lower case letters and numbers. You will need this password later when configuring the tablet (see chapter 2.4.2). Select Finish to complete the user creation process. Note: The new user can change the assigned password later. Result The MobileService user has been created and appears as a new user. Entry ID: 109479578, V1.0, 09/2015 30

Siemens AG 2015 All rights reserved Defining communication relationships To enable the participant groups to communicate with each other, communication relationships are required. A communication relationship can be created for each direction. In this configuration example, communication only takes place from the Service group to the Station group. Communication in the opposite direction is not possible. To enable this, perform the following steps: 1. In the navigation pane, click Remote connections > Participant groups. The content pane lists the participant groups that have already been created. In the Actions column, Service, click the arrow icon. 2. The Destination groups page opens. Check Station and click Save. 3. Click Exit dialog. Result Now the participants of the Service group can communicate with the participants of the Station group not vice versa. Entry ID: 109479578, V1.0, 09/2015 31

Siemens AG 2015 All rights reserved 2.2.2 Exporting certificates and user configuration Certificate for the SCALANCE S615 The secure OpenVPN connection of this example uses the CA certificate for authentication. It must be exported from the SINEMA Remote Connect Server as it is required for configuring the SCALANCE S615. 1. In the navigation pane, click Security > Certificates. In Actions, click the appropriate icon to export the certificate. 2. Save the certificate to a local directory on the PC. Entry ID: 109479578, V1.0, 09/2015 32

Siemens AG 2015 All rights reserved User configuration for service technician (tablet) Creating a user automatically generates a configuration file with the *.ovpn extension. The file contains different parameters that are necessary for a connection to the server. The file must be loaded to the participant in the remote network that establishes a VPN connection to the SINEMA Remote Connect Server. 1. Log off of Web Based Management as the administrator and log back on with the new user data you have just created. 2. In the navigation pane, click My account > User certificate. Go to the Exports tab. 3. Click the appropriate format to load all the displayed certificates to a local directory on your PC. The certificates include: a. PKCS#12: Container in Personal Information Exchange format (PFX). b. PEM: Certificate and key as Base64-coded ASCII text. c. OVPN: OpenVPN configuration for user. Result All required certificates have been saved in the local directory. Entry ID: 109479578, V1.0, 09/2015 33

Siemens AG 2015 All rights reserved 2.3 Setting up the remote connection on the S615 Successful establishment of the VPN tunnel between the SCALANCE S615 and the SINEMA Remote Connect Server requires the following configuration steps: Enable the connection between the VLANs. Load the certificate to the device. Configure the VPN connection. Opening Web Based Management Connect the PC to a LAN port of the SCALANCE S615 (e.g., port 2) and use address https://192.168.100.1 to open Web Based Management. Log in with the admin user and the appropriate password. 2.3.1 Enabling access to the SINEMA Remote Connect Server As a public network is between the station and the control center and the IP subnets differ, you have to create an appropriate route. In the navigation pane, click Layer 3 > Routes and configure the route to the router with the following settings: Destination Network: 0.0.0.0 (all IP addresses) Subnet Mask: 0.0.0.0 Gateway: LAN IP address of the router connected to WAN port 5. Entry ID: 109479578, V1.0, 09/2015 34

Siemens AG 2015 All rights reserved 2.3.2 Loading the certificate The secure OpenVPN connection of this example uses the CA certificate for authentication. This certificate was exported from the SINEMA Remote Connect Server and must now be loaded to the SCALANCE S615. With this server certificate, the SCALANCE verifies the SINEMA Remote Connect Server when initializing the VPN tunnel. 1. In the navigation pane, click System > Load & Save and in the content pane, click the HTTP tab. In X509Cert, click the Load button. 2. The dialog for uploading a file opens. Navigate to the exported server certificate. In the dialog, click the Open button. The file is loaded to the device. After successful loading, confirm the next dialog with OK. Result The certificates have been loaded. The certificates are displayed in Security > Certificates. The loaded certificates must have the valid status. Entry ID: 109479578, V1.0, 09/2015 35

Siemens AG 2015 All rights reserved 2.3.3 Configuring the VPN connection The use of a valid KEY-PLUG activates the auto-configuration interface and enables easy connection configuration to SINEMA Remote Connect. 1. In the navigation pane, click System > SINEMA RC. In SINEMA RC Address, enter the IP address of the SINEMA Remote Connect Server. Note: If the SINEMA Remote Connect Server can only be accessed via a public network, enter the router s static WAN IP address in this field. In Device ID, enter the device ID value assigned to the SCALANCE S615 in the SINEMA Remote Connect Server (see chapter 2.2.1). In Device Password, enter the password you have configured for access (see chapter 2.2.1). Check Auto Firewall / NAT Rules to automatically create the appropriate NAT and firewall rules. In Verification Type, select CA Certificate. Entry ID: 109479578, V1.0, 09/2015 36

Siemens AG 2015 All rights reserved In CA Certificate, select the loaded server certificate. Entry ID: 109479578, V1.0, 09/2015 37

Siemens AG 2015 All rights reserved 2. Check Enable SINEMA RC and click Set Values. Entry ID: 109479578, V1.0, 09/2015 38

Siemens AG 2015 All rights reserved Result The device establishes an OpenVPN tunnel to the SINEMA Remote Connect Server. In WBM, Information > SINEMA RC allows you to check whether the connection has been successfully established. Entry ID: 109479578, V1.0, 09/2015 39

Siemens AG 2015 All rights reserved 2.4 Setting up the remote connection on the tablet 2.4.1 Modifying the.ovpn configuration file Now the.ovpn file is modified for use with the OpenVPN Connect app. 1. Open the MobileService.ovpn and MobileService@5.1.pem files with an editor (e.g., Notepad++). Entry ID: 109479578, V1.0, 09/2015 40

Siemens AG 2015 All rights reserved 2. Remove the pkcs12 certificate from the MobileService.ovpn file. 3. Insert the <ca> and </ca> tags instead. 4. Copy the ca certificate from the MobileService@5.1.pem file to the clipboard. Note: The ca certificate is the last certificate in the MobileService@5.1.pem file. Entry ID: 109479578, V1.0, 09/2015 41

Siemens AG 2015 All rights reserved 5. Paste the clipboard contents between the just created <ca> and </ca> tags of the MobileService.ovpn file. Entry ID: 109479578, V1.0, 09/2015 42

Siemens AG 2015 All rights reserved 6. Save the modifications in the MobileService.ovpn file. Entry ID: 109479578, V1.0, 09/2015 43

Siemens AG 2015 All rights reserved 2.4.2 Transferring the configuration data Remote access between the tablet and the SINEMA Remote Connect Server is protected by an OpenVPN connection. The OpenVPN Connect app installed on the tablet is the initiator of the connection. Open the app on your tablet. The.p12 certificate and the modified configuration file must be transferred to the tablet. The OpenVPN Connect app offers the following options: Import via an OpenVPN Access Server. Data synchronization via itunes. Transfer by email; in this case, ensure a secure transfer, for example, using appropriate encryption. 1. Import the required files, for example, via itunes. MobileService@5.1.p12 MobileService.ovpn 2. When you open the MobileService.ovpn file, you will be asked if you want to open it using the app. Confirm this dialog box. The OpenVPN Connect app offers you the new configuration and allows you to apply it. Click the green plus icon. Entry ID: 109479578, V1.0, 09/2015 44

Siemens AG 2015 All rights reserved 3. The profile opens. Installing the certificate The participants are authenticated by the P12 certificate. This certificate must be installed on the tablet. 1. Select the MobileService@5.1.p12 certificate. 2. The installation dialog opens. Tap Install. 3. Tap Install again to confirm the warning. Entry ID: 109479578, V1.0, 09/2015 45

Siemens AG 2015 All rights reserved 4. Tap Install again to start the installation. 5. The password for the certificate is required. In the appropriate field, enter the password you have defined for the new user in the SINEMA Remote Connect Server (see chapter 0). Tap Next. Entry ID: 109479578, V1.0, 09/2015 46

Siemens AG 2015 All rights reserved 6. Your installed certificate is displayed. Tap Done. 7. The.p12 certificate has been installed and can now be used. Entry ID: 109479578, V1.0, 09/2015 47

Siemens AG 2015 All rights reserved Setting up the VPN connection 1. Open the OpenVPN Connect app and the newly imported profile. To assign the just installed certificate to this profile, click None selected in Certificate. 2. Select the required certificate and return to OpenVPN. 3. The configuration of the OpenVPN connection is now complete. Entry ID: 109479578, V1.0, 09/2015 48

Siemens AG 2015 All rights reserved 2.4.3 Establishing the VPN connection When all the components have been configured, you can initialize the VPN tunnel between the tablet ( OpenVPN Connect app) and the SINEMA Remote Connect Server. To do this, move the Connection button to the right. Once the connection has been established, the status is displayed as Connected. Result Now you can use the tablet to open the SINEMA Remote Connect Server s Web Based Management and log in as the MobileService user. Depending on the assigned rights, you now have different remote access options. Entry ID: 109479578, V1.0, 09/2015 49

Siemens AG 2015 All rights reserved 3 Testing the Tunnel Function 3 Testing the Tunnel Function Chapter 2 completes the commissioning of the configuration and the SCALANCE S615 and the tablet have each established a VPN tunnel to the SINEMA Remote Connect Server for secure communication. The SINEMA Remote Connect Server interconnects these tunnels according to the configuration. By defining the communication relationships and rights, the service technician now has the option to access the devices behind the SCALANCE S615 (not vice versa) using the tablet. You can test the established tunnel connection, for example, by opening the internal web page of a PROFINET CPU in the LAN of the SCALANCE S615. 4 History Table 4-1 Version Date Modifications V1.0 09/2015 First version Entry ID: 109479578, V1.0, 09/2015 50