<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://phobos.martem.ee/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Igor</id>
	<title>Phobos Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://phobos.martem.ee/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Igor"/>
	<link rel="alternate" type="text/html" href="https://phobos.martem.ee/wiki/Special:Contributions/Igor"/>
	<updated>2026-04-22T05:42:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=RTU_client_server_communication&amp;diff=2239</id>
		<title>RTU client server communication</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=RTU_client_server_communication&amp;diff=2239"/>
		<updated>2019-06-04T11:15:27Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* IEC 101UB Serial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Kasutaja:MarkTomm|MarkTomm]] 25. september 2017, kell 16:05 (EEST)&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
&lt;br /&gt;
The IEC 104 TCP was documented on 25.09.2017 when there was an issue with connection. GWM iec 104 server closed the connection every ~20 seconds because it was 101-to-104 with GWMIO and GWMIO was disconnected.&lt;br /&gt;
&lt;br /&gt;
== IEC 104 TCP ==&lt;br /&gt;
&lt;br /&gt;
=== Client log when server disconnects ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-25 15:48:44.975 [INFO] Gateway.Port16.port - Close connection, connection reset by peer&lt;br /&gt;
2017-09-25 15:48:44.977 [DEBUG] Gateway.Port16.link - CommunicationBad&lt;br /&gt;
2017-09-25 15:48:44.977 [ERROR] Gateway.Port16.port - Request disconnect, no connection&lt;br /&gt;
2017-09-25 15:48:44.977 [ERROR] Gateway.Port16 - Timeout, suppressing following timeout messages!&lt;br /&gt;
2017-09-25 15:48:44.997 [DEBUG] Gateway.Port16 - StatusDi: no connection&lt;br /&gt;
2017-09-25 15:48:45.000 [ERROR] Gateway.Port16 - Remove from polling&lt;br /&gt;
2017-09-25 15:48:45.000 [INFO] Gateway.Port16 - Reset communication&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Client log when it connects ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-25 15:48:45.980 [INFO] Gateway.Port16.port - Connecting to 10.0.0.173:2404&lt;br /&gt;
2017-09-25 15:48:45.982 [INFO] Gateway.Port16.port - Connected to 10.0.0.173:2404&lt;br /&gt;
2017-09-25 15:48:45.982 [TRACE] Gateway.Port16.port - Clear communication buffers&lt;br /&gt;
2017-09-25 15:48:45.982 [DEBUG] Gateway.Port16 - Port open!&lt;br /&gt;
2017-09-25 15:48:45.982 [DEBUG] Gateway.Port16 - Retry/Establish communication&lt;br /&gt;
2017-09-25 15:48:45.983 [INFO] Gateway.Port16 - Enable polling&lt;br /&gt;
2017-09-25 15:48:45.983 [INFO] Gateway.Port16 - Reset communication done&lt;br /&gt;
2017-09-25 15:48:45.983 [TRACE] Gateway.Port16.port.link - Port connected&lt;br /&gt;
2017-09-25 15:48:46.003 [DEBUG] Gateway.Port16.port.write.link - UFormat: STARTDT_ACT&lt;br /&gt;
2017-09-25 15:48:46.009 [TRACE] Gateway.Port16.port.write -  68 04 07 00 00 00&lt;br /&gt;
2017-09-25 15:48:46.011 [TRACE] Gateway.Port16.port.read -  68 04 0B 00 00 00&lt;br /&gt;
2017-09-25 15:48:46.012 [DEBUG] Gateway.Port16.port.read.link - UFormat: STARTDT_CON&lt;br /&gt;
2017-09-25 15:48:46.012 [DEBUG] Gateway.Port16.link - CommunicationOk&lt;br /&gt;
2017-09-25 15:48:46.012 [TRACE] Gateway.Port16 - Status DI needs updating!&lt;br /&gt;
2017-09-25 15:48:46.012 [DEBUG] Gateway.Port16 - StatusDi: connected&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Server log when it disconnects ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-01 15:56:48.669 [DEBUG] Gateway.104port.link - CommunicationBad&lt;br /&gt;
2017-09-01 15:56:48.669 [ERROR] Gateway.104port.port - Request disconnect, subdevice removed from polling&lt;br /&gt;
2017-09-01 15:56:48.670 [INFO] Gateway.104port.port - Close connection, Force disconnect&lt;br /&gt;
2017-09-01 15:56:48.670 [ERROR] Gateway.104port - Timeout, suppressing following timeout messages!&lt;br /&gt;
2017-09-01 15:56:49.001 [DEBUG] Gateway.104port.db - Time cn (11) event: 57409 time: 2017-Sep-01 15:56:49.000063, buffered&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Server log when client connects after reset ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-01 16:09:40.069 [TRACE] Gateway.104port.port - Clear communication buffers&lt;br /&gt;
2017-09-01 16:09:40.070 [INFO] Gateway.104port.port - Incoming connection from 10.0.0.231 established.&lt;br /&gt;
2017-09-01 16:09:40.070 [TRACE] Gateway.104port.port.link - Port connected&lt;br /&gt;
2017-09-01 16:09:40.070 [DEBUG] Gateway.104port - Port open!&lt;br /&gt;
2017-09-01 16:09:40.070 [DEBUG] Gateway.104port - Retry/Establish communication&lt;br /&gt;
2017-09-01 16:09:40.070 [INFO] Gateway.104port - Enable polling&lt;br /&gt;
2017-09-01 16:09:40.070 [INFO] Gateway.104port - Reset communication&lt;br /&gt;
2017-09-01 16:09:40.071 [INFO] Gateway.104port - Reset communication done&lt;br /&gt;
2017-09-01 16:09:40.097 [TRACE] Gateway.104port.port.read -  68 04 07 00 00 00&lt;br /&gt;
2017-09-01 16:09:40.097 [DEBUG] Gateway.104port.port.read.link - UFormat: STARTDT_ACT&lt;br /&gt;
2017-09-01 16:09:40.098 [TRACE] Gateway.104port.link - Received U format message with &amp;quot;Start Data Transfer Activation&amp;quot; from master. Reissue &amp;quot;Port connected&amp;quot; to port buffer. This will clear buffers counters and timers.&lt;br /&gt;
2017-09-01 16:09:40.098 [TRACE] Gateway.104port.port.link - Port connected&lt;br /&gt;
2017-09-01 16:09:40.098 [DEBUG] Gateway.104port.port.write.link - UFormat: STARTDT_CON&lt;br /&gt;
2017-09-01 16:09:40.098 [DEBUG] Gateway.104port.link - CommunicationOk&lt;br /&gt;
2017-09-01 16:09:40.098 [DEBUG] Gateway.104port - StatusDi: connected&lt;br /&gt;
2017-09-01 16:09:40.098 [INFO] Gateway.104port - Connected&lt;br /&gt;
2017-09-01 16:09:40.098 [INFO] Gateway.104port - Refresh all values&lt;br /&gt;
2017-09-01 16:11:46.093 [TRACE] Gateway.104port.port.write -  68 04 0B 00 00 00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Server log when client reconnects after sudden disconnect ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-01 15:56:49.675 [TRACE] Gateway.104port.port - Clear communication buffers&lt;br /&gt;
2017-09-01 15:56:49.676 [DEBUG] Gateway.104port - Port open!&lt;br /&gt;
2017-09-01 15:56:49.676 [DEBUG] Gateway.104port - Retry/Establish communication&lt;br /&gt;
2017-09-01 15:56:49.676 [INFO] Gateway.104port - Enable polling&lt;br /&gt;
2017-09-01 15:56:49.676 [INFO] Gateway.104port - Reset communication&lt;br /&gt;
2017-09-01 15:56:49.676 [INFO] Gateway.104port - Reset communication done&lt;br /&gt;
2017-09-01 15:56:49.676 [TRACE] Gateway.104port.port.link - Port connected&lt;br /&gt;
2017-09-01 15:56:49.677 [INFO] Gateway.104port.port - Incoming connection from 10.0.0.231 established.&lt;br /&gt;
2017-09-01 15:56:49.703 [TRACE] Gateway.104port.port.read -  68 04 07 00 00 00&lt;br /&gt;
2017-09-01 15:56:49.703 [DEBUG] Gateway.104port.port.read.link - UFormat: STARTDT_ACT&lt;br /&gt;
2017-09-01 15:56:49.703 [TRACE] Gateway.104port.link - Received U format message with &amp;quot;Start Data Transfer Activation&amp;quot; from master. Reissue &amp;quot;Port connected&amp;quot; to port buffer. This will clear buffers counters and timers.&lt;br /&gt;
2017-09-01 15:56:49.703 [TRACE] Gateway.104port.port.link - Port connected&lt;br /&gt;
2017-09-01 15:56:49.703 [DEBUG] Gateway.104port.port.write.link - UFormat: STARTDT_CON&lt;br /&gt;
2017-09-01 15:56:49.703 [DEBUG] Gateway.104port.link - CommunicationOk&lt;br /&gt;
2017-09-01 15:56:49.704 [DEBUG] Gateway.104port - StatusDi: connected&lt;br /&gt;
2017-09-01 15:56:49.704 [TRACE] Gateway.104port.port.write -  68 04 0B 00 00 00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Commands =&lt;br /&gt;
&lt;br /&gt;
== IEC 101UB Serial ==&lt;br /&gt;
&lt;br /&gt;
=== IEC 101UB Serial SCADA CMD (Select &amp;amp; Execute) to IEC 101UB IED ===&lt;br /&gt;
&lt;br /&gt;
Port6 -  IEC 101UB Scada&lt;br /&gt;
&lt;br /&gt;
DO5T - IED which recv cmd&lt;br /&gt;
&lt;br /&gt;
DI24T - other IED not used in this example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2017-09-26 16:15:28.120 [TRACE] telem-gw6e.Port6.port.read -  68 0A 0A 68 73 01 2D&lt;br /&gt;
2017-09-26 16:15:28.136 [TRACE] telem-gw6e.Port6.port.read -  01 06 01 00 C9 00 81 F3 16&lt;br /&gt;
2017-09-26 16:15:28.137 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] RecvVarLenFrame CTRL_FCV(16) CTRL_FCB(32) CTRL_FN(3) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.137 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(0) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.137 [INFO] telem-gw6e.Port6.db - DO1 (201) control: 2 flags: Select Command Activation  time: 2017-Sep-26 16:15:28.137173, recv&lt;br /&gt;
2017-09-26 16:15:28.137 [DEBUG] Gateway.Filter.Update - [DO_5_1_1_filter] DO_1_1_value = 2 flags: Select Activation Select Command Activation  time: 2017-Sep-26 13:15:28.137173&lt;br /&gt;
2017-09-26 16:15:28.137 [TRACE] Gateway.Filter.AddToBuffer - [DO_5_1_1_filter] DO_1_1_buf &amp;lt;&amp;lt; 2 flags: Select Activation Confirmation Select Command Activation  time: 2017-Sep-26 13:15:28.137173&lt;br /&gt;
2017-09-26 16:15:28.137 [DEBUG] telem-gw6e.Port5.DO5T.db - DO1 (1) event: 2 flags: Select Command Activation  time: 2017-Sep-26 16:15:28.137173, buffered&lt;br /&gt;
2017-09-26 16:15:28.241 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(0) CTRL_FN(CTRL_REQUEST_CLASS_2 - 11) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.241 [TRACE] telem-gw6e.Port5.port.write -  10 5B 01 5C 16&lt;br /&gt;
2017-09-26 16:15:28.258 [TRACE] telem-gw6e.Port5.port.read -  10 09 01&lt;br /&gt;
2017-09-26 16:15:28.274 [TRACE] telem-gw6e.Port5.port.read -  0A 16&lt;br /&gt;
2017-09-26 16:15:28.274 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(0) CTRL_FN(CTRL_NO_DATA - 9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.274 [INFO] telem-gw6e.Port5.DO5T.db - DO1 (1) control: 2 flags: Select Command Activation  time: 2017-Sep-26 16:15:28.137173, sent&lt;br /&gt;
2017-09-26 16:15:28.274 [TRACE] IEC.setEvent - [Core -&amp;gt; Prot] (Input Events) add event EVENTCODE_DIGITAL_OUTPUT_COMMAND&lt;br /&gt;
2017-09-26 16:15:28.437 [TRACE] telem-gw6e.Port6.port.write -  10 00 01 01 16&lt;br /&gt;
2017-09-26 16:15:28.568 [TRACE] telem-gw6e.Port6.port.read -  10 5B 01 5C&lt;br /&gt;
2017-09-26 16:15:28.575 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 1&lt;br /&gt;
2017-09-26 16:15:28.575 [TRACE] telem-gw6e.Port5.ControlStateLogger - SELECT 1&lt;br /&gt;
2017-09-26 16:15:28.576 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] SendVarLenFrame CTRL_FCV(1) CTRL_FCB(1) CTRL_FN(CTRL_USER_DATA - 3) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.576 [TRACE] telem-gw6e.Port5.port.write -  68 0A 0A 68 73 03 2E 01 06 03 00 01 00 82 31 16&lt;br /&gt;
2017-09-26 16:15:28.584 [TRACE] telem-gw6e.Port6.port.read -  16&lt;br /&gt;
2017-09-26 16:15:28.584 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 2 data available: no&lt;br /&gt;
2017-09-26 16:15:28.584 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.610 [TRACE] telem-gw6e.Port5.port.read -  10 20 03 23 16&lt;br /&gt;
2017-09-26 16:15:28.610 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(1) CTRL_FN(CTRL_ACK - 0) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.884 [TRACE] telem-gw6e.Port6.port.write -  10 09 01 0A 16&lt;br /&gt;
2017-09-26 16:15:28.912 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(1) CTRL_FN(CTRL_REQUEST_CLASS_2 - 11) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:28.912 [TRACE] telem-gw6e.Port5.port.write -  10 7B 01 7C 16&lt;br /&gt;
2017-09-26 16:15:28.930 [TRACE] telem-gw6e.Port5.port.read -  10 09 01 0A&lt;br /&gt;
2017-09-26 16:15:28.946 [TRACE] telem-gw6e.Port5.port.read -  16&lt;br /&gt;
2017-09-26 16:15:28.946 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(0) CTRL_FN(CTRL_NO_DATA - 9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.016 [TRACE] telem-gw6e.Port6.port.read -  68&lt;br /&gt;
2017-09-26 16:15:29.032 [TRACE] telem-gw6e.Port6.port.read -  0A 0A 68 73 01 2D 01 06 01 00 C9 00 01 73 16&lt;br /&gt;
2017-09-26 16:15:29.032 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] RecvVarLenFrame CTRL_FCV(16) CTRL_FCB(32) CTRL_FN(3) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.032 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(0) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.032 [INFO] telem-gw6e.Port6.db - DO1 (201) control: 2 flags: Activation  time: 2017-Sep-26 16:15:29.032667, recv&lt;br /&gt;
2017-09-26 16:15:29.032 [DEBUG] Gateway.Filter.Update - [DO_5_1_1_filter] DO_1_1_value = 2 flags: Execute Activation Activation  time: 2017-Sep-26 13:15:29.032667&lt;br /&gt;
2017-09-26 16:15:29.032 [TRACE] Gateway.Filter.AddToBuffer - [DO_5_1_1_filter] DO_1_1_buf &amp;lt;&amp;lt; 2 flags: Execute Activation Confirmation Activation  time: 2017-Sep-26 13:15:29.032667&lt;br /&gt;
2017-09-26 16:15:29.032 [DEBUG] telem-gw6e.Port5.DO5T.db - DO1 (1) event: 2 flags: Activation  time: 2017-Sep-26 16:15:29.032667, buffered&lt;br /&gt;
2017-09-26 16:15:29.248 [INFO] telem-gw6e.Port5.DO5T.db - DO1 (1) control: 2 flags: Activation  time: 2017-Sep-26 16:15:29.032667, sent&lt;br /&gt;
2017-09-26 16:15:29.248 [TRACE] IEC.setEvent - [Core -&amp;gt; Prot] (Input Events) add event EVENTCODE_DIGITAL_OUTPUT_COMMAND&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 1&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.ControlStateLogger - ACTIVATION 1&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 1&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.ControlStateLogger - RESPONSE 1&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] SendVarLenFrame CTRL_FCV(1) CTRL_FCB(0) CTRL_FN(CTRL_USER_DATA - 3) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.250 [TRACE] telem-gw6e.Port5.port.write -  68 0A 0A 68 53 03 2E 01 06 03 00 01 00 02 91 16&lt;br /&gt;
2017-09-26 16:15:29.281 [TRACE] telem-gw6e.Port5.port.read -  10 20 03 23 16&lt;br /&gt;
2017-09-26 16:15:29.281 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(1) CTRL_FN(CTRL_ACK - 0) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.332 [TRACE] telem-gw6e.Port6.port.write -  10 00 01 01 16&lt;br /&gt;
2017-09-26 16:15:29.448 [TRACE] telem-gw6e.Port6.port.read -  10 5B 01 5C 16&lt;br /&gt;
2017-09-26 16:15:29.448 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 2 data available: no&lt;br /&gt;
2017-09-26 16:15:29.448 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.584 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(0) CTRL_FN(CTRL_REQUEST_CLASS_2 - 11) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.584 [TRACE] telem-gw6e.Port5.port.write -  10 5B 01 5C 16&lt;br /&gt;
2017-09-26 16:15:29.602 [TRACE] telem-gw6e.Port5.port.read -  10 09 01 0A&lt;br /&gt;
2017-09-26 16:15:29.618 [TRACE] telem-gw6e.Port5.port.read -  16&lt;br /&gt;
2017-09-26 16:15:29.618 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(0) CTRL_FN(CTRL_NO_DATA - 9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.748 [TRACE] telem-gw6e.Port6.port.write -  10 09 01 0A 16&lt;br /&gt;
2017-09-26 16:15:29.863 [TRACE] telem-gw6e.Port6.port.read -  10 7B 01 7C 16&lt;br /&gt;
2017-09-26 16:15:29.863 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 2 data available: no&lt;br /&gt;
2017-09-26 16:15:29.863 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.922 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(1) CTRL_FN(CTRL_REQUEST_CLASS_1 - 10) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.922 [TRACE] telem-gw6e.Port5.port.write -  10 7A 03 7D 16&lt;br /&gt;
2017-09-26 16:15:29.938 [TRACE] telem-gw6e.Port5.port.read -  68&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] telem-gw6e.Port5.port.read -  0A 0A 68 28 03 2E 01 07 03 00 01 00 82 E7 16&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] RecvVarLenFrame CTRL_PRM(0) CTRL_ACD(1) CTRL_FN(CTRL_DATA - 8) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] telem-gw6e.Port5.ControlStateLogger - found SELECT obj_addr = 1 obj_id = 0&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 0&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] telem-gw6e.Port5.ControlStateLogger - SELECT 0&lt;br /&gt;
2017-09-26 16:15:29.954 [INFO] telem-gw6e.Port5.DO5T.db - DO1 (1) response: 2 flags: Activation  time: 2017-Sep-26 16:15:29.032667, recv&lt;br /&gt;
2017-09-26 16:15:29.954 [TRACE] Gateway.Filter.AddToBuffer - [DO_5_1_1_resp_filter] DO_5_1_1_buf &amp;lt;&amp;lt; 2 flags: Execute Activation OK GwTime Activation  time: 2017-Sep-26 13:15:29.954604&lt;br /&gt;
2017-09-26 16:15:29.954 [DEBUG] telem-gw6e.Port6.db - DO1 (201) event: 2 flags: GwTime Activation  time: 2017-Sep-26 16:15:29.954604, buffered&lt;br /&gt;
2017-09-26 16:15:30.163 [TRACE] telem-gw6e.Port6.port.write -  10 09 01 0A 16&lt;br /&gt;
2017-09-26 16:15:30.257 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(1) CTRL_FN(CTRL_REQUEST_CLASS_2 - 11) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.257 [TRACE] telem-gw6e.Port5.port.write -  10 7B 01 7C 16&lt;br /&gt;
2017-09-26 16:15:30.273 [TRACE] telem-gw6e.Port5.port.read -  10 09 01&lt;br /&gt;
2017-09-26 16:15:30.289 [TRACE] telem-gw6e.Port5.port.read -  0A 16&lt;br /&gt;
2017-09-26 16:15:30.289 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(0) CTRL_FN(CTRL_NO_DATA - 9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.295 [TRACE] telem-gw6e.Port6.port.read -  10 5B 01 5C 16&lt;br /&gt;
2017-09-26 16:15:30.295 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 2 data available: no&lt;br /&gt;
2017-09-26 16:15:30.295 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 1 data state: digital output response&lt;br /&gt;
2017-09-26 16:15:30.295 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(1) CTRL_FN(9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.593 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(0) CTRL_FN(CTRL_REQUEST_CLASS_1 - 10) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.593 [TRACE] telem-gw6e.Port5.port.write -  10 5A 03 5D 16&lt;br /&gt;
2017-09-26 16:15:30.595 [TRACE] telem-gw6e.Port6.port.write -  10 29 01 2A 16&lt;br /&gt;
2017-09-26 16:15:30.609 [TRACE] telem-gw6e.Port5.port.read -  68&lt;br /&gt;
2017-09-26 16:15:30.625 [TRACE] telem-gw6e.Port5.port.read -  0A 0A 68 28 03 2E 01 07 03 00 01 00 02 67 16&lt;br /&gt;
2017-09-26 16:15:30.626 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] RecvVarLenFrame CTRL_PRM(0) CTRL_ACD(1) CTRL_FN(CTRL_DATA - 8) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.626 [TRACE] telem-gw6e.Port5.ControlStateLogger - found ACTIVATION obj_addr = 1 obj_id = 0&lt;br /&gt;
2017-09-26 16:15:30.626 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 0&lt;br /&gt;
2017-09-26 16:15:30.626 [TRACE] telem-gw6e.Port5.ControlStateLogger - ACTIVATION 0&lt;br /&gt;
2017-09-26 16:15:30.727 [TRACE] telem-gw6e.Port6.port.read -  10 7A 01 7B&lt;br /&gt;
2017-09-26 16:15:30.743 [TRACE] telem-gw6e.Port6.port.read -  16&lt;br /&gt;
2017-09-26 16:15:30.744 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 1 data state: digital output response&lt;br /&gt;
2017-09-26 16:15:30.744 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 1 data available: yes&lt;br /&gt;
2017-09-26 16:15:30.746 [INFO] telem-gw6e.Port6.db - DO1 (201) response: 2 flags: GwTime Activation  time: 2017-Sep-26 16:15:29.954604, sent&lt;br /&gt;
2017-09-26 16:15:30.746 [TRACE] IEC.setEvent - [Core -&amp;gt; Prot] (Input Events) add event EVENTCODE_DIGITAL_OUTPUT_RESPONSE&lt;br /&gt;
2017-09-26 16:15:30.747 [TRACE] telem-gw6e.Port6.link - mSendBuffer.Count() 8 req1:1 req2:0&lt;br /&gt;
2017-09-26 16:15:30.747 [TRACE] telem-gw6e.Port6.link - sending mSendBuffer.Count() 8 req1:1 req2:0&lt;br /&gt;
2017-09-26 16:15:30.747 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendVarLenFrame CTRL_ACD(1) CTRL_FN(8) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.928 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(0) CTRL_FN(CTRL_REQUEST_CLASS_2 - 11) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:30.928 [TRACE] telem-gw6e.Port5.port.write -  10 5B 01 5C 16&lt;br /&gt;
2017-09-26 16:15:30.945 [TRACE] telem-gw6e.Port5.port.read -  10 09 01 0A&lt;br /&gt;
2017-09-26 16:15:30.961 [TRACE] telem-gw6e.Port5.port.read -  16&lt;br /&gt;
2017-09-26 16:15:30.961 [TRACE] telem-gw6e.Port5.DI24T.link - [IEC60870 101 UB Master Link] RecvFixLenFrame. CTRL_ACD(0) CTRL_FN(CTRL_NO_DATA - 9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:31.047 [TRACE] telem-gw6e.Port6.link - mSendBuffer.Count() 0 req1:0 req2:0&lt;br /&gt;
2017-09-26 16:15:31.047 [TRACE] telem-gw6e.Port6.port.write -  68 0A 0A 68 28 01 2D 01 07 01 00 C9 00 01 29 16&lt;br /&gt;
2017-09-26 16:15:31.191 [TRACE] telem-gw6e.Port6.port.read -  10 5A 01 5B 16&lt;br /&gt;
2017-09-26 16:15:31.191 [TRACE] telem-gw6e.Port6 - [IEC60870 101 UB Data] class 1 data available: no&lt;br /&gt;
2017-09-26 16:15:31.191 [TRACE] telem-gw6e.Port6.link - [IEC60870 101 UB Slave Link] SendFixLenFrame CTRL_ACD(0) CTRL_FN(9) LINK_ADDR(1) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:31.264 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] SendFixedFrame CTRL_FCV(1) CTRL_FCB(1) CTRL_FN(CTRL_REQUEST_CLASS_1 - 10) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:31.264 [TRACE] telem-gw6e.Port5.port.write -  10 7A 03 7D 16&lt;br /&gt;
2017-09-26 16:15:31.281 [TRACE] telem-gw6e.Port5.port.read -  68&lt;br /&gt;
2017-09-26 16:15:31.297 [TRACE] telem-gw6e.Port5.port.read -  0A 0A 68 28 03 2E 01 0A 03 00 01 00 02 6A 16&lt;br /&gt;
2017-09-26 16:15:31.297 [TRACE] telem-gw6e.Port5.DO5T.link - [IEC60870 101 UB Master Link] RecvVarLenFrame CTRL_PRM(0) CTRL_ACD(1) CTRL_FN(CTRL_DATA - 8) LINK_ADDR(3) ADDR_LEN(1)&lt;br /&gt;
2017-09-26 16:15:31.297 [TRACE] telem-gw6e.Port5.ControlStateLogger - found RESPONSE obj_addr = 1 obj_id = 0&lt;br /&gt;
2017-09-26 16:15:31.297 [TRACE] telem-gw6e.Port5.ControlStateLogger - register obj_id: 0 arg: 0&lt;br /&gt;
2017-09-26 16:15:31.297 [TRACE] telem-gw6e.Port5.ControlStateLogger - RESPONSE 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
View in VINCI:&lt;br /&gt;
&lt;br /&gt;
[[Image:vincido.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2238</id>
		<title>TELEM-GW6 Manual</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2238"/>
		<updated>2019-06-04T11:15:05Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[[Image:Gw6e.jpg|center|thumb|1200px|TELEM-GW6e]]&lt;br /&gt;
Data Concentrator TELEM-GW6 (GW6-e) is designed for use in electrical networks as an communication concentrator.&amp;lt;br /&amp;gt;&lt;br /&gt;
Main applications of GW6 are:&amp;lt;br /&amp;gt;&lt;br /&gt;
*Data acquisition and control of regional and national electricity utilities in SCADA systems for remote control and substation automation.&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Creating transparent TCP/IP to serial channels for remote connections to various equipment (for remote handling of various equipment)&lt;br /&gt;
*Comprehensive integration of different devices&lt;br /&gt;
*Full scale data exchange between substation devices and substation control system including setting values, measurement values, registered fault parameter values, changes of state with associated time markings etc.&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
*Transparent TCP/IP connections via Ethernet and serial ports&lt;br /&gt;
*Various data exchange protocols via Ethernet and serial ports&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Automatic protocol conversion from IEC 60870-5-101 to IEC 60870-5-104 without description of data objects.&lt;br /&gt;
*Firewall functionality&lt;br /&gt;
*OpenVPN, IPsec, L2TP and SSH connections&lt;br /&gt;
*SNMP (Simple Network Management Protocol)&lt;br /&gt;
*SDN (Software Defined Networking), DPI (Deep Packet Inspection)&lt;br /&gt;
*Syslog&lt;br /&gt;
*Graphic Web Server&lt;br /&gt;
*A user-friendly configuration tool similar to Microsoft® Windows™&lt;br /&gt;
*Configurable remotely over communication line&lt;br /&gt;
*Configuration export to ASCII, CSV format files&lt;br /&gt;
*TELEM RTU devices can be remotely configured via TELEM-GW6&lt;br /&gt;
*Logical operations between digital and analog signals can be described&lt;br /&gt;
*PLC logic support, configuration tool with integrated PLC editor in compliance with IEC-61131-3 standard&lt;br /&gt;
*Data sending with time and quality stamp&lt;br /&gt;
*Console port&lt;br /&gt;
*Several time synchronization options (possible to synchronize from multiple control centers. GW6 is used to synchronize substation devices by protocol):&amp;lt;br /&amp;gt;&lt;br /&gt;
:*GPS input&lt;br /&gt;
:*NTP client and server&lt;br /&gt;
:*IEC 60870-5-101&lt;br /&gt;
:*IEC 60870-5-104&lt;br /&gt;
:*IEC 60870-5-103&lt;br /&gt;
*All ports are galvanically isolated from case and power circuit (except C1 and console port from power circuit)&lt;br /&gt;
*1-wire sensor port (up to 10 sensors) e.g. for temperature&lt;br /&gt;
*Real-time clock with back-up capacitor&lt;br /&gt;
*Internal fault relay contact (missing in card L version)&lt;br /&gt;
&lt;br /&gt;
== Technical Data ==&lt;br /&gt;
Data communication protocols&amp;lt;br /&amp;gt;&lt;br /&gt;
To higher level systems:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 60870-5-104&lt;br /&gt;
*IEC 60870-5-101 unbalanced and balanced,&lt;br /&gt;
To lower level devices:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 61850,&lt;br /&gt;
*IEC 60870-5-104,&lt;br /&gt;
*IEC 60870-5-103,&lt;br /&gt;
*IEC 60870-5-101 Unbalanced,&lt;br /&gt;
*Modbus-RTU,&lt;br /&gt;
*Modbus-TCP,&lt;br /&gt;
*IEC 62056-21 (IEC 1107),&lt;br /&gt;
*SPA-Bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Communication ports&amp;lt;br /&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
Communication ports may be freely configured for upper or lower level communication&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Base board&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*3 x Ethernet connection with RJ45 port&lt;br /&gt;
*1 x RS-232 serial connection with 4P4C port&lt;br /&gt;
*1 x Console mini USB port&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Card R&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x Fiber-optic connection with ST or Versatile link connectors&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors&lt;br /&gt;
*1 x RS-485 (2-wire) serial connection, galvanically isolated&lt;br /&gt;
*1 x Internal fault relay contact&lt;br /&gt;
&#039;&#039;&#039;Card L&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors, data and pulse&lt;br /&gt;
*2 x Optical LAN&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Expansion card 2&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*8 x RS-232 serial connections with RJ45 connectors with surge protection&lt;br /&gt;
*Secondary power supply&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Data communication parameters:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 start bit&lt;br /&gt;
*Odd, even or no parity&lt;br /&gt;
*Communication rates from 300 to 115200 bit/sec&lt;br /&gt;
&#039;&#039;&#039;Electrical characteristics of isolated input&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Dielectric withstand IEC 60255-5&lt;br /&gt;
*Withstand to static discharge IEC 61000-4-2, 15kV&lt;br /&gt;
*Withstand to surges, bursts IEC 61000-4-4, 61000-4-5, 2,5kV AC, 4kV DC&lt;br /&gt;
&#039;&#039;&#039;Mechanical parameters&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Degree of protection IP 31&lt;br /&gt;
*Dimensions (W x H x D) 108 x 114 x 166 (190 with protruding parts ) mm&lt;br /&gt;
*Ambient temperature in operation –30°C…+55°C&lt;br /&gt;
*Weight 1100 g&lt;br /&gt;
*Mounting DIN rail&lt;br /&gt;
&#039;&#039;&#039;Radio frequency compatibility&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*RF emission IEC 55022 Class A&lt;br /&gt;
*Immunity to RF fields IEC 61000-4-3, 61000-4-6&lt;br /&gt;
&#039;&#039;&#039;Power supply&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Supply voltage range 12 to 72 V DC&lt;br /&gt;
*Power consumption &amp;lt; 8 VA, &amp;lt; 25 VA with card L&lt;br /&gt;
&lt;br /&gt;
== Communication cables ==&lt;br /&gt;
[[Image:Kaablid1.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
[[Image:Kaablid2.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
&lt;br /&gt;
== Firmware update ==&lt;br /&gt;
NB! Before updating to new firmware read the setup from your device, and make a backup.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Loading firmware via SSH&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Copy the compressed (*.7z) firmware update file (provided by Martem AS) to your computer&lt;br /&gt;
*Set up SSH connection with GW6 if you have not done this before in this session or changed users. Login as martem. If you have not  changed the password then default password is provided by Martem AS&lt;br /&gt;
*Press the “Upd.” button next to SSH settings&lt;br /&gt;
*Press the pick button and select the copied update file (file will be automatically unpacked to temporary folder)&lt;br /&gt;
*Press the “Update” button, the update process starts&lt;br /&gt;
*Wait until the device resumes to its normal operation state (“Run” LED will start slow blinking again)&lt;br /&gt;
*Firmware update is complete. Check if firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Press “Get Result” button&lt;br /&gt;
*Check the state of installed files at the last part of the file. If the state of update files is OK - firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Loading firmware through Secure Digital (SD) Memory Card slot:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect Secure Digital (SD) Memory Card to your computer&lt;br /&gt;
*Extract the compressed firmware update file (provided by Martem AS) to your SD Memory Card&lt;br /&gt;
*Disconnect the card from your computer&lt;br /&gt;
*Insert the card to TELEM-GW6 SD Memory Card slot&lt;br /&gt;
	:* SD Memory Card slot is located at the back of the device&lt;br /&gt;
*Perform reset operation to TELEM-GW6 device&lt;br /&gt;
*Wait until the device resumes to it’s normal operation state&lt;br /&gt;
*Firmware update is complete. Remove the SD Memory Card and check if firmware update was successful&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect the SD Memory Card to your computer&lt;br /&gt;
*Open the folder you extracted earlier&lt;br /&gt;
*Check if the file “res.txt” is present and open it&lt;br /&gt;
*Check the state of installed files at the last part of the file&lt;br /&gt;
	:*If the state of update files is OK - firmware update was successful&lt;br /&gt;
&lt;br /&gt;
== Default setup, indication ==&lt;br /&gt;
&#039;&#039;&#039;RESET:&#039;&#039;&#039; Switch RESET to ON state and then back to OFF state for Reset operation&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;DFT. SET:&#039;&#039;&#039; To apply default setup:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Switch DFT. SET to ON state&lt;br /&gt;
:*Alert indication LED starts blinking within 5 seconds&lt;br /&gt;
:*Alert indication LED will blink for 2 seconds&lt;br /&gt;
# Switch DFT. SET back to OFF state when the alert indication LED is 	blinking to apply 	default setup&lt;br /&gt;
If DFT. SET is switched back to OFF state when the alert indication LED is not blinking, default setup will NOT be applied&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For operation&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED – Blinking green indicates that the program is running&amp;lt;br /&amp;gt;&lt;br /&gt;
Red LED – Failure&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For communication&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED at GPS port – blinking indicates the existence of GPS time synchronization.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If not stated otherwise on the individual pages of this document, AS Martem reserves the right to make modifications.&amp;lt;br /&amp;gt; &lt;br /&gt;
Although the contents of this publication have been checked for conformity with the hardware and software described, we cannot guarantee complete conformity since errors cannot be excluded. &amp;lt;br /&amp;gt;&lt;br /&gt;
The information provided in this manual is checked at regular intervals and any corrections that might become necessary are included in the next releases.&amp;lt;br /&amp;gt;&lt;br /&gt;
Any suggestions for improvement are welcome.&amp;lt;br /&amp;gt;&lt;br /&gt;
The contents of this manual are subject to change without prior notice.&amp;lt;br /&amp;gt;&lt;br /&gt;
Latest firmware, software and updates can be downloaded from: phobos.martem.ee/shr&amp;lt;br /&amp;gt;&lt;br /&gt;
More information about Martem devices can be found at phobos.martem.ee/wiki/Esileht&lt;br /&gt;
&lt;br /&gt;
== Block diagram ==&lt;br /&gt;
[[Media:Telem-GW6.pdf|TELEM-GW6]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Order code ==&lt;br /&gt;
TELEM GW6 has many hardware versions, versions are described with an order code.&amp;lt;br /&amp;gt;&lt;br /&gt;
User friendly configurator can be found:[http://phobos.martem.ee/order/ phobos.martem.ee/order/]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GW6-eXXXX-XXXX-CX&amp;lt;br /&amp;gt;&lt;br /&gt;
(e.g. GW6-e1112-R211-C0)&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Licence&#039;&#039;&#039;&lt;br /&gt;
*0 – NO IEC61850  &lt;br /&gt;
*1 – IEC61850&lt;br /&gt;
&#039;&#039;&#039;Processor&#039;&#039;&#039;&lt;br /&gt;
*1 – Base model&lt;br /&gt;
*2 – Custom model&lt;br /&gt;
&#039;&#039;&#039;Port C1&#039;&#039;&#039;&lt;br /&gt;
*1 – COM1 or GPS&lt;br /&gt;
*2 – ONE-wire input&lt;br /&gt;
&#039;&#039;&#039;GPS sync&#039;&#039;&#039;&lt;br /&gt;
*1 – From Port C1&lt;br /&gt;
*2 – GPS optical input&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&lt;br /&gt;
*R – Card R&lt;br /&gt;
*L – Card L&lt;br /&gt;
&#039;&#039;&#039;Port C2 conf.&#039;&#039;&#039;&lt;br /&gt;
*1 – 4-wire RS485&lt;br /&gt;
*2 – 2-wire RS485&lt;br /&gt;
*3 – RS422&lt;br /&gt;
&#039;&#039;&#039;GPS optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Port C3 optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Secondary power&#039;&#039;&#039;&lt;br /&gt;
*0 – Not Supported&lt;br /&gt;
*1 – Supported&lt;br /&gt;
&lt;br /&gt;
== Revision history ==&lt;br /&gt;
Rev 1/2014 	New version of manual (separate manuals for GW6 and GWS)&lt;br /&gt;
&lt;br /&gt;
Rev 2/2015 	Some errors corrected&lt;br /&gt;
&lt;br /&gt;
== Open-source software information ==&lt;br /&gt;
This device produced by Martem Ltd. includes open-source components. The most up to date info of exact software used by Martem’s build system and licensing info of used software can be found from http://phobos.martem.ee/shr/br-sources/&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2237</id>
		<title>TELEM-GW6 Manual</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2237"/>
		<updated>2019-06-04T11:14:47Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Block diagram */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[[image:Gw6e.jpg|center|thumb|1200px|TELEM-GW6e]]&lt;br /&gt;
Data Concentrator TELEM-GW6 (GW6-e) is designed for use in electrical networks as an communication concentrator.&amp;lt;br /&amp;gt;&lt;br /&gt;
Main applications of GW6 are:&amp;lt;br /&amp;gt;&lt;br /&gt;
*Data acquisition and control of regional and national electricity utilities in SCADA systems for remote control and substation automation.&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Creating transparent TCP/IP to serial channels for remote connections to various equipment (for remote handling of various equipment)&lt;br /&gt;
*Comprehensive integration of different devices&lt;br /&gt;
*Full scale data exchange between substation devices and substation control system including setting values, measurement values, registered fault parameter values, changes of state with associated time markings etc.&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
*Transparent TCP/IP connections via Ethernet and serial ports&lt;br /&gt;
*Various data exchange protocols via Ethernet and serial ports&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Automatic protocol conversion from IEC 60870-5-101 to IEC 60870-5-104 without description of data objects.&lt;br /&gt;
*Firewall functionality&lt;br /&gt;
*OpenVPN, IPsec, L2TP and SSH connections&lt;br /&gt;
*SNMP (Simple Network Management Protocol)&lt;br /&gt;
*SDN (Software Defined Networking), DPI (Deep Packet Inspection)&lt;br /&gt;
*Syslog&lt;br /&gt;
*Graphic Web Server&lt;br /&gt;
*A user-friendly configuration tool similar to Microsoft® Windows™&lt;br /&gt;
*Configurable remotely over communication line&lt;br /&gt;
*Configuration export to ASCII, CSV format files&lt;br /&gt;
*TELEM RTU devices can be remotely configured via TELEM-GW6&lt;br /&gt;
*Logical operations between digital and analog signals can be described&lt;br /&gt;
*PLC logic support, configuration tool with integrated PLC editor in compliance with IEC-61131-3 standard&lt;br /&gt;
*Data sending with time and quality stamp&lt;br /&gt;
*Console port&lt;br /&gt;
*Several time synchronization options (possible to synchronize from multiple control centers. GW6 is used to synchronize substation devices by protocol):&amp;lt;br /&amp;gt;&lt;br /&gt;
:*GPS input&lt;br /&gt;
:*NTP client and server&lt;br /&gt;
:*IEC 60870-5-101&lt;br /&gt;
:*IEC 60870-5-104&lt;br /&gt;
:*IEC 60870-5-103&lt;br /&gt;
*All ports are galvanically isolated from case and power circuit (except C1 and console port from power circuit)&lt;br /&gt;
*1-wire sensor port (up to 10 sensors) e.g. for temperature&lt;br /&gt;
*Real-time clock with back-up capacitor&lt;br /&gt;
*Internal fault relay contact (missing in card L version)&lt;br /&gt;
&lt;br /&gt;
== Technical Data ==&lt;br /&gt;
Data communication protocols&amp;lt;br /&amp;gt;&lt;br /&gt;
To higher level systems:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 60870-5-104&lt;br /&gt;
*IEC 60870-5-101 unbalanced and balanced,&lt;br /&gt;
To lower level devices:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 61850,&lt;br /&gt;
*IEC 60870-5-104,&lt;br /&gt;
*IEC 60870-5-103,&lt;br /&gt;
*IEC 60870-5-101 Unbalanced,&lt;br /&gt;
*Modbus-RTU,&lt;br /&gt;
*Modbus-TCP,&lt;br /&gt;
*IEC 62056-21 (IEC 1107),&lt;br /&gt;
*SPA-Bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Communication ports&amp;lt;br /&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
Communication ports may be freely configured for upper or lower level communication&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Base board&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*3 x Ethernet connection with RJ45 port&lt;br /&gt;
*1 x RS-232 serial connection with 4P4C port&lt;br /&gt;
*1 x Console mini USB port&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Card R&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x Fiber-optic connection with ST or Versatile link connectors&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors&lt;br /&gt;
*1 x RS-485 (2-wire) serial connection, galvanically isolated&lt;br /&gt;
*1 x Internal fault relay contact&lt;br /&gt;
&#039;&#039;&#039;Card L&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors, data and pulse&lt;br /&gt;
*2 x Optical LAN&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Expansion card 2&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*8 x RS-232 serial connections with RJ45 connectors with surge protection&lt;br /&gt;
*Secondary power supply&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Data communication parameters:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 start bit&lt;br /&gt;
*Odd, even or no parity&lt;br /&gt;
*Communication rates from 300 to 115200 bit/sec&lt;br /&gt;
&#039;&#039;&#039;Electrical characteristics of isolated input&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Dielectric withstand IEC 60255-5&lt;br /&gt;
*Withstand to static discharge IEC 61000-4-2, 15kV&lt;br /&gt;
*Withstand to surges, bursts IEC 61000-4-4, 61000-4-5, 2,5kV AC, 4kV DC&lt;br /&gt;
&#039;&#039;&#039;Mechanical parameters&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Degree of protection IP 31&lt;br /&gt;
*Dimensions (W x H x D) 108 x 114 x 166 (190 with protruding parts ) mm&lt;br /&gt;
*Ambient temperature in operation –30°C…+55°C&lt;br /&gt;
*Weight 1100 g&lt;br /&gt;
*Mounting DIN rail&lt;br /&gt;
&#039;&#039;&#039;Radio frequency compatibility&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*RF emission IEC 55022 Class A&lt;br /&gt;
*Immunity to RF fields IEC 61000-4-3, 61000-4-6&lt;br /&gt;
&#039;&#039;&#039;Power supply&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Supply voltage range 12 to 72 V DC&lt;br /&gt;
*Power consumption &amp;lt; 8 VA, &amp;lt; 25 VA with card L&lt;br /&gt;
&lt;br /&gt;
== Communication cables ==&lt;br /&gt;
[[Image:Kaablid1.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
[[Image:Kaablid2.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
&lt;br /&gt;
== Firmware update ==&lt;br /&gt;
NB! Before updating to new firmware read the setup from your device, and make a backup.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Loading firmware via SSH&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Copy the compressed (*.7z) firmware update file (provided by Martem AS) to your computer&lt;br /&gt;
*Set up SSH connection with GW6 if you have not done this before in this session or changed users. Login as martem. If you have not  changed the password then default password is provided by Martem AS&lt;br /&gt;
*Press the “Upd.” button next to SSH settings&lt;br /&gt;
*Press the pick button and select the copied update file (file will be automatically unpacked to temporary folder)&lt;br /&gt;
*Press the “Update” button, the update process starts&lt;br /&gt;
*Wait until the device resumes to its normal operation state (“Run” LED will start slow blinking again)&lt;br /&gt;
*Firmware update is complete. Check if firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Press “Get Result” button&lt;br /&gt;
*Check the state of installed files at the last part of the file. If the state of update files is OK - firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Loading firmware through Secure Digital (SD) Memory Card slot:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect Secure Digital (SD) Memory Card to your computer&lt;br /&gt;
*Extract the compressed firmware update file (provided by Martem AS) to your SD Memory Card&lt;br /&gt;
*Disconnect the card from your computer&lt;br /&gt;
*Insert the card to TELEM-GW6 SD Memory Card slot&lt;br /&gt;
	:* SD Memory Card slot is located at the back of the device&lt;br /&gt;
*Perform reset operation to TELEM-GW6 device&lt;br /&gt;
*Wait until the device resumes to it’s normal operation state&lt;br /&gt;
*Firmware update is complete. Remove the SD Memory Card and check if firmware update was successful&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect the SD Memory Card to your computer&lt;br /&gt;
*Open the folder you extracted earlier&lt;br /&gt;
*Check if the file “res.txt” is present and open it&lt;br /&gt;
*Check the state of installed files at the last part of the file&lt;br /&gt;
	:*If the state of update files is OK - firmware update was successful&lt;br /&gt;
&lt;br /&gt;
== Default setup, indication ==&lt;br /&gt;
&#039;&#039;&#039;RESET:&#039;&#039;&#039; Switch RESET to ON state and then back to OFF state for Reset operation&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;DFT. SET:&#039;&#039;&#039; To apply default setup:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Switch DFT. SET to ON state&lt;br /&gt;
:*Alert indication LED starts blinking within 5 seconds&lt;br /&gt;
:*Alert indication LED will blink for 2 seconds&lt;br /&gt;
# Switch DFT. SET back to OFF state when the alert indication LED is 	blinking to apply 	default setup&lt;br /&gt;
If DFT. SET is switched back to OFF state when the alert indication LED is not blinking, default setup will NOT be applied&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For operation&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED – Blinking green indicates that the program is running&amp;lt;br /&amp;gt;&lt;br /&gt;
Red LED – Failure&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For communication&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED at GPS port – blinking indicates the existence of GPS time synchronization.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If not stated otherwise on the individual pages of this document, AS Martem reserves the right to make modifications.&amp;lt;br /&amp;gt; &lt;br /&gt;
Although the contents of this publication have been checked for conformity with the hardware and software described, we cannot guarantee complete conformity since errors cannot be excluded. &amp;lt;br /&amp;gt;&lt;br /&gt;
The information provided in this manual is checked at regular intervals and any corrections that might become necessary are included in the next releases.&amp;lt;br /&amp;gt;&lt;br /&gt;
Any suggestions for improvement are welcome.&amp;lt;br /&amp;gt;&lt;br /&gt;
The contents of this manual are subject to change without prior notice.&amp;lt;br /&amp;gt;&lt;br /&gt;
Latest firmware, software and updates can be downloaded from: phobos.martem.ee/shr&amp;lt;br /&amp;gt;&lt;br /&gt;
More information about Martem devices can be found at phobos.martem.ee/wiki/Esileht&lt;br /&gt;
&lt;br /&gt;
== Block diagram ==&lt;br /&gt;
[[Media:Telem-GW6.pdf|TELEM-GW6]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Order code ==&lt;br /&gt;
TELEM GW6 has many hardware versions, versions are described with an order code.&amp;lt;br /&amp;gt;&lt;br /&gt;
User friendly configurator can be found:[http://phobos.martem.ee/order/ phobos.martem.ee/order/]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GW6-eXXXX-XXXX-CX&amp;lt;br /&amp;gt;&lt;br /&gt;
(e.g. GW6-e1112-R211-C0)&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Licence&#039;&#039;&#039;&lt;br /&gt;
*0 – NO IEC61850  &lt;br /&gt;
*1 – IEC61850&lt;br /&gt;
&#039;&#039;&#039;Processor&#039;&#039;&#039;&lt;br /&gt;
*1 – Base model&lt;br /&gt;
*2 – Custom model&lt;br /&gt;
&#039;&#039;&#039;Port C1&#039;&#039;&#039;&lt;br /&gt;
*1 – COM1 or GPS&lt;br /&gt;
*2 – ONE-wire input&lt;br /&gt;
&#039;&#039;&#039;GPS sync&#039;&#039;&#039;&lt;br /&gt;
*1 – From Port C1&lt;br /&gt;
*2 – GPS optical input&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&lt;br /&gt;
*R – Card R&lt;br /&gt;
*L – Card L&lt;br /&gt;
&#039;&#039;&#039;Port C2 conf.&#039;&#039;&#039;&lt;br /&gt;
*1 – 4-wire RS485&lt;br /&gt;
*2 – 2-wire RS485&lt;br /&gt;
*3 – RS422&lt;br /&gt;
&#039;&#039;&#039;GPS optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Port C3 optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Secondary power&#039;&#039;&#039;&lt;br /&gt;
*0 – Not Supported&lt;br /&gt;
*1 – Supported&lt;br /&gt;
&lt;br /&gt;
== Revision history ==&lt;br /&gt;
Rev 1/2014 	New version of manual (separate manuals for GW6 and GWS)&lt;br /&gt;
&lt;br /&gt;
Rev 2/2015 	Some errors corrected&lt;br /&gt;
&lt;br /&gt;
== Open-source software information ==&lt;br /&gt;
This device produced by Martem Ltd. includes open-source components. The most up to date info of exact software used by Martem’s build system and licensing info of used software can be found from http://phobos.martem.ee/shr/br-sources/&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2236</id>
		<title>TELEM-GW6 Manual</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6_Manual&amp;diff=2236"/>
		<updated>2019-06-04T11:14:17Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[[image:Gw6e.jpg|center|thumb|1200px|TELEM-GW6e]]&lt;br /&gt;
Data Concentrator TELEM-GW6 (GW6-e) is designed for use in electrical networks as an communication concentrator.&amp;lt;br /&amp;gt;&lt;br /&gt;
Main applications of GW6 are:&amp;lt;br /&amp;gt;&lt;br /&gt;
*Data acquisition and control of regional and national electricity utilities in SCADA systems for remote control and substation automation.&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Creating transparent TCP/IP to serial channels for remote connections to various equipment (for remote handling of various equipment)&lt;br /&gt;
*Comprehensive integration of different devices&lt;br /&gt;
*Full scale data exchange between substation devices and substation control system including setting values, measurement values, registered fault parameter values, changes of state with associated time markings etc.&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
*Transparent TCP/IP connections via Ethernet and serial ports&lt;br /&gt;
*Various data exchange protocols via Ethernet and serial ports&lt;br /&gt;
*Cross-referencing of data exchange protocols&lt;br /&gt;
*Automatic protocol conversion from IEC 60870-5-101 to IEC 60870-5-104 without description of data objects.&lt;br /&gt;
*Firewall functionality&lt;br /&gt;
*OpenVPN, IPsec, L2TP and SSH connections&lt;br /&gt;
*SNMP (Simple Network Management Protocol)&lt;br /&gt;
*SDN (Software Defined Networking), DPI (Deep Packet Inspection)&lt;br /&gt;
*Syslog&lt;br /&gt;
*Graphic Web Server&lt;br /&gt;
*A user-friendly configuration tool similar to Microsoft® Windows™&lt;br /&gt;
*Configurable remotely over communication line&lt;br /&gt;
*Configuration export to ASCII, CSV format files&lt;br /&gt;
*TELEM RTU devices can be remotely configured via TELEM-GW6&lt;br /&gt;
*Logical operations between digital and analog signals can be described&lt;br /&gt;
*PLC logic support, configuration tool with integrated PLC editor in compliance with IEC-61131-3 standard&lt;br /&gt;
*Data sending with time and quality stamp&lt;br /&gt;
*Console port&lt;br /&gt;
*Several time synchronization options (possible to synchronize from multiple control centers. GW6 is used to synchronize substation devices by protocol):&amp;lt;br /&amp;gt;&lt;br /&gt;
:*GPS input&lt;br /&gt;
:*NTP client and server&lt;br /&gt;
:*IEC 60870-5-101&lt;br /&gt;
:*IEC 60870-5-104&lt;br /&gt;
:*IEC 60870-5-103&lt;br /&gt;
*All ports are galvanically isolated from case and power circuit (except C1 and console port from power circuit)&lt;br /&gt;
*1-wire sensor port (up to 10 sensors) e.g. for temperature&lt;br /&gt;
*Real-time clock with back-up capacitor&lt;br /&gt;
*Internal fault relay contact (missing in card L version)&lt;br /&gt;
&lt;br /&gt;
== Technical Data ==&lt;br /&gt;
Data communication protocols&amp;lt;br /&amp;gt;&lt;br /&gt;
To higher level systems:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 60870-5-104&lt;br /&gt;
*IEC 60870-5-101 unbalanced and balanced,&lt;br /&gt;
To lower level devices:&amp;lt;br /&amp;gt;&lt;br /&gt;
*IEC 61850,&lt;br /&gt;
*IEC 60870-5-104,&lt;br /&gt;
*IEC 60870-5-103,&lt;br /&gt;
*IEC 60870-5-101 Unbalanced,&lt;br /&gt;
*Modbus-RTU,&lt;br /&gt;
*Modbus-TCP,&lt;br /&gt;
*IEC 62056-21 (IEC 1107),&lt;br /&gt;
*SPA-Bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Communication ports&amp;lt;br /&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
Communication ports may be freely configured for upper or lower level communication&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Base board&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*3 x Ethernet connection with RJ45 port&lt;br /&gt;
*1 x RS-232 serial connection with 4P4C port&lt;br /&gt;
*1 x Console mini USB port&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Card R&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x Fiber-optic connection with ST or Versatile link connectors&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors&lt;br /&gt;
*1 x RS-485 (2-wire) serial connection, galvanically isolated&lt;br /&gt;
*1 x Internal fault relay contact&lt;br /&gt;
&#039;&#039;&#039;Card L&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 x RS-422, RS-485 (2-wire) or RS-485 (4-wire) serial connection, galvanically isolated + time sync pulse out&lt;br /&gt;
*1 x GPS Fiber-optical connection with ST or Versatile link connectors, data and pulse&lt;br /&gt;
*2 x Optical LAN&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Expansion card 2&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*8 x RS-232 serial connections with RJ45 connectors with surge protection&lt;br /&gt;
*Secondary power supply&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Data communication parameters:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*1 start bit&lt;br /&gt;
*Odd, even or no parity&lt;br /&gt;
*Communication rates from 300 to 115200 bit/sec&lt;br /&gt;
&#039;&#039;&#039;Electrical characteristics of isolated input&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Dielectric withstand IEC 60255-5&lt;br /&gt;
*Withstand to static discharge IEC 61000-4-2, 15kV&lt;br /&gt;
*Withstand to surges, bursts IEC 61000-4-4, 61000-4-5, 2,5kV AC, 4kV DC&lt;br /&gt;
&#039;&#039;&#039;Mechanical parameters&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Degree of protection IP 31&lt;br /&gt;
*Dimensions (W x H x D) 108 x 114 x 166 (190 with protruding parts ) mm&lt;br /&gt;
*Ambient temperature in operation –30°C…+55°C&lt;br /&gt;
*Weight 1100 g&lt;br /&gt;
*Mounting DIN rail&lt;br /&gt;
&#039;&#039;&#039;Radio frequency compatibility&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*RF emission IEC 55022 Class A&lt;br /&gt;
*Immunity to RF fields IEC 61000-4-3, 61000-4-6&lt;br /&gt;
&#039;&#039;&#039;Power supply&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Supply voltage range 12 to 72 V DC&lt;br /&gt;
*Power consumption &amp;lt; 8 VA, &amp;lt; 25 VA with card L&lt;br /&gt;
&lt;br /&gt;
== Communication cables ==&lt;br /&gt;
[[Image:Kaablid1.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
[[Image:Kaablid2.jpg|600px|thumb|center|Communication cables]]&lt;br /&gt;
&lt;br /&gt;
== Firmware update ==&lt;br /&gt;
NB! Before updating to new firmware read the setup from your device, and make a backup.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Loading firmware via SSH&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Copy the compressed (*.7z) firmware update file (provided by Martem AS) to your computer&lt;br /&gt;
*Set up SSH connection with GW6 if you have not done this before in this session or changed users. Login as martem. If you have not  changed the password then default password is provided by Martem AS&lt;br /&gt;
*Press the “Upd.” button next to SSH settings&lt;br /&gt;
*Press the pick button and select the copied update file (file will be automatically unpacked to temporary folder)&lt;br /&gt;
*Press the “Update” button, the update process starts&lt;br /&gt;
*Wait until the device resumes to its normal operation state (“Run” LED will start slow blinking again)&lt;br /&gt;
*Firmware update is complete. Check if firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Press “Get Result” button&lt;br /&gt;
*Check the state of installed files at the last part of the file. If the state of update files is OK - firmware update was successful.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Loading firmware through Secure Digital (SD) Memory Card slot:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect Secure Digital (SD) Memory Card to your computer&lt;br /&gt;
*Extract the compressed firmware update file (provided by Martem AS) to your SD Memory Card&lt;br /&gt;
*Disconnect the card from your computer&lt;br /&gt;
*Insert the card to TELEM-GW6 SD Memory Card slot&lt;br /&gt;
	:* SD Memory Card slot is located at the back of the device&lt;br /&gt;
*Perform reset operation to TELEM-GW6 device&lt;br /&gt;
*Wait until the device resumes to it’s normal operation state&lt;br /&gt;
*Firmware update is complete. Remove the SD Memory Card and check if firmware update was successful&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Checking results of the firmware update operation:&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
*Connect the SD Memory Card to your computer&lt;br /&gt;
*Open the folder you extracted earlier&lt;br /&gt;
*Check if the file “res.txt” is present and open it&lt;br /&gt;
*Check the state of installed files at the last part of the file&lt;br /&gt;
	:*If the state of update files is OK - firmware update was successful&lt;br /&gt;
&lt;br /&gt;
== Default setup, indication ==&lt;br /&gt;
&#039;&#039;&#039;RESET:&#039;&#039;&#039; Switch RESET to ON state and then back to OFF state for Reset operation&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;DFT. SET:&#039;&#039;&#039; To apply default setup:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Switch DFT. SET to ON state&lt;br /&gt;
:*Alert indication LED starts blinking within 5 seconds&lt;br /&gt;
:*Alert indication LED will blink for 2 seconds&lt;br /&gt;
# Switch DFT. SET back to OFF state when the alert indication LED is 	blinking to apply 	default setup&lt;br /&gt;
If DFT. SET is switched back to OFF state when the alert indication LED is not blinking, default setup will NOT be applied&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For operation&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED – Blinking green indicates that the program is running&amp;lt;br /&amp;gt;&lt;br /&gt;
Red LED – Failure&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For communication&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Green LED at GPS port – blinking indicates the existence of GPS time synchronization.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If not stated otherwise on the individual pages of this document, AS Martem reserves the right to make modifications.&amp;lt;br /&amp;gt; &lt;br /&gt;
Although the contents of this publication have been checked for conformity with the hardware and software described, we cannot guarantee complete conformity since errors cannot be excluded. &amp;lt;br /&amp;gt;&lt;br /&gt;
The information provided in this manual is checked at regular intervals and any corrections that might become necessary are included in the next releases.&amp;lt;br /&amp;gt;&lt;br /&gt;
Any suggestions for improvement are welcome.&amp;lt;br /&amp;gt;&lt;br /&gt;
The contents of this manual are subject to change without prior notice.&amp;lt;br /&amp;gt;&lt;br /&gt;
Latest firmware, software and updates can be downloaded from: phobos.martem.ee/shr&amp;lt;br /&amp;gt;&lt;br /&gt;
More information about Martem devices can be found at phobos.martem.ee/wiki/Esileht&lt;br /&gt;
&lt;br /&gt;
== Block diagram ==&lt;br /&gt;
[[Image:Telem-GW6.pdf|TELEM-GW6]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Order code ==&lt;br /&gt;
TELEM GW6 has many hardware versions, versions are described with an order code.&amp;lt;br /&amp;gt;&lt;br /&gt;
User friendly configurator can be found:[http://phobos.martem.ee/order/ phobos.martem.ee/order/]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GW6-eXXXX-XXXX-CX&amp;lt;br /&amp;gt;&lt;br /&gt;
(e.g. GW6-e1112-R211-C0)&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Licence&#039;&#039;&#039;&lt;br /&gt;
*0 – NO IEC61850  &lt;br /&gt;
*1 – IEC61850&lt;br /&gt;
&#039;&#039;&#039;Processor&#039;&#039;&#039;&lt;br /&gt;
*1 – Base model&lt;br /&gt;
*2 – Custom model&lt;br /&gt;
&#039;&#039;&#039;Port C1&#039;&#039;&#039;&lt;br /&gt;
*1 – COM1 or GPS&lt;br /&gt;
*2 – ONE-wire input&lt;br /&gt;
&#039;&#039;&#039;GPS sync&#039;&#039;&#039;&lt;br /&gt;
*1 – From Port C1&lt;br /&gt;
*2 – GPS optical input&lt;br /&gt;
&#039;&#039;&#039;Expansion card 1&#039;&#039;&#039;&lt;br /&gt;
*R – Card R&lt;br /&gt;
*L – Card L&lt;br /&gt;
&#039;&#039;&#039;Port C2 conf.&#039;&#039;&#039;&lt;br /&gt;
*1 – 4-wire RS485&lt;br /&gt;
*2 – 2-wire RS485&lt;br /&gt;
*3 – RS422&lt;br /&gt;
&#039;&#039;&#039;GPS optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Port C3 optics&#039;&#039;&#039;&lt;br /&gt;
*1 – VL (plastic)&lt;br /&gt;
*2 – ST (glass)&lt;br /&gt;
*X – None (with card L)&lt;br /&gt;
&#039;&#039;&#039;Secondary power&#039;&#039;&#039;&lt;br /&gt;
*0 – Not Supported&lt;br /&gt;
*1 – Supported&lt;br /&gt;
&lt;br /&gt;
== Revision history ==&lt;br /&gt;
Rev 1/2014 	New version of manual (separate manuals for GW6 and GWS)&lt;br /&gt;
&lt;br /&gt;
Rev 2/2015 	Some errors corrected&lt;br /&gt;
&lt;br /&gt;
== Open-source software information ==&lt;br /&gt;
This device produced by Martem Ltd. includes open-source components. The most up to date info of exact software used by Martem’s build system and licensing info of used software can be found from http://phobos.martem.ee/shr/br-sources/&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=IEC104_parameters&amp;diff=2235</id>
		<title>IEC104 parameters</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=IEC104_parameters&amp;diff=2235"/>
		<updated>2019-06-04T11:13:42Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:GWS_IEC104.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Redundant_connections&amp;diff=2234</id>
		<title>Redundant connections</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Redundant_connections&amp;diff=2234"/>
		<updated>2019-06-04T11:13:34Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Define redundant connections. &amp;lt;br /&amp;gt;&lt;br /&gt;
Connections use the same event buffer, event will be sent to only one channel. When one channel closes, automatically redundant channel is used. &amp;lt;br /&amp;gt;&lt;br /&gt;
Used for networks where SCADA system is reserved with many servers, event will be sent to only one server. Maximum number of ports in one reduntunt connection is 4 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choose ports to work as redundant.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;D:&#039;&#039;&#039; Delete&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:redundant.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Comtrade&amp;diff=2233</id>
		<title>Comtrade</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Comtrade&amp;diff=2233"/>
		<updated>2019-06-04T11:13:23Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TELEM-GW6 supports automatically downloading and saving comtrade files from IED-s, using IEC61850 file I/O.&amp;lt;br /&amp;gt;&lt;br /&gt;
It is possible to upload files to remote server or save them in TELEM-GW6 internal memory or save on SD card. &amp;lt;br /&amp;gt;&lt;br /&gt;
TELEM-GW6 can be used for comtrade saving only as an addition to already working RTU. It could be convenient upgrade to an already working substation.&amp;lt;br /&amp;gt;&lt;br /&gt;
If &#039;&#039;&#039;ICD/SCD&#039;&#039;&#039; file is imported to the configuration, then automatically comtrade file list is created, user has to check the devices needed for comtrade saving. &#039;&#039;&#039;Local folder&#039;&#039;&#039; name can be modified. &lt;br /&gt;
If files are saved to GW6 internal memory, &#039;&#039;&#039;COMTRADE&#039;&#039;&#039; folder containing &#039;&#039;&#039;Local folders&#039;&#039;&#039; defined by user, is created to &#039;&#039;&#039;root&#039;&#039;&#039; directory. It is accessible using FTP client (e.g. WinSCP) using username and password, default provided by Martem AS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Comtrade.png]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=GWS_templates&amp;diff=2232</id>
		<title>GWS templates</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=GWS_templates&amp;diff=2232"/>
		<updated>2019-06-04T11:13:13Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Starting from GWS version ..., GWS supports creating device templates to simplify the configuration process of Martem RTU-s.&amp;lt;br/&amp;gt;&lt;br /&gt;
There are built-in templates included in GWS, and also there is an option to create user specific templates.&lt;br /&gt;
A template may contain Port settings, Device settings, Object list and Formulas.&lt;br /&gt;
Templates can be included to the setup (and created) from the Devices tab. Note the dropdown sign next to the + button (for creating a new device).&lt;br /&gt;
[[Image:Templates1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once a template device is selected from the list of available templates, a new device will be generated to the setup. Verify all the settings of the generated port, device, objects and formulas (if any). &lt;br /&gt;
&lt;br /&gt;
In order to create user specific templates, create the user specific configuration: port settings, device settings, object list and formulas (if any). Navigate to the Devices tab and click on the dropdown sign next to &amp;quot;New device&amp;quot; button (+ button). Select &amp;quot;create template&amp;quot;. Note that this option is only visible, if a device exists in the setup.&lt;br /&gt;
&lt;br /&gt;
[[Image:Templates2.jpg]]&lt;br /&gt;
&lt;br /&gt;
The new template is now visible from the templates list. In the PC, the template is stored in the folder named &amp;quot;templates&amp;quot; that is located in the same directory as GWS.exe. The templates are stored in a csv format.&lt;br /&gt;
&lt;br /&gt;
It is also possible to create a template from a slave port. Note that this option is only visible, if a slave port exists in the setup. &lt;br /&gt;
In this case, the template will contain all the objects of the specified port, that are configured in the setup (including object list, formulas and device physical I/O). The slave port template is useful for gathering all the objects from one Martem RTU to another Martem RTU (i.e slave port template is created in one RTU, but used in a setup of another RTU).&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Tansparent_Connections&amp;diff=2231</id>
		<title>Tansparent Connections</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Tansparent_Connections&amp;diff=2231"/>
		<updated>2019-06-04T11:12:55Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transparent Connections is a feature to transfer raw data between two ports. Hence the term &amp;quot;transparent connection&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
For example, transparent connections may be used as a serial-to-ethernet converter for devices with serial communication interface. This way, the device could be remotely configured via serial-to-ethernet connection.&lt;br /&gt;
&lt;br /&gt;
Transparent connections enables transferring data in the following configurations:&lt;br /&gt;
#serial to serial&lt;br /&gt;
#serial to TCP/IP and TCP/IP to serial&lt;br /&gt;
#TCP/IP to TCP/IP (i.e port forwarding)&lt;br /&gt;
&lt;br /&gt;
Here is an example configuration of Transparent connections:&lt;br /&gt;
[[Image:Transparent.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a configuration for serial to TCP/IP transparent connection. (Serial-to-Ethernet converter).&amp;lt;br /&amp;gt;&lt;br /&gt;
Port5 is configured as TCP/IP port of the transparent connection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Note the parameter &amp;quot;Transp. con. group&amp;quot; (in this case, it is 10). This parameter is used to identify the two transparent ports that belong to the same connection group. If another pair of transparent connections is needed, create two more transparent ports and pair them together with the &amp;quot;Transp. con. group&amp;quot; parameter. Obviously, the second pair of transparent connections requires another value for the &amp;quot;Transp. con. group&amp;quot; parameter (in this case, some value other than 10).&amp;lt;br /&amp;gt;&lt;br /&gt;
Incoming TCP/IP connection is accepted from TCP port 23. &amp;lt;br /&amp;gt;&lt;br /&gt;
Access is limited to client IP 192.168.0.200&amp;lt;br /&amp;gt;&lt;br /&gt;
If this limitation is not needed, configure the &amp;quot;Other side address&amp;quot; as 0.0.0.0&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example, all the data that is sent to server @ 192.168.0.111, tcp port 23 by client 192.168.0.200 is sent to serial line (Port1) @ 9600 baud, 8N1&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Asdu_transfer&amp;diff=2230</id>
		<title>Asdu transfer</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Asdu_transfer&amp;diff=2230"/>
		<updated>2019-06-04T11:12:43Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Asdu transfer is a feature to transfer data from multiple IEC101 master channels to one IEC101 slave channel.&amp;lt;br /&amp;gt;&lt;br /&gt;
The feature supports both IEC101 unbalanced and IEC101 balanced transmission.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the slave channel, different devices can be polled from a single IEC101 channel by polling different ASDU-s within the channel. &amp;lt;br /&amp;gt;&lt;br /&gt;
The link address for all devices will remain as configured in the uplink port (IEC101 slave port). In this example, it is 100&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is an example configuration of the IEC101 ports in GWS&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Asdu transfer ports.png]]&lt;br /&gt;
&lt;br /&gt;
The uplink (slave channel) is configured to Port4 with link address 100 and ASDU address 100.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the lower level devices, three ports are configured: Port1, Port2 and Port3.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the lower level devices may have different baudrate, parity etc. It is not necessary for these settings to match parameters of the slave channel.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Devices&amp;quot; configuration for the lower level RTU-s&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:Asdu transfer devices.jpg]]&lt;br /&gt;
&lt;br /&gt;
*IEC101 traffic of lower level devices is transferred to Port4 uplink. The parameter to configure this is called ASDU transfer in &amp;quot;Devices&amp;quot; tab. For every device, Port4 has been configured as the asdu transfer uplink port in this example.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The ASDU addresses of every device used in the &amp;quot;ASDU transfer&amp;quot; feature must be different.&amp;lt;br /&amp;gt;&lt;br /&gt;
*No information objects should be configured for devices in the &amp;quot;ASDU transfer&amp;quot; feature. The data is transferred directly without object database.&amp;lt;br /&amp;gt;&lt;br /&gt;
*The link addresses of configured devices may be different for every device, but it may also be equal for every device.&amp;lt;br /&amp;gt;&lt;br /&gt;
*Length of link addres, ASDU address, object address and COT may vary. It is not important for these parameters to match the uplink port settings or settings of other lower level devices.&lt;br /&gt;
*In this example:&lt;br /&gt;
**The controlling station will connect to Port4 using IEC101, link address 100.&amp;lt;br /&amp;gt;&lt;br /&gt;
**When the controlling station polls for {link address 100; ASDU address 10}, then the query is only forwarded to Port1, because Device1 has ASDU address 10.&amp;lt;br /&amp;gt;&lt;br /&gt;
**Similarily, when the controlling station polls for {link address 100; ASDU address 300}, then the query is only forwarded to Port3, because Device3 has ASDU address 300.&amp;lt;br /&amp;gt;&lt;br /&gt;
**When the controlling station polls for {link address 100; ASDU address 100}, then the query is addressed to the Martem RTU itself. The RTU will respond with all the objects configured in the database (all objects in &amp;quot;Objects&amp;quot; tab, plus the physical I/O-s, plus objects from &amp;quot;Formulas&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Direct_IEC-101_to_IEC-104_Translation&amp;diff=2229</id>
		<title>Direct IEC-101 to IEC-104 Translation</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Direct_IEC-101_to_IEC-104_Translation&amp;diff=2229"/>
		<updated>2019-06-04T11:12:31Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Determine groups of ports (up to 2 ports in each group) for direct protocol translation&lt;br /&gt;
(without intermediate database) from IEC 60870-5-101 to IEC 60870-5-104 and vice&lt;br /&gt;
versa. Lower lewel device still has to be configured in GWS to determine communication&lt;br /&gt;
parameters: address, address length etc.&lt;br /&gt;
&lt;br /&gt;
[[Image:IEC101-104_direct.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example, lower level device is configured to Port1 (serial master), using IEC101 protocol.&lt;br /&gt;
The uplink is configured to Port14 (TCP/IP slave), using IEC 104 protocol.&lt;br /&gt;
By pairing the two ports together in GWS (Common-&amp;gt;Direct IEC-101 to IEC104), the IEC101 protocol is translated to IEC104 protocol.&lt;br /&gt;
Objects of Device1 are not defined in GWS &amp;quot;Objects&amp;quot; tab.All the data is directly translated to IEC104 channel without intermediate database. &lt;br /&gt;
&lt;br /&gt;
Note: Direct IEC-101 to IEC-104 Translation feature should not be used together with &amp;quot;Redundant Connections&amp;quot; feature.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Configuring_IEC-61850_Client_via_GWS&amp;diff=2228</id>
		<title>Configuring IEC-61850 Client via GWS</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Configuring_IEC-61850_Client_via_GWS&amp;diff=2228"/>
		<updated>2019-06-04T11:12:18Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Latest GWS is available from http://phobos.martem.ee/shr/gws&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Save .icd or .scd file from IED&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Run the latest GWS.exe and select GW6e from &amp;quot;Device&amp;quot; menu&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Press the icd/scd button&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:3.icd_scd.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press the Add/Remove buttons to add/remove .icd/.scd files from RTU config. Select &amp;quot;Create devices and objects&amp;quot; to automatically create ports, devices and objects list for every IED.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:4.Load_icd.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Verify the port and device settings that GWS created. It is recommended to add comments (i.e feeder name) to the ports/devices.&lt;br /&gt;
6. It is recommended to configure the BRCB options (Select BRCB-s and Datasets that the RTU should connect to). In the following example, BRCB1 and Dataset1 of a WIMO device are selected. &lt;br /&gt;
*If BRCB config is empty, then the RTU will use all BRCB-s in the IED. &lt;br /&gt;
*&amp;quot;Create first dataset&amp;quot; is for creating a dynamic dataset into the IED. Usually not used (assuming that the IED is reasonably configured).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:6.BRCB.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. View the objects list generated by GWS. By default, all objects from all datasets have been generated.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. If the object list contains objects from too many datasets, then: &lt;br /&gt;
* specify the options by clicking the &amp;quot;Load XML&amp;quot; button in &amp;quot;Devices&amp;quot; tab.&lt;br /&gt;
* select the proper .icd/.scd file and IED name* select &amp;quot;create objects&amp;quot; to recreate the object list. A new button &amp;quot;Adv&amp;quot; appears for advanced configuration (press it).&lt;br /&gt;
* select the required datasets by checking/unchecking them from the DS list&lt;br /&gt;
* Press OK&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:8.objects.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9. Now the object list has been recreated with the specified options. Verify the objects in the &amp;quot;Objects&amp;quot; tab. Note the colours:&lt;br /&gt;
* Red - object is about to be removed from the object list &lt;br /&gt;
* Yellow - object already existed in object list or appears in multiple datasets &lt;br /&gt;
* Green - object has been added (generated) to the object list. If you accept the changes, press &amp;quot;Confirm&amp;quot; button. Red objects will be removed.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:9.confirm.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. It is now possible to compare the RTU config with .icd/.scd file. Navigate back to &amp;quot;Devices&amp;quot; tab and press &amp;quot;Load XML&amp;quot; and then &amp;quot;Compare&amp;quot; button.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:10.compare.png]] &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select the .icd/.scd that you wish to compare the RTU config to. Differences are marked red. In the following example it appears that the RTU config contains 2 objects from DS3 and no objects from DS1&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:10.compare2.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=ReservL%C3%BClitusAutomaatika&amp;diff=2227</id>
		<title>ReservLülitusAutomaatika</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=ReservL%C3%BClitusAutomaatika&amp;diff=2227"/>
		<updated>2019-06-04T11:11:36Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== RTA-A´s koostatud RLA loogika seletus:==&lt;br /&gt;
&lt;br /&gt;
[[Media:RTA_valemite_seletused.pdf]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Katsestendi projekt:==&lt;br /&gt;
&lt;br /&gt;
[[Media:RLA_KatseStend_Martem.pdf]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RLA katsestend===&lt;br /&gt;
[[Image:RLA_Katsestend.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kasutaja:Vitali Burzak|Vitali Burzak]] 16. märts 2013, kell 17:08 (EET)&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Actaris_ACE6000&amp;diff=2226</id>
		<title>Actaris ACE6000</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Actaris_ACE6000&amp;diff=2226"/>
		<updated>2019-06-04T11:09:00Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Aims Pro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GWS=&lt;br /&gt;
==Ports tab==&lt;br /&gt;
===Communication parameters===&lt;br /&gt;
* Parity: &#039;&#039;&#039;EVEN&#039;&#039;&#039;&lt;br /&gt;
* Stop bits: &#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
* Data bits: &#039;&#039;&#039;7&#039;&#039;&#039;&lt;br /&gt;
===Polling delay===&lt;br /&gt;
* One device per channel: &#039;&#039;&#039;0&#039;&#039;&#039;ms - unlimited&lt;br /&gt;
* 2 or more devices per channel: &#039;&#039;&#039;2000&#039;&#039;&#039;ms - unlimited&lt;br /&gt;
===Query timeout===&lt;br /&gt;
More than &#039;&#039;&#039;1500&#039;&#039;&#039;ms&lt;br /&gt;
==Objects tab==&lt;br /&gt;
Enter the object&#039;s address to column named &amp;quot;61850 v&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 Address for &#039;&#039;&#039;Reactive energy import&#039;&#039;&#039; is &#039;&#039;&#039;3.8.0&#039;&#039;&#039;&lt;br /&gt;
 Address for &#039;&#039;&#039;Energy rate 02&#039;&#039;&#039; is &#039;&#039;&#039;1.8.2&#039;&#039;&#039;&lt;br /&gt;
 Address could even be &#039;&#039;&#039;C.55.6&#039;&#039;&#039;  or &#039;&#039;&#039;FF.FF.2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can see the address in the picture under the column &#039;&#039;&#039;code&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=Aims Pro=&lt;br /&gt;
Display tab in ACE6000 configuration program&lt;br /&gt;
&lt;br /&gt;
[[Image:ACE6000_Aims_Pro_Display_page.jpg]]&lt;br /&gt;
&lt;br /&gt;
=Pealtkuulamine=&lt;br /&gt;
 17:06:31.640: /?0!&lt;br /&gt;
 17:06:31.640: [CR][LF]&lt;br /&gt;
 17:06:31.897: /ACE5\2ACE6000_R3[CR][LF]&lt;br /&gt;
 17:06:32.005: [ACK]050[CR][LF]&lt;br /&gt;
 17:06:32.247: [STX]0.9.2(9.17.10,5)[CR][LF]&lt;br /&gt;
 17:06:32.279: 0.9.1(16:7:47:255)[CR][LF]&lt;br /&gt;
 17:06:32.311: 1.8.1(0*kWh)[CR][LF]&lt;br /&gt;
 17:06:32.326: 1.8.2(0*kWh)[CR][LF]&lt;br /&gt;
 17:06:32.361: 2.8.1(0*kWh)[CR][LF]&lt;br /&gt;
 17:06:32.376: 2.8.2(0*kWh)[CR][LF]&lt;br /&gt;
 17:06:32.410: 3.8.0(0*kvarh)[CR][LF]&lt;br /&gt;
 17:06:32.442: 4.8.0(0*kvarh)[CR][LF]&lt;br /&gt;
 17:06:32.474: 1.6.1(0.0*kW)(0100917070000)[CR][LF]&lt;br /&gt;
 17:06:32.522: 1.6.2(0.0*kW)(0100917160000)[CR][LF]&lt;br /&gt;
 17:06:32.550: 13.7(1.0000)[CR][LF]&lt;br /&gt;
 17:06:32.586: 1.7(0*W)[CR][LF]&lt;br /&gt;
 17:06:32.602: 2.7(0*W)[CR][LF]&lt;br /&gt;
 17:06:32.617: 3.7(0*var)[CR][LF]&lt;br /&gt;
 17:06:32.650: 4.7(0*var)[CR][LF]&lt;br /&gt;
 17:06:32.666: 9.7(0*VA)[CR][LF]&lt;br /&gt;
 17:06:32.681: 10.7(0*VA)[CR][LF]&lt;br /&gt;
 17:06:32.710: 32.7(0.77*V)[CR][LF]&lt;br /&gt;
 17:06:32.730: 52.7(0.87*V)[CR][LF]&lt;br /&gt;
 17:06:32.762: 72.7(227.41*V)[CR][LF]&lt;br /&gt;
 17:06:32.777: 31.7(0.00*A)[CR][LF]&lt;br /&gt;
 17:06:32.810: 51.7(0.00*A)[CR][LF]&lt;br /&gt;
 17:06:32.825: 71.7(0.00*A)[CR][LF]&lt;br /&gt;
 17:06:32.842: 14.7(50.0*Hz)[CR][LF]&lt;br /&gt;
 17:06:32.874: C.53.1(0)[CR][LF]&lt;br /&gt;
 17:06:32.890: C.53.2(0*s)[CR][LF]&lt;br /&gt;
 17:06:32.922: C.55.1(0)[CR][LF]&lt;br /&gt;
 17:06:32.938: C.55.2(0*h)[CR][LF]&lt;br /&gt;
 17:06:32.953: C.55.3(0)[CR][LF]&lt;br /&gt;
 17:06:32.984: C.55.4(0*h)[CR][LF]&lt;br /&gt;
 17:06:33.000: C.55.5(1)[CR][LF]&lt;br /&gt;
 17:06:33.015: C.55.6(432*h)[CR][LF]&lt;br /&gt;
 17:06:33.046: F.F.1(00000000)[CR][LF]&lt;br /&gt;
 17:06:33.066: F.F.2(0000001000000011000000010100000001000000)[CR][LF]&lt;br /&gt;
 17:06:33.129: 7.0(28*0C)[CR][LF]&lt;br /&gt;
 17:06:33.153: 0.2.0(123[ ][ ][ ][ ][ ])[CR][LF]&lt;br /&gt;
 17:06:33.164: !&lt;br /&gt;
 17:06:33.164: [CR][LF]&lt;br /&gt;
 17:06:33.164: [ETX]@&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Seadmete_tarkvara_testimine&amp;diff=2225</id>
		<title>Seadmete tarkvara testimine</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Seadmete_tarkvara_testimine&amp;diff=2225"/>
		<updated>2019-06-04T11:08:36Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==TELEM-DO5-T ja TELEM-DI24-T==&lt;br /&gt;
#Ettevalmistus&lt;br /&gt;
##Ühenda esimese pordi kaudu seade Telem-DO5-T TELEM2000-ega. &lt;br /&gt;
##Muuda seadme aadressiks 1 (0001).&lt;br /&gt;
##Lae seadmesse vaikesätted (default setup: RST-ON -&amp;gt; DFT-ON -&amp;gt; RST-OFF -&amp;gt; DFT-OFF).&lt;br /&gt;
#Side testimine&lt;br /&gt;
##Veendu et side toimib vaikesätetel (9600 no parity).&lt;br /&gt;
##Testi side toimimist kõige aeglasemal võimalikul kiirusel &amp;quot;even parity&amp;quot;-ga. NB! kiirus 200 ei tööta läbi USB.&lt;br /&gt;
##Testi side toimimist kõige kiiremal võimalikul kiirusel &amp;quot;odd parity&amp;quot;-ga.&lt;br /&gt;
#Objekti baasaadress&lt;br /&gt;
##Muuda objekti baasaadress 2-meks. Kontrolli et juhtmiste aadressid on nihkunud 2-he võrra( 3=1,4=2 jne.).(kuna eelnevalt sai tehtud default setup tuleb eelnevalt määrata, et juhtimised oleks kasutuses - &amp;quot;2-In use&amp;quot;)&lt;br /&gt;
==Ainult TELEM-DO5-T==&lt;br /&gt;
#Tee seadmele reset 3(vaikesätte laadimine).&lt;br /&gt;
#Lae seadmesse järgmine konfiguratsioon:&amp;lt;br&amp;gt;[[Image:Testkonf.png|left|thumb|500px]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Antud konfiguratsiooni abil on võimalik tuvastada kas on töökorras järgmised seadistuse variandid: In use- sees/väljas, Direct execute-  lubatud või mitte, Lühikese impulsi pikkuse ja arvu määramine ja pika impulsi piukkuse ja arvu määramine.&lt;br /&gt;
==Ainult TELEM-DI24-T==&lt;br /&gt;
#Tee seadmele reset 3(vaikesätte laadimine).&lt;br /&gt;
#Lae seadmesse järgmine konfiguratsioon:&amp;lt;br&amp;gt;[[Image:Testkonfdi.png|left|thumb|500px]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Antud konfiguratsiooni abil on võimalik tuvastada kas on töökorras järgmised seadistuse variandid: In use- sees/väljas, tüübid- single/double/counter/counter(double), ajamärgi lisamine, debouncing filter ja chatter filter(ajad piisavalt pikad käsitsi testimiseks) ja Counter( vajalik signaalide arv sündmuse tekitamiseks.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Failide_s%C3%BCstematiseerimine&amp;diff=2224</id>
		<title>Failide süstematiseerimine</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Failide_s%C3%BCstematiseerimine&amp;diff=2224"/>
		<updated>2019-06-04T11:07:54Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See on kunagine ettepanek (mis ei jõudnudki tutvustamisele) selle kohta , kuidas Martemi serveris korda luua. Ehk keegi viitsib vaadata ja kommenteerida !&lt;br /&gt;
&lt;br /&gt;
[[Image:filesTree.swf]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=4x-FO-3&amp;diff=2223</id>
		<title>4x-FO-3</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=4x-FO-3&amp;diff=2223"/>
		<updated>2019-06-04T11:07:04Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TESTIMISJUHEND==&lt;br /&gt;
&lt;br /&gt;
Pressi nuppu Telem-4xFO-3 kui oled avanud lehe:&lt;br /&gt;
&lt;br /&gt;
[http://www.martem.ee/ylo  SIIN TA ON ! (TA=JUHEND)]&lt;br /&gt;
[[Image:VirtualTest.png]]&lt;br /&gt;
&lt;br /&gt;
== Telem-4xFO rev.3 testimine ==&lt;br /&gt;
   &lt;br /&gt;
   Testimisel tuleb pöörata tähelepanu kõigi skeemiosade vähemalt ühekordsele ülekontrollimisele&lt;br /&gt;
Üldstruktuur:&lt;br /&gt;
&lt;br /&gt;
[[Image:4x-FO-3-structure.png]]&lt;br /&gt;
&lt;br /&gt;
== 1. Põhireziim (vaikimisi) - kasutusel aimult üks 4x-FO-3 seade ==&lt;br /&gt;
&lt;br /&gt;
   &amp;quot;Master&amp;quot; = RS232&lt;br /&gt;
[[Image:RS232master-default.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. Kasutusel aimult üks 4x-FO-3 seade (&amp;quot;Master&amp;quot; ühendada RS232 DB9 või 1. RJ12 ) ==&lt;br /&gt;
&lt;br /&gt;
   &amp;quot;Master&amp;quot; = RS232&lt;br /&gt;
[[Image:RS232master-1standardRxOutput.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3. &amp;quot;Master&amp;quot; = RS422 ==&lt;br /&gt;
&lt;br /&gt;
[[Image:RS422master.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 4. Põhireziim mitme 4x-FO-3 seadme kasutamisel ==&lt;br /&gt;
&lt;br /&gt;
kogu side  = RS232&lt;br /&gt;
[[Image:2x-4x-FO-3-default.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 5. Erireziimid mitme 4x-FO-3 seadme kasutamisel ==&lt;br /&gt;
   Saade Tx seadmte vahel  = RS422&lt;br /&gt;
   Vastuvõtt Rx seadmte vahel  = RS232&lt;br /&gt;
[[Image:2x-4x-FO-3-special-Rx.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 6. 1x- Optical Loop ==&lt;br /&gt;
&lt;br /&gt;
   Anda optiline Tx-signaal opt. sisenditesse 1&lt;br /&gt;
   Jälgida selle signaali jõudmist optilistesse väljunditesse&lt;br /&gt;
&lt;br /&gt;
[[Image:1x-optical-loop.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 7. 2x- Optical Loop ==&lt;br /&gt;
&lt;br /&gt;
   Anda optiline Tx-signaal kordamööda opt. sisenditesse 1 ja 2&lt;br /&gt;
   Jälgida selle signaali jõudmist optilistesse väljunditesse&lt;br /&gt;
[[Image:2x-optical-loop.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 8. 2x loop kasutamisel lisaindikatsioonid: ==&lt;br /&gt;
 &lt;br /&gt;
  8.1 &amp;quot;Slave&amp;quot;- seadme 4xFO-le&lt;br /&gt;
    Rx1 puudumise indikaator&lt;br /&gt;
    Rx2 puudumise indikaator&lt;br /&gt;
  8.1 &amp;quot;Master&amp;quot;- seadme 4xFO-le&lt;br /&gt;
    Rx1 &amp;amp; Rx2 erinevuse indikaator&lt;br /&gt;
&lt;br /&gt;
[[Image:2x-4x-FO-3-special-functions.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-DI24-T&amp;diff=2222</id>
		<title>Telem-DI24-T</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-DI24-T&amp;diff=2222"/>
		<updated>2019-06-04T11:05:57Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DI24-T_usermanual.pdf|User Manual]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DI24-T_data_sheet.pdf|Data Sheet]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:DI24T.jpg|center|thumb|250px|TELEM-DI24-T]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Graafik_reaalajas&amp;diff=2221</id>
		<title>Graafik reaalajas</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Graafik_reaalajas&amp;diff=2221"/>
		<updated>2019-06-04T11:04:59Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See on kasutusel VKG-s&lt;br /&gt;
[[Image:koguvoim-flashTrend.png]]&lt;br /&gt;
[[Image:koguvoim-clientTrend.png]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-DO8G&amp;diff=2220</id>
		<title>Telem-DO8G</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-DO8G&amp;diff=2220"/>
		<updated>2019-06-04T10:58:52Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DO8G_usermanual.pdf|User Manual]] | [[:File:Telem-DO8G_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-DO5-T&amp;diff=2219</id>
		<title>Telem-DO5-T</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-DO5-T&amp;diff=2219"/>
		<updated>2019-06-04T10:58:06Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DO5-T_usermanual.pdf|User Manual]] | [[:File:Telem-DO5-T_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DO5-T_data_sheet.pdf|Data Sheet]] | [[:File:Telem-DO5-T_data_sheet.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[image:DO5T.jpg|center|thumb|250px|TELEM-DO5-T]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-AI12-T&amp;diff=2218</id>
		<title>Telem-AI12-T</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-AI12-T&amp;diff=2218"/>
		<updated>2019-06-04T10:56:47Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-AI12-T_usermanual.pdf|User Manual]] | [[:File:Telem-AI12-T_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-AI12-T_data_sheet.pdf|Data Sheet]] | [[:File:Telem-AI12-T_data_sheet.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:AI12T.jpg|center|thumb|250px|TELEM-AI12-T]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[IEC101 Objects]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=GWS_ja_BDE_installeerimine&amp;diff=2217</id>
		<title>GWS ja BDE installeerimine</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=GWS_ja_BDE_installeerimine&amp;diff=2217"/>
		<updated>2019-06-04T10:54:06Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;GWS Setup&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:GWS_Setup.zip]] | [[:File:GWS_Setup.zip|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Just start the GWS.EXE, if you don&#039;t need to configure the Telem RTU modules&lt;br /&gt;
(menu item &amp;quot;Device/RTU modules&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you wish to configure also the Telem RTU modules with GWS.EXE and you&lt;br /&gt;
haven&#039;t installed our Telem Data concentrator software (Telem-2000),&lt;br /&gt;
then you need to follow the items below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Start GWS_&amp;amp;_RTU_Modules.BAT which copies the files to your C disk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) If the BDE is not installed to your computer (Check the presence of &amp;quot;BDE Administrator&amp;quot; on the Control Panel) then:&lt;br /&gt;
- Start the Setup.exe in BDE32_Setup folder&lt;br /&gt;
&lt;br /&gt;
- If the BDE Administrator does not appear on the Control Panel, then restart the computer&lt;br /&gt;
&lt;br /&gt;
- If you have the Windows Vista, then follow the instructions in &amp;quot;Configuring the BDE for Vista.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Add to BDE the needed database descriptions:&lt;br /&gt;
- Open the BDE Administrator from the Control Panel&lt;br /&gt;
- Choose from menu &amp;quot;Object/Merge configuration&amp;quot; and merge the C:\BDE32_Setup\Add_to_IDAPI32.CFG&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=GWS_ja_BDE_installeerimine&amp;diff=2216</id>
		<title>GWS ja BDE installeerimine</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=GWS_ja_BDE_installeerimine&amp;diff=2216"/>
		<updated>2019-06-04T10:53:53Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;GWS Setup&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:GWS_Setup.zip]] | [[:File:GWS_Setup.zip|Faili ajalugu]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Just start the GWS.EXE, if you don&#039;t need to configure the Telem RTU modules&lt;br /&gt;
(menu item &amp;quot;Device/RTU modules&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you wish to configure also the Telem RTU modules with GWS.EXE and you&lt;br /&gt;
haven&#039;t installed our Telem Data concentrator software (Telem-2000),&lt;br /&gt;
then you need to follow the items below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Start GWS_&amp;amp;_RTU_Modules.BAT which copies the files to your C disk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) If the BDE is not installed to your computer (Check the presence of &amp;quot;BDE Administrator&amp;quot; on the Control Panel) then:&lt;br /&gt;
- Start the Setup.exe in BDE32_Setup folder&lt;br /&gt;
&lt;br /&gt;
- If the BDE Administrator does not appear on the Control Panel, then restart the computer&lt;br /&gt;
&lt;br /&gt;
- If you have the Windows Vista, then follow the instructions in &amp;quot;Configuring the BDE for Vista.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Add to BDE the needed database descriptions:&lt;br /&gt;
- Open the BDE Administrator from the Control Panel&lt;br /&gt;
- Choose from menu &amp;quot;Object/Merge configuration&amp;quot; and merge the C:\BDE32_Setup\Add_to_IDAPI32.CFG&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=2215</id>
		<title>Homework 2</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=2215"/>
		<updated>2019-06-04T10:52:54Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Elementary knowledge of GIT, BASH, C++ will be tested.&lt;br /&gt;
&lt;br /&gt;
Task may be completed on any Linux distribution (recommended debian/ubuntu)&lt;br /&gt;
&lt;br /&gt;
== GIT ==&lt;br /&gt;
* Save work progress in a repository&lt;br /&gt;
** For example [https://github.com/ github.com]&lt;br /&gt;
* Use branches ([http://nvie.com/posts/a-successful-git-branching-model/ help])&lt;br /&gt;
** One branch for implementing bash script and another branch for c++&lt;br /&gt;
** commit often, total number of commits should be 10+&lt;br /&gt;
** when checking out a random revision, it should compile.&lt;br /&gt;
** Branches start from master and must be merged back into master&lt;br /&gt;
&lt;br /&gt;
== BASH ==&lt;br /&gt;
=== Script 1 - Show memory usage ===&lt;br /&gt;
&lt;br /&gt;
Script has 1 optional argument, path to meminfo file (contains current memory status).&lt;br /&gt;
If it&#039;s not provided use &#039;&#039;&#039;/proc/meminfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use standard unix tools like &#039;&#039;&#039;awk&#039;&#039;&#039;, &#039;&#039;&#039;grep&#039;&#039;&#039;, &#039;&#039;&#039;sed&#039;&#039;&#039; to parse the input file.&lt;br /&gt;
&lt;br /&gt;
Example of input file&lt;br /&gt;
&lt;br /&gt;
 cat /proc/meminfo &lt;br /&gt;
 MemTotal:        7969612 kB&lt;br /&gt;
 MemFree:         4582768 kB&lt;br /&gt;
 Buffers:          707368 kB&lt;br /&gt;
 Cached:          1122984 kB&lt;br /&gt;
 SwapCached:            0 kB&lt;br /&gt;
 Active:          1742408 kB&lt;br /&gt;
 Inactive:        1203472 kB&lt;br /&gt;
 [ ... ]&lt;br /&gt;
&lt;br /&gt;
output:&lt;br /&gt;
 ./script1.sh /proc/meminfo&lt;br /&gt;
 RAM: 4582 MB used / 7969 MB total ( 3387 MB free)&lt;br /&gt;
&lt;br /&gt;
=== Script 2 - compile c++ application ===&lt;br /&gt;
&lt;br /&gt;
Compiles the C++ application&lt;br /&gt;
Probably only has 1 useful line, g++ with some linker options.&lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
 ./script2.sh&lt;br /&gt;
 Compilation started&lt;br /&gt;
 Compilation finished&lt;br /&gt;
&lt;br /&gt;
== C++ ==&lt;br /&gt;
=== Parse log file for invalid time stamps ===&lt;br /&gt;
Write a program that parses the provided example log file, [[Media:Ex_log.gz]] and checks for anomalies in time stamps (if the newer log line has an older time stamp). The normal behavior is that the time increases with each line downwards as shown below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.584 [INFO] Gateway.port9.db -  (122) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.583703, received&lt;br /&gt;
2015-02-19 17:33:08.585 [INFO] Gateway.port6.db -  (41) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.585024, received&lt;br /&gt;
2015-02-19 17:33:08.586 [INFO] Gateway.port6.db -  (42) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.585943, received&lt;br /&gt;
2015-02-19 17:33:08.598 [INFO] Gateway.Port15.db -  (40) event: 1 flags: GwTime GI  time: 2015-Feb-19 17:33:08.551947, sent&lt;br /&gt;
2015-02-19 17:33:08.599 [INFO] Gateway.Port15.db -  (120) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.528113, sent&lt;br /&gt;
2015-02-19 17:33:08.604 [INFO] Gateway.port9.db -  (123) event: 1 flags: GwTime GI  time: 2015-Feb-19 17:33:08.603814, received&lt;br /&gt;
2015-02-19 17:33:08.606 [INFO] Gateway.port6.db -  (43) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.586459, received&lt;br /&gt;
2015-02-19 17:33:08.607 [INFO] Gateway.port6.db -  (44) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.606645, received&lt;br /&gt;
2015-02-19 17:33:08.607 [INFO] Gateway.port6.db -  (45) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.607344, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An erroneous log would look like the next short example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.790 [INFO] Gateway.port10.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, received&lt;br /&gt;
2015-02-19 17:33:08.792 [INFO] Gateway.WebServer.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, sent&lt;br /&gt;
2015-02-19 11:23:08.808 [INFO] Gateway.Port15.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, sent&lt;br /&gt;
2015-02-19 11:23:08.812 [INFO] Gateway.port10.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, received&lt;br /&gt;
2015-02-19 11:23:08.814 [INFO] Gateway.WebServer.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, sent&lt;br /&gt;
2015-02-19 11:23:08.815 [INFO] Gateway.port10.db -  (130) event: 1 time: 2015-Feb-19 17:31:58.176000, received&lt;br /&gt;
2015-02-19 11:23:08.817 [INFO] Gateway.WebServer.db -  (130) event: 1 time: 2015-Feb-19 17:31:58.176000, sent&lt;br /&gt;
2015-02-19 17:33:08.817 [INFO] Gateway.port10.db -  (131) event: 1 time: 2015-Feb-19 17:31:58.091000, received&lt;br /&gt;
2015-02-19 17:33:08.837 [INFO] Gateway.Port15.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that year-month-day could also be &#039;wrong&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.895 [INFO] Gateway.port7.db -  (54) event: -0.058075 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.895493, received&lt;br /&gt;
2015-02-19 17:33:08.897 [INFO] Gateway.port8.db -  (81) event: 0.771538 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.896834, received&lt;br /&gt;
2015-02-19 17:33:08.898 [INFO] Gateway.port8.db -  (82) event: 0.541642 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.897743, received&lt;br /&gt;
2012-01-15 17:33:08.898 [INFO] Gateway.port8.db -  (83) event: -0.523254 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.898286, received&lt;br /&gt;
2012-01-15 17:33:08.899 [INFO] Gateway.port8.db -  (84) event: -0.142151 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.898931, received&lt;br /&gt;
2012-01-15 17:33:08.899 [INFO] Gateway.port8.db -  (85) event: 0.0126041 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.899393, received&lt;br /&gt;
2015-02-19 17:33:08.900 [INFO] Gateway.port8.db -  (86) event: 0.0643635 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.899999, received&lt;br /&gt;
2015-02-19 17:33:08.900 [INFO] Gateway.port8.db -  (87) event: -0.507019 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.900444, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or both...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Program accepts one out of three &#039;&#039;&#039;optional&#039;&#039;&#039; arguments: stats, list or all. Examples&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./a.out filename --stats&lt;br /&gt;
./a.out filename&lt;br /&gt;
./a.out filename --all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--stats&lt;br /&gt;
    Outputs statistical information about time stamp anomalies.&lt;br /&gt;
&lt;br /&gt;
--list&lt;br /&gt;
    Outputs lines with erroneous time stamps along with line numbers.&lt;br /&gt;
&lt;br /&gt;
--all&lt;br /&gt;
    Outputs lines with erroneous time stamps along with line numbers &lt;br /&gt;
    and statistical information about time stamp anomalies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
A short example log file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 13:28:33.778 [INFO] Gateway.Port15.db -  (35) event: 2 time: 2015-Feb-19 17:32:02.013000, sent&lt;br /&gt;
2015-02-19 13:28:33.778 [INFO] Gateway.Port15.db -  (133) event: 2 time: 2015-Feb-19 17:31:52.336000, sent&lt;br /&gt;
2015-02-19 13:28:33.788 [INFO] Gateway.WebServer.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
2015-02-19 13:28:33.791 [INFO] Gateway.WebServer.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
2015-02-19 13:28:33.797 [INFO] Gateway.port10.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, received&lt;br /&gt;
2015-02-19 13:28:33.795 [INFO] Gateway.port6.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, received&lt;br /&gt;
2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
2015-02-19 13:28:33.810 [INFO] Gateway.port6.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, received&lt;br /&gt;
2015-02-19 13:28:33.813 [INFO] Gateway.WebServer.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
2015-02-19 13:28:33.823 [INFO] Gateway.WebServer.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, sent&lt;br /&gt;
2015-02-19 13:28:33.824 [INFO] Gateway.port6.db -  (39) event: 2 time: 2015-Feb-19 17:32:02.451000, received&lt;br /&gt;
2015-02-19 13:28:33.826 [INFO] Gateway.WebServer.db -  (39) event: 2 time: 2015-Feb-19 17:32:02.451000, sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out example_log --stats&lt;br /&gt;
Number of lines:&lt;br /&gt;
22&lt;br /&gt;
Invalid time stamps at line(s):&lt;br /&gt;
6&lt;br /&gt;
8-11&lt;br /&gt;
16-18&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out example_log --list&lt;br /&gt;
Lines with invalid time stamps:&lt;br /&gt;
[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
[8] 2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
[9] 2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[10] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
[11] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
[12] 2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
---&lt;br /&gt;
[15] 2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[16] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[17] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
[18] 2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[19] 2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out example_log --all&lt;br /&gt;
Number of lines:&lt;br /&gt;
22&lt;br /&gt;
Invalid time stamps at line(s):&lt;br /&gt;
8-11&lt;br /&gt;
16-18&lt;br /&gt;
&lt;br /&gt;
Lines with invalid time stamps:&lt;br /&gt;
[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
[8] 2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
[9] 2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[10] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
[11] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
[12] 2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
---&lt;br /&gt;
[15] 2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[16] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[17] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
[18] 2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[19] 2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no arguments a given, output an error message: &#039;Input file missing&#039;.&lt;br /&gt;
&lt;br /&gt;
If no optional arguments are given, output is same as with stats argument.&lt;br /&gt;
&lt;br /&gt;
Note that with list argument one line before and after the invalid time stamp is also output (look closer at the example outputs).&lt;br /&gt;
&lt;br /&gt;
Program is output to &#039;standard output&#039;.&lt;br /&gt;
&lt;br /&gt;
Use [http://www.boost.org/ boost] libraries: [http://www.boost.org/doc/libs/1_53_0/libs/format/doc/format.html format], [http://www.boost.org/doc/libs/1_53_0/doc/html/date_time.html date_time], [http://www.boost.org/doc/libs/1_53_0/libs/filesystem/doc/index.htm filesystem].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kasutaja:MarkTomm|MarkTomm]] 15. juuli 2015, kell 16:10 (EEST)&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-DI20G&amp;diff=2214</id>
		<title>Telem-DI20G</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-DI20G&amp;diff=2214"/>
		<updated>2019-06-04T10:45:14Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-DI20G_usermanual.pdf|User Manual]] | [[:File:Telem-DI20G_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-AI12G&amp;diff=2213</id>
		<title>Telem-AI12G</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-AI12G&amp;diff=2213"/>
		<updated>2019-06-04T10:44:14Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-AI12G_usermanual.pdf|User Manual]] | [[:File:Telem-AI12G_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;I/O moodulid:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-AI12-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI20G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DI24-T]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO8G]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Telem-DO5-T]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-RTA&amp;diff=2212</id>
		<title>Telem-RTA</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-RTA&amp;diff=2212"/>
		<updated>2019-06-04T10:43:29Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-RTA_usermanual.pdf|User Manual]] | [[:File:Telem-RTA_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Telem-RTA&amp;diff=2211</id>
		<title>Telem-RTA</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Telem-RTA&amp;diff=2211"/>
		<updated>2019-06-04T10:43:10Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-RTA_usermanual.pdf]] | [[:File:Telem-RTA_usermanual.pdf|faili ajalugu]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6e&amp;diff=2210</id>
		<title>TELEM-GW6e</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6e&amp;diff=2210"/>
		<updated>2019-06-04T10:40:10Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; width=&amp;quot;500&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;User manual&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW6e_usermanual_rev_11_2013Q3_RC2_.pdf|User Manual]] | [[:File:Telem-GW6e_usermanual_rev_11_2013Q3_RC2_.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
[[Image:Gw6e.jpg|right|thumb|500px|TELEM-GW6e]]&lt;br /&gt;
==General==&lt;br /&gt;
*[[GwLin Changelog |Firmware changelog]]&lt;br /&gt;
*[[GW6Lin software upgrade|Firmware upgrade]]&lt;br /&gt;
*[[Telem-RTC firmware upgrade| Telem-RTC Firmware upgrade]]&lt;br /&gt;
*[[GW6Lin reading log files|Reading log files]]&lt;br /&gt;
*[[GW6Lin configuration through FTP |Configuration through FTP]]&lt;br /&gt;
*[[Connect to GW6 over SSH]]&lt;br /&gt;
*[[GW6 web schema]]&lt;br /&gt;
*[[Gw XML setup]]&lt;br /&gt;
*[[Which GWS should I use with my GW6 |Which GWS to use?]]&lt;br /&gt;
*[[Telem-GW6e CPU frequency]]&lt;br /&gt;
*[[Account Management]]&lt;br /&gt;
&lt;br /&gt;
==Base board==&lt;br /&gt;
*[[Telem-GW6Lin]]&lt;br /&gt;
==Add-on boards==&lt;br /&gt;
* [[TELEM-COM8]]&lt;br /&gt;
* [[TELEM-RTC]]&lt;br /&gt;
&lt;br /&gt;
=Using Other Manufacturers Devices with GW6e=&lt;br /&gt;
*[[Actaris ACE6000]]&lt;br /&gt;
*[[Kuidas konfigureerida IEC61850 serverit GW6e jaoks?]]&lt;br /&gt;
*[[VPN(Virtual_Private_Networking)]]&lt;br /&gt;
*[[Advanced Networking]] (for GW6 old models that use setup version 3)&lt;br /&gt;
*[[Advanced Networking: OpenVPN]] (for GW6 old models that use setup version 3)&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
*[[IEC61850]]&lt;br /&gt;
*[[TELEM-GW6_testing_manual | test procedure]]&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
*[[ GW6e Conformance Test ]] IEC 101&lt;br /&gt;
*[[Flashing PXA27M bootloader]]&lt;br /&gt;
*[[Bootstrapping PXA27M modules]]&lt;br /&gt;
*[[Telem-GW6Lin-build-qtcreator|Qt Creator setup for GW6e]]&lt;br /&gt;
*[[Git help]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2209</id>
		<title>TELEM-GW5</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2209"/>
		<updated>2019-06-04T10:39:26Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW5_usermanual.pdf|User Manual]] | [[:File:Telem-GW5_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error codes==&lt;br /&gt;
&#039;&#039;&#039;[[GW5 error codes]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2208</id>
		<title>TELEM-GW6</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2208"/>
		<updated>2019-06-04T10:38:55Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; width=&amp;quot;500&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;User manual&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW6_usermanual.pdf|User Manual]] | [[:File:Telem-GW6_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
[[Image:GW6.jpg|right|thumb|500px|TELEM-GW6]]&lt;br /&gt;
==General==&lt;br /&gt;
*[[GwLin Changelog |Firmware changelog]]&lt;br /&gt;
*[[GW6Lin software upgrade|Firmware upgrade]]&lt;br /&gt;
*[[Telem-RTC firmware upgrade| Telem-RTC Firmware upgrade]]&lt;br /&gt;
*[[GW6Lin reading log files|Reading log files]]&lt;br /&gt;
*[[GW6Lin configuration through FTP |Configuration through FTP]]&lt;br /&gt;
*[[Connect to GW6 over SSH]]&lt;br /&gt;
*[[GW6 web schema]]&lt;br /&gt;
*[[Gw XML setup]]&lt;br /&gt;
*[[Which GWS should I use with my GW6 |Which GWS to use?]]&lt;br /&gt;
*[[Telem-GW6 CPU frequency]]&lt;br /&gt;
*[[Account Management]]&lt;br /&gt;
&lt;br /&gt;
==Base board==&lt;br /&gt;
*[[Telem-GW6Lin]]&lt;br /&gt;
==Add-on boards==&lt;br /&gt;
* [[TELEM-COM8]]&lt;br /&gt;
* [[TELEM-RTC]]&lt;br /&gt;
&lt;br /&gt;
=Using Other Manufacturers Devices with GW6=&lt;br /&gt;
*[[Actaris ACE6000]]&lt;br /&gt;
*[[Kuidas konfigureerida IEC61850 serverit GW6 jaoks?]]&lt;br /&gt;
*[[Advanced Networking]]&lt;br /&gt;
*[[Advanced Networking: OpenVPN]]&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
*[[IEC61850]]&lt;br /&gt;
*[[TELEM-GW6_testing_manual | test procedure]]&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
*[[Flashing PXA27M bootloader]]&lt;br /&gt;
*[[Bootstrapping PXA27M modules]]&lt;br /&gt;
*[[Telem-GW6Lin-build-qtcreator|Qt Creator setup for GW6]]&lt;br /&gt;
*[[Git help]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2207</id>
		<title>TELEM-GW5</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2207"/>
		<updated>2019-06-04T10:35:35Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW5_usermanual.pdf|User Manual]] | [[File:Telem-GW5_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error codes==&lt;br /&gt;
&#039;&#039;&#039;[[GW5 error codes]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2206</id>
		<title>TELEM-GW5</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW5&amp;diff=2206"/>
		<updated>2019-06-04T10:35:27Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;Kasutusjuhend:&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW5_usermanual.pdf|User Manual]] | [[File:Telem-GW5_usermanual.pdf|Faili ajalugu]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error codes==&lt;br /&gt;
&#039;&#039;&#039;[[GW5 error codes]]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2205</id>
		<title>TELEM-GW6</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2205"/>
		<updated>2019-06-04T10:35:14Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; width=&amp;quot;500&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;User manual&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW6_usermanual.pdf|User Manual]] | [[File:Telem-GW6_usermanual.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
[[Image:GW6.jpg|right|thumb|500px|TELEM-GW6]]&lt;br /&gt;
==General==&lt;br /&gt;
*[[GwLin Changelog |Firmware changelog]]&lt;br /&gt;
*[[GW6Lin software upgrade|Firmware upgrade]]&lt;br /&gt;
*[[Telem-RTC firmware upgrade| Telem-RTC Firmware upgrade]]&lt;br /&gt;
*[[GW6Lin reading log files|Reading log files]]&lt;br /&gt;
*[[GW6Lin configuration through FTP |Configuration through FTP]]&lt;br /&gt;
*[[Connect to GW6 over SSH]]&lt;br /&gt;
*[[GW6 web schema]]&lt;br /&gt;
*[[Gw XML setup]]&lt;br /&gt;
*[[Which GWS should I use with my GW6 |Which GWS to use?]]&lt;br /&gt;
*[[Telem-GW6 CPU frequency]]&lt;br /&gt;
*[[Account Management]]&lt;br /&gt;
&lt;br /&gt;
==Base board==&lt;br /&gt;
*[[Telem-GW6Lin]]&lt;br /&gt;
==Add-on boards==&lt;br /&gt;
* [[TELEM-COM8]]&lt;br /&gt;
* [[TELEM-RTC]]&lt;br /&gt;
&lt;br /&gt;
=Using Other Manufacturers Devices with GW6=&lt;br /&gt;
*[[Actaris ACE6000]]&lt;br /&gt;
*[[Kuidas konfigureerida IEC61850 serverit GW6 jaoks?]]&lt;br /&gt;
*[[Advanced Networking]]&lt;br /&gt;
*[[Advanced Networking: OpenVPN]]&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
*[[IEC61850]]&lt;br /&gt;
*[[TELEM-GW6_testing_manual | test procedure]]&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
*[[Flashing PXA27M bootloader]]&lt;br /&gt;
*[[Bootstrapping PXA27M modules]]&lt;br /&gt;
*[[Telem-GW6Lin-build-qtcreator|Qt Creator setup for GW6]]&lt;br /&gt;
*[[Git help]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Gw5_kasutusjuhend&amp;diff=2204</id>
		<title>Gw5 kasutusjuhend</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Gw5_kasutusjuhend&amp;diff=2204"/>
		<updated>2019-06-04T10:33:01Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Media:kasutusjuhend.pdf|Kasutusjuhend]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Gw5_kasutusjuhend&amp;diff=2203</id>
		<title>Gw5 kasutusjuhend</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Gw5_kasutusjuhend&amp;diff=2203"/>
		<updated>2019-06-04T10:32:43Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Media:kasutusjuhend.pdf]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2202</id>
		<title>TELEM-GW6</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6&amp;diff=2202"/>
		<updated>2019-06-04T10:32:27Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; width=&amp;quot;500&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;User manual&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW6_usermanual.pdf|User Manual]] | [[Media:Telem-GW6_usermanual.pdf |Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
[[Image:GW6.jpg|right|thumb|500px|TELEM-GW6]]&lt;br /&gt;
==General==&lt;br /&gt;
*[[GwLin Changelog |Firmware changelog]]&lt;br /&gt;
*[[GW6Lin software upgrade|Firmware upgrade]]&lt;br /&gt;
*[[Telem-RTC firmware upgrade| Telem-RTC Firmware upgrade]]&lt;br /&gt;
*[[GW6Lin reading log files|Reading log files]]&lt;br /&gt;
*[[GW6Lin configuration through FTP |Configuration through FTP]]&lt;br /&gt;
*[[Connect to GW6 over SSH]]&lt;br /&gt;
*[[GW6 web schema]]&lt;br /&gt;
*[[Gw XML setup]]&lt;br /&gt;
*[[Which GWS should I use with my GW6 |Which GWS to use?]]&lt;br /&gt;
*[[Telem-GW6 CPU frequency]]&lt;br /&gt;
*[[Account Management]]&lt;br /&gt;
&lt;br /&gt;
==Base board==&lt;br /&gt;
*[[Telem-GW6Lin]]&lt;br /&gt;
==Add-on boards==&lt;br /&gt;
* [[TELEM-COM8]]&lt;br /&gt;
* [[TELEM-RTC]]&lt;br /&gt;
&lt;br /&gt;
=Using Other Manufacturers Devices with GW6=&lt;br /&gt;
*[[Actaris ACE6000]]&lt;br /&gt;
*[[Kuidas konfigureerida IEC61850 serverit GW6 jaoks?]]&lt;br /&gt;
*[[Advanced Networking]]&lt;br /&gt;
*[[Advanced Networking: OpenVPN]]&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
*[[IEC61850]]&lt;br /&gt;
*[[TELEM-GW6_testing_manual | test procedure]]&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
*[[Flashing PXA27M bootloader]]&lt;br /&gt;
*[[Bootstrapping PXA27M modules]]&lt;br /&gt;
*[[Telem-GW6Lin-build-qtcreator|Qt Creator setup for GW6]]&lt;br /&gt;
*[[Git help]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Custom_Web_Page_for_TELEM-GWM&amp;diff=2201</id>
		<title>Custom Web Page for TELEM-GWM</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Custom_Web_Page_for_TELEM-GWM&amp;diff=2201"/>
		<updated>2019-05-31T12:29:12Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* What Features to Enable? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a basic guideline for developing custom web pages for TELEM-GWM. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]]. An example of custom developement can be found here [[GW6 web schema]]. &lt;br /&gt;
&lt;br /&gt;
=== What Features to Enable? ===&lt;br /&gt;
On figure 1 there are features than can be configured for web server. Under “IP settings” you can select firewall settings. On which interface the web server should be enabled and if there is a IP address that should have the exclusive access to the web page. Then the TCP port selection.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Under http one can disable dynamic server features. “Forbid output control” if checked disables control operations through web server. “Enable GW application logs ..” if checked instructs the web server to send content from log files. “Enable syslog” if checked permits sending of /var/log/messages to the web client. “Enable general information ..” if checked permits sending of firmware revision and some additional info about the device to the web client. “Enable configuration ...” if checked permits sending of the configuration file of the main application to the web client. “Enable events ..” if checked permits sending of events to the web client. Events are encoded in XML.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Under “User” and “Password” an authorization can be enabled. TELEM-GWM uses digest access authentication. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Under “Custom” a custom web content can be selected. You have to select folder. All content from that folder is sent to the TELEM-GWM to be displayed to the web client.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Under “SSL” secure socket layer can be enabled. There are two options to use: in device generated keys or,  user generated keys.&lt;br /&gt;
[[Image:WebServerSettings.png|283px|thumb|center|Figure 1: Web Server Settings]]&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
==== Three Password Attempts ====&lt;br /&gt;
Server uses session ID&#039;s to keep track of authenticated accesses to the server. Sessions timeout within 60 seconds. If you connect to server and set password wrongly for three times the used IP gets banned by firewall. Note this IP gets panned not only from web page but from the whole device. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If user forgets the password he can look it up from setup as it is in plain text. Alternative is to close the browser after two attempts and then retry. However server supports only 200 sessions and 50 connections per IP address(4 clients with 50 sessions each). Per client count can be further minimised by manually configuring the firewall. Note firewall state count differs from server IP count. That is if you remove the restrictions from firewall, web server will only support 50 connections per IP address and total of 200 sessions.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
All in all it means that only dummy users hitting 4 times the OK button in loging popup are rejected. Scripts like this work ok:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Get TELEM-GW content!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
array=( pass 12345 54321 martem123456 password qwerty kjhgfd )&lt;br /&gt;
&lt;br /&gt;
for i in &amp;quot;${array[@]}&amp;quot;&lt;br /&gt;
do   &lt;br /&gt;
    echo &amp;quot;Trying $i&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    rm index.html&lt;br /&gt;
    curl -s -S --user martem:$i --digest http://10.0.0.29 -o index.html&lt;br /&gt;
    &lt;br /&gt;
    status=`diff -s -q index.html error.html`&lt;br /&gt;
    &lt;br /&gt;
    if [ &amp;quot;$status&amp;quot; = &amp;quot;Files index.html and error.html differ&amp;quot; ]; then&lt;br /&gt;
        echo &amp;quot;Found, password=$i&amp;quot;&lt;br /&gt;
        exit 0&lt;br /&gt;
    fi&lt;br /&gt;
        &lt;br /&gt;
done&lt;br /&gt;
    &lt;br /&gt;
echo &amp;quot;Done, no password match&amp;quot;&lt;br /&gt;
&lt;br /&gt;
exit -1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
And the output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ date ; ./telem-gw.sh ; date&lt;br /&gt;
Fri Aug 16 13:43:36 EEST 2013&lt;br /&gt;
Get TELEM-GW content!&lt;br /&gt;
Trying pass&lt;br /&gt;
rm: cannot remove `index.html&#039;: No such file or directory&lt;br /&gt;
Trying 12345&lt;br /&gt;
Trying 54321&lt;br /&gt;
Trying martem123456&lt;br /&gt;
Trying password&lt;br /&gt;
Trying qwerty&lt;br /&gt;
Trying kjhgfd&lt;br /&gt;
Trying martem&lt;br /&gt;
Found, password=martem&lt;br /&gt;
Fri Aug 16 13:43:53 EEST 2013&lt;br /&gt;
$&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== No Automatic index.html from Subfolder(s) ====&lt;br /&gt;
Web server will not load automatically index.html or index.htm from subfolder(s).&lt;br /&gt;
==== No HTTP to HTTPS Redirection ====&lt;br /&gt;
You need to know which protocol is used. Don&#039;t worry the browser remembers the url&#039;s.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=TELEM-GW6e&amp;diff=2200</id>
		<title>TELEM-GW6e</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=TELEM-GW6e&amp;diff=2200"/>
		<updated>2019-05-31T12:20:06Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;0&amp;quot; width=&amp;quot;500&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;background-color:#FFFFCC&amp;quot;&lt;br /&gt;
! &amp;lt;h3 align=&amp;quot;left&amp;quot;&amp;gt;User manual&amp;lt;/h3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[Media:Telem-GW6e_usermanual_rev_11_2013Q3_RC2_.pdf|User Manual]] | [[Media:Telem-GW6e_usermanual_rev_11_2013Q3_RC2_.pdf|Faili ajalugu]]&lt;br /&gt;
|}&lt;br /&gt;
[[Image:Gw6e.jpg|right|thumb|500px|TELEM-GW6e]]&lt;br /&gt;
==General==&lt;br /&gt;
*[[GwLin Changelog |Firmware changelog]]&lt;br /&gt;
*[[GW6Lin software upgrade|Firmware upgrade]]&lt;br /&gt;
*[[Telem-RTC firmware upgrade| Telem-RTC Firmware upgrade]]&lt;br /&gt;
*[[GW6Lin reading log files|Reading log files]]&lt;br /&gt;
*[[GW6Lin configuration through FTP |Configuration through FTP]]&lt;br /&gt;
*[[Connect to GW6 over SSH]]&lt;br /&gt;
*[[GW6 web schema]]&lt;br /&gt;
*[[Gw XML setup]]&lt;br /&gt;
*[[Which GWS should I use with my GW6 |Which GWS to use?]]&lt;br /&gt;
*[[Telem-GW6e CPU frequency]]&lt;br /&gt;
*[[Account Management]]&lt;br /&gt;
&lt;br /&gt;
==Base board==&lt;br /&gt;
*[[Telem-GW6Lin]]&lt;br /&gt;
==Add-on boards==&lt;br /&gt;
* [[TELEM-COM8]]&lt;br /&gt;
* [[TELEM-RTC]]&lt;br /&gt;
&lt;br /&gt;
=Using Other Manufacturers Devices with GW6e=&lt;br /&gt;
*[[Actaris ACE6000]]&lt;br /&gt;
*[[Kuidas konfigureerida IEC61850 serverit GW6e jaoks?]]&lt;br /&gt;
*[[VPN(Virtual_Private_Networking)]]&lt;br /&gt;
*[[Advanced Networking]] (for GW6 old models that use setup version 3)&lt;br /&gt;
*[[Advanced Networking: OpenVPN]] (for GW6 old models that use setup version 3)&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
*[[IEC61850]]&lt;br /&gt;
*[[TELEM-GW6_testing_manual | test procedure]]&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
*[[ GW6e Conformance Test ]] IEC 101&lt;br /&gt;
*[[Flashing PXA27M bootloader]]&lt;br /&gt;
*[[Bootstrapping PXA27M modules]]&lt;br /&gt;
*[[Telem-GW6Lin-build-qtcreator|Qt Creator setup for GW6e]]&lt;br /&gt;
*[[Git help]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2199</id>
		<title>VPN(Virtual Private Networking)</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2199"/>
		<updated>2019-05-31T10:06:28Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* VPN Setups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not a tutorial on OpenVPN or on IPsec. It gives general overview of different setups and shows options found from configuration software gws.exe. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]].&lt;br /&gt;
&lt;br /&gt;
=== VPN Setups ===&lt;br /&gt;
We have two typical configuration possibilities: site to site and remote access. Site to site is more suited when persistent connectivity is needed. For instance from RTU to Network Control Center(NCC). Remote access is provided for cases when non persistent access is needed or when persistent tunnel is not needed. For example remote management(configuration changes or etc) from different locations with dynamic IP address. Figure 1 illustrates this general concept.&lt;br /&gt;
[[File:vpn.png|629px|thumb|center|Figure 1: General Model for VPN Deploiments]]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With OpenVPN ===&lt;br /&gt;
&lt;br /&gt;
In order to configure site to site VPN with OpenVPN open Common → OpenVPN. From opened dialog box click on Add. “Server address” and “Server port” are the WAN address and UDP port of the server. That means that we support OpenVPN&#039;s mode tls-client over UDP. Click on buttons “CA cert”, “Cert” and “Key” in order to select certificates for client. By default routes are pulled from server. This is needed in order the device knows what to send to VPN tunnels and what IP address to use for tunnel interface. “Fragment” 0 means that default setting for OpenVPN is used.&lt;br /&gt;
[[File:OpenVPN-Default.png|342px|thumb|center|Figure 2: Default OpenVPN Client Configuration Dialog]]&lt;br /&gt;
Figure 2 shows default configuration dialog box. Note that pink fields are mandatory and that default “Server address”, “Local IP” and “Remote IP ” are probably not suitable for your needs. Figure 3 shows production configuration where WAN IP and port and certificates are selected and configured.&lt;br /&gt;
[[File:OpenVPN-NonDefault.png|342px|thumb|center|Figure 3: Configuration for interface tun0]]&lt;br /&gt;
&lt;br /&gt;
More info OpenVPN can be found here [http://openvpn.net/index.php/open-source/documentation/howto.html]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With IPsec ===&lt;br /&gt;
In order to configure site to site VPN with IPSec open Common → IPSec and click on Add. From drop down menus select Encryption, Authentication and other parameters for phase 1 and 2 to suit your needs. Parameter Local select which local networks to tunnel over IPSec. “Remote networks” selects  “Remote Peers” local networks to tunnel over IPSec. Figure 4 shows default configuration dialog for IPsec and figure 5 setup used in testing.&lt;br /&gt;
&lt;br /&gt;
NB! Remote network &amp;amp; subnet has to match the real remote configuration (LAN network?), otherwise PHASE 2 fails. If you see the following error messages, then this may be the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ERROR: failed to pre-process ph2 packet (side: 1, status: 1)&lt;br /&gt;
ERROR: failed to get sainfo.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:IPSec-Default.png|395px|thumb|center|Figure 4: Default IPsec Tunnel Configuration Dialog]]&lt;br /&gt;
[[File:IPSec-NonDefault.png|420px|thumb|center|Figure 5: IPSec Minimum Configuration]]&lt;br /&gt;
&lt;br /&gt;
In order to view if tunnel is up issue “setkey -D” or use racoonctl. For instance &amp;quot;racoonctl -l show-sa isakmp&amp;quot; for phase 1 and &amp;quot;racoonctl -l show-sa ipsec&amp;quot; for phase 2. Here is an example output form “setkey -D”, which shows an open tunnel between 10.0.0.111(Telem-GWM) and 10.0.0.86:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ setkey -D&lt;br /&gt;
10.0.0.111 10.0.0.86&lt;br /&gt;
        esp mode=tunnel spi=30607459(0x01d30863) reqid=16384(0x00004000)&lt;br /&gt;
        E: blowfish-cbc  72dce7f9 a84cb8bf 8a8d2e68 53779039 781eb0c9&lt;br /&gt;
        A: hmac-sha1  bc848381 1b957927 615d9700 689dc79e a17ca699&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=1 pid=17474 refcnt=0&lt;br /&gt;
10.0.0.86 10.0.0.111&lt;br /&gt;
        esp mode=tunnel spi=137118544(0x082c4350) reqid=16385(0x00004001)&lt;br /&gt;
        E: blowfish-cbc  c322fad3 5d74cfb9 929123fc beafbd64 0975acd6&lt;br /&gt;
        A: hmac-sha1  2d8bb180 68e67033 be2f2e52 608c4a45 939bde84&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=0 pid=17474 refcnt=0&lt;br /&gt;
root@telem-gwm /home/martem $&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here is the syslog output showing racoon setting this tunnel up:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ cat /var/log/messages | grep racoon | more&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon needs to be started&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon error, restarting&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)ipsec-tools 0.8.0 (http://ipsec-tools.sourceforge.net)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)This product linked OpenSSL 1.0.1e 11 Feb 2013 (http://www.openssl.org/)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: Reading configuration from &amp;quot;/etc/racoon/racoon.conf&amp;quot;&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used as isakmp port (fd=8)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used as isakmp port (fd=9)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used as isakmp port (fd=10)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used as isakmp port (fd=11)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used as isakmp port (fd=12)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used as isakmp port (fd=13)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=14)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=15)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used as isakmp port (fd=16)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used as isakmp port (fd=17)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[500] used as isakmp port (fd=18)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[4500] used as isakmp port (fd=19)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[500] used as isakmp port (fd=20)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[4500] used as isakmp port (fd=21)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[500] used as isakmp port (fd=22)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[4500] used as isakmp port (fd=23)&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: respond new phase 1 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: begin Identity Protection mode.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-00&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received broken Microsoft ID: FRAGMENTATION&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: DPD&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Selected NAT-T version: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #0 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #1 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT not detected&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: Adding remote and local NAT-D payloads.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: ISAKMP-SA established 10.0.0.111[500]-10.0.0.86[500] spi:842249519def9f59:ff13cdb628283bc3&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: received INITIAL-CONTACT&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For troubleshooting use command “tail -f /var/log/messages | grep racoon”. This shows real time racoon messages. Here is the example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ tail -f  /var/log/messages | grep racoon&lt;br /&gt;
Apr 25 11:04:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=137118544(0x82c4350)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=165979047(0x9e4a3a7)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=20748511(0x13c98df)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info about racoon, racoonctl and setkey can be found here [http://ipsec-tools.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
=== Remote Access with L2TP/IPSec ===&lt;br /&gt;
In order to configure L2TP/IPSec open Common → L2TP, check “LNS Enable” check box and turn on IPSec protection for L2TP by checking the IPSec check box.&lt;br /&gt;
[[File:L2TP-IPSec-Default.png|497px|thumb|center|Figure 6: L2TP/IPSec Default Settings]]&lt;br /&gt;
[[File:L2TP-IPSec-NonDefault.png|494px|thumb|center|Figure 7: Minimal L2TP/IPSec Settings]]&lt;br /&gt;
Figure 6 shows default settings and figure 7 minimal settings. Note the IP column and selection under Users. This is needed in order to limit access with firewall. If IP is not selected then device assigns an IP from pool that starts with “Remote Start IP” and ends with “Remote Stop IP”. As this assignment is dynamic it is not possible to configure firewall by username. This means that users without assigned IP cannot access the TELEM-GWM but can probably access other resources on the local LAN. Needless to say that systems on production networks should not have an account with  “Password” pass and “IPSec pre-shared key”  pass.&lt;br /&gt;
&lt;br /&gt;
=== Set up Remote Access with L2TP/IPSec in Windows. ===&lt;br /&gt;
&lt;br /&gt;
Got to &amp;quot;Control Panel&amp;quot; -&amp;gt; &amp;quot;Network and Internet&amp;quot; -&amp;gt; &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Set up a new connection or network&amp;quot; under &amp;quot;Change your networking settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Set Up a Connection or Netwrok&amp;quot; window choose &amp;quot;Connect to a workplace&amp;quot; -&amp;gt; &amp;quot;Use my Interent connection (VPN)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type GWM&#039;s exteranl IP address in the &amp;quot;Internet address&amp;quot; field and click Next&lt;br /&gt;
&lt;br /&gt;
Type in your L2TP user and password and proceed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows will try to establish a connection rigth away. Click &amp;quot;Skip&amp;quot; for now&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go back to &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Change Adapter Settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click on VPN connection with the right mouse button and choose &amp;quot;Properties&amp;quot; in the drop-down menu&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter_VPN.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the upcoming menu open the &amp;quot;Security&amp;quot; tab and set the &amp;quot;Type of VPN:&amp;quot; to &amp;quot;Layer 2 Tunneling Protocol with IPsec(L2TP/IPSec)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:VPN_sectab.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Advanced settings&amp;quot; in the same tab. Pick &amp;quot;Use preshared key for authentication&amp;quot; and enter the IPSec pre-shared key in the &amp;quot;Key:&amp;quot; field&lt;br /&gt;
&lt;br /&gt;
[[File:WIN_VPN_secadv.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;OK&amp;quot; to save changes and close &amp;quot;Advanced Settings&amp;quot; window. Click &amp;quot;OK&amp;quot; to close the current &amp;quot;VPN Conection Properties&amp;quot; window.&lt;br /&gt;
Now the newly created VPN point should be visible in &amp;quot;Network Connections&amp;quot; window&lt;br /&gt;
&lt;br /&gt;
[[File:Network_connections.jpg|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
=== Known Working Client or Server Software ===&lt;br /&gt;
This is the list of know third party software that is compatible with TELEM-GWM.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenVPN:&lt;br /&gt;
* pfSense 2.0.1-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IPsec:&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools, with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon and setkey configurations.&lt;br /&gt;
* pfSense 2.0.3-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
* Cisco SR520-FE with IOS 12.4(20)T6. A good reference for racoon with third party software can be found here: [http://www.admin-magazine.com/Articles/Cross-Vendor-IPsec]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
L2TP/IPSec:&lt;br /&gt;
* Windows 7&lt;br /&gt;
* Mac OS 10.4&lt;br /&gt;
* Android 4.1.2 on Nexus 7(Asus tablet), Android 4.0.3 on HTC phone&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools and xl2tpd with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon, setkey and xl2tpd configurations.&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
Here is a list of some of the known caveats with different VPN setups.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* As OpenVPN uses certificates it is essential that device has correct time. It means that at least NTP client needs to be configured for device that uses OpenVPN. This can be done under Common → Time Settings.&lt;br /&gt;
* IPSec is probably only usable with fixed IP addresses. If TELEM-GWM has dynamic IP use OpenVPN or L2TP.&lt;br /&gt;
* L2TP works only with one LAC(client) behind network address translation device.&lt;br /&gt;
* LNS accounts with fixed IP for LAC are usable only by one instance. If two sessions are established all traffic is sent to only one session.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2198</id>
		<title>VPN(Virtual Private Networking)</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2198"/>
		<updated>2019-05-31T10:06:17Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Site to Site With OpenVPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not a tutorial on OpenVPN or on IPsec. It gives general overview of different setups and shows options found from configuration software gws.exe. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]].&lt;br /&gt;
&lt;br /&gt;
=== VPN Setups ===&lt;br /&gt;
We have two typical configuration possibilities: site to site and remote access. Site to site is more suited when persistent connectivity is needed. For instance from RTU to Network Control Center(NCC). Remote access is provided for cases when non persistent access is needed or when persistent tunnel is not needed. For example remote management(configuration changes or etc) from different locations with dynamic IP address. Figure 1 illustrates this general concept.&lt;br /&gt;
[[Pilt:vpn.png|629px|thumb|center|Figure 1: General Model for VPN Deploiments]]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With OpenVPN ===&lt;br /&gt;
&lt;br /&gt;
In order to configure site to site VPN with OpenVPN open Common → OpenVPN. From opened dialog box click on Add. “Server address” and “Server port” are the WAN address and UDP port of the server. That means that we support OpenVPN&#039;s mode tls-client over UDP. Click on buttons “CA cert”, “Cert” and “Key” in order to select certificates for client. By default routes are pulled from server. This is needed in order the device knows what to send to VPN tunnels and what IP address to use for tunnel interface. “Fragment” 0 means that default setting for OpenVPN is used.&lt;br /&gt;
[[File:OpenVPN-Default.png|342px|thumb|center|Figure 2: Default OpenVPN Client Configuration Dialog]]&lt;br /&gt;
Figure 2 shows default configuration dialog box. Note that pink fields are mandatory and that default “Server address”, “Local IP” and “Remote IP ” are probably not suitable for your needs. Figure 3 shows production configuration where WAN IP and port and certificates are selected and configured.&lt;br /&gt;
[[File:OpenVPN-NonDefault.png|342px|thumb|center|Figure 3: Configuration for interface tun0]]&lt;br /&gt;
&lt;br /&gt;
More info OpenVPN can be found here [http://openvpn.net/index.php/open-source/documentation/howto.html]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With IPsec ===&lt;br /&gt;
In order to configure site to site VPN with IPSec open Common → IPSec and click on Add. From drop down menus select Encryption, Authentication and other parameters for phase 1 and 2 to suit your needs. Parameter Local select which local networks to tunnel over IPSec. “Remote networks” selects  “Remote Peers” local networks to tunnel over IPSec. Figure 4 shows default configuration dialog for IPsec and figure 5 setup used in testing.&lt;br /&gt;
&lt;br /&gt;
NB! Remote network &amp;amp; subnet has to match the real remote configuration (LAN network?), otherwise PHASE 2 fails. If you see the following error messages, then this may be the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ERROR: failed to pre-process ph2 packet (side: 1, status: 1)&lt;br /&gt;
ERROR: failed to get sainfo.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:IPSec-Default.png|395px|thumb|center|Figure 4: Default IPsec Tunnel Configuration Dialog]]&lt;br /&gt;
[[File:IPSec-NonDefault.png|420px|thumb|center|Figure 5: IPSec Minimum Configuration]]&lt;br /&gt;
&lt;br /&gt;
In order to view if tunnel is up issue “setkey -D” or use racoonctl. For instance &amp;quot;racoonctl -l show-sa isakmp&amp;quot; for phase 1 and &amp;quot;racoonctl -l show-sa ipsec&amp;quot; for phase 2. Here is an example output form “setkey -D”, which shows an open tunnel between 10.0.0.111(Telem-GWM) and 10.0.0.86:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ setkey -D&lt;br /&gt;
10.0.0.111 10.0.0.86&lt;br /&gt;
        esp mode=tunnel spi=30607459(0x01d30863) reqid=16384(0x00004000)&lt;br /&gt;
        E: blowfish-cbc  72dce7f9 a84cb8bf 8a8d2e68 53779039 781eb0c9&lt;br /&gt;
        A: hmac-sha1  bc848381 1b957927 615d9700 689dc79e a17ca699&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=1 pid=17474 refcnt=0&lt;br /&gt;
10.0.0.86 10.0.0.111&lt;br /&gt;
        esp mode=tunnel spi=137118544(0x082c4350) reqid=16385(0x00004001)&lt;br /&gt;
        E: blowfish-cbc  c322fad3 5d74cfb9 929123fc beafbd64 0975acd6&lt;br /&gt;
        A: hmac-sha1  2d8bb180 68e67033 be2f2e52 608c4a45 939bde84&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=0 pid=17474 refcnt=0&lt;br /&gt;
root@telem-gwm /home/martem $&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here is the syslog output showing racoon setting this tunnel up:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ cat /var/log/messages | grep racoon | more&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon needs to be started&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon error, restarting&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)ipsec-tools 0.8.0 (http://ipsec-tools.sourceforge.net)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)This product linked OpenSSL 1.0.1e 11 Feb 2013 (http://www.openssl.org/)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: Reading configuration from &amp;quot;/etc/racoon/racoon.conf&amp;quot;&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used as isakmp port (fd=8)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used as isakmp port (fd=9)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used as isakmp port (fd=10)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used as isakmp port (fd=11)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used as isakmp port (fd=12)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used as isakmp port (fd=13)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=14)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=15)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used as isakmp port (fd=16)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used as isakmp port (fd=17)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[500] used as isakmp port (fd=18)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[4500] used as isakmp port (fd=19)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[500] used as isakmp port (fd=20)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[4500] used as isakmp port (fd=21)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[500] used as isakmp port (fd=22)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[4500] used as isakmp port (fd=23)&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: respond new phase 1 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: begin Identity Protection mode.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-00&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received broken Microsoft ID: FRAGMENTATION&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: DPD&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Selected NAT-T version: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #0 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #1 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT not detected&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: Adding remote and local NAT-D payloads.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: ISAKMP-SA established 10.0.0.111[500]-10.0.0.86[500] spi:842249519def9f59:ff13cdb628283bc3&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: received INITIAL-CONTACT&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For troubleshooting use command “tail -f /var/log/messages | grep racoon”. This shows real time racoon messages. Here is the example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ tail -f  /var/log/messages | grep racoon&lt;br /&gt;
Apr 25 11:04:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=137118544(0x82c4350)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=165979047(0x9e4a3a7)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=20748511(0x13c98df)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info about racoon, racoonctl and setkey can be found here [http://ipsec-tools.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
=== Remote Access with L2TP/IPSec ===&lt;br /&gt;
In order to configure L2TP/IPSec open Common → L2TP, check “LNS Enable” check box and turn on IPSec protection for L2TP by checking the IPSec check box.&lt;br /&gt;
[[File:L2TP-IPSec-Default.png|497px|thumb|center|Figure 6: L2TP/IPSec Default Settings]]&lt;br /&gt;
[[File:L2TP-IPSec-NonDefault.png|494px|thumb|center|Figure 7: Minimal L2TP/IPSec Settings]]&lt;br /&gt;
Figure 6 shows default settings and figure 7 minimal settings. Note the IP column and selection under Users. This is needed in order to limit access with firewall. If IP is not selected then device assigns an IP from pool that starts with “Remote Start IP” and ends with “Remote Stop IP”. As this assignment is dynamic it is not possible to configure firewall by username. This means that users without assigned IP cannot access the TELEM-GWM but can probably access other resources on the local LAN. Needless to say that systems on production networks should not have an account with  “Password” pass and “IPSec pre-shared key”  pass.&lt;br /&gt;
&lt;br /&gt;
=== Set up Remote Access with L2TP/IPSec in Windows. ===&lt;br /&gt;
&lt;br /&gt;
Got to &amp;quot;Control Panel&amp;quot; -&amp;gt; &amp;quot;Network and Internet&amp;quot; -&amp;gt; &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Set up a new connection or network&amp;quot; under &amp;quot;Change your networking settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Set Up a Connection or Netwrok&amp;quot; window choose &amp;quot;Connect to a workplace&amp;quot; -&amp;gt; &amp;quot;Use my Interent connection (VPN)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type GWM&#039;s exteranl IP address in the &amp;quot;Internet address&amp;quot; field and click Next&lt;br /&gt;
&lt;br /&gt;
Type in your L2TP user and password and proceed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows will try to establish a connection rigth away. Click &amp;quot;Skip&amp;quot; for now&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go back to &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Change Adapter Settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click on VPN connection with the right mouse button and choose &amp;quot;Properties&amp;quot; in the drop-down menu&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter_VPN.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the upcoming menu open the &amp;quot;Security&amp;quot; tab and set the &amp;quot;Type of VPN:&amp;quot; to &amp;quot;Layer 2 Tunneling Protocol with IPsec(L2TP/IPSec)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:VPN_sectab.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Advanced settings&amp;quot; in the same tab. Pick &amp;quot;Use preshared key for authentication&amp;quot; and enter the IPSec pre-shared key in the &amp;quot;Key:&amp;quot; field&lt;br /&gt;
&lt;br /&gt;
[[File:WIN_VPN_secadv.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;OK&amp;quot; to save changes and close &amp;quot;Advanced Settings&amp;quot; window. Click &amp;quot;OK&amp;quot; to close the current &amp;quot;VPN Conection Properties&amp;quot; window.&lt;br /&gt;
Now the newly created VPN point should be visible in &amp;quot;Network Connections&amp;quot; window&lt;br /&gt;
&lt;br /&gt;
[[File:Network_connections.jpg|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
=== Known Working Client or Server Software ===&lt;br /&gt;
This is the list of know third party software that is compatible with TELEM-GWM.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenVPN:&lt;br /&gt;
* pfSense 2.0.1-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IPsec:&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools, with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon and setkey configurations.&lt;br /&gt;
* pfSense 2.0.3-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
* Cisco SR520-FE with IOS 12.4(20)T6. A good reference for racoon with third party software can be found here: [http://www.admin-magazine.com/Articles/Cross-Vendor-IPsec]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
L2TP/IPSec:&lt;br /&gt;
* Windows 7&lt;br /&gt;
* Mac OS 10.4&lt;br /&gt;
* Android 4.1.2 on Nexus 7(Asus tablet), Android 4.0.3 on HTC phone&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools and xl2tpd with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon, setkey and xl2tpd configurations.&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
Here is a list of some of the known caveats with different VPN setups.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* As OpenVPN uses certificates it is essential that device has correct time. It means that at least NTP client needs to be configured for device that uses OpenVPN. This can be done under Common → Time Settings.&lt;br /&gt;
* IPSec is probably only usable with fixed IP addresses. If TELEM-GWM has dynamic IP use OpenVPN or L2TP.&lt;br /&gt;
* L2TP works only with one LAC(client) behind network address translation device.&lt;br /&gt;
* LNS accounts with fixed IP for LAC are usable only by one instance. If two sessions are established all traffic is sent to only one session.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2197</id>
		<title>VPN(Virtual Private Networking)</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2197"/>
		<updated>2019-05-31T10:06:02Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Site to Site With IPsec */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not a tutorial on OpenVPN or on IPsec. It gives general overview of different setups and shows options found from configuration software gws.exe. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]].&lt;br /&gt;
&lt;br /&gt;
=== VPN Setups ===&lt;br /&gt;
We have two typical configuration possibilities: site to site and remote access. Site to site is more suited when persistent connectivity is needed. For instance from RTU to Network Control Center(NCC). Remote access is provided for cases when non persistent access is needed or when persistent tunnel is not needed. For example remote management(configuration changes or etc) from different locations with dynamic IP address. Figure 1 illustrates this general concept.&lt;br /&gt;
[[Pilt:vpn.png|629px|thumb|center|Figure 1: General Model for VPN Deploiments]]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With OpenVPN ===&lt;br /&gt;
&lt;br /&gt;
In order to configure site to site VPN with OpenVPN open Common → OpenVPN. From opened dialog box click on Add. “Server address” and “Server port” are the WAN address and UDP port of the server. That means that we support OpenVPN&#039;s mode tls-client over UDP. Click on buttons “CA cert”, “Cert” and “Key” in order to select certificates for client. By default routes are pulled from server. This is needed in order the device knows what to send to VPN tunnels and what IP address to use for tunnel interface. “Fragment” 0 means that default setting for OpenVPN is used.&lt;br /&gt;
[[Pilt:OpenVPN-Default.png|342px|thumb|center|Figure 2: Default OpenVPN Client Configuration Dialog]]&lt;br /&gt;
Figure 2 shows default configuration dialog box. Note that pink fields are mandatory and that default “Server address”, “Local IP” and “Remote IP ” are probably not suitable for your needs. Figure 3 shows production configuration where WAN IP and port and certificates are selected and configured.&lt;br /&gt;
[[Pilt:OpenVPN-NonDefault.png|342px|thumb|center|Figure 3: Configuration for interface tun0]]&lt;br /&gt;
&lt;br /&gt;
More info OpenVPN can be found here [http://openvpn.net/index.php/open-source/documentation/howto.html]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With IPsec ===&lt;br /&gt;
In order to configure site to site VPN with IPSec open Common → IPSec and click on Add. From drop down menus select Encryption, Authentication and other parameters for phase 1 and 2 to suit your needs. Parameter Local select which local networks to tunnel over IPSec. “Remote networks” selects  “Remote Peers” local networks to tunnel over IPSec. Figure 4 shows default configuration dialog for IPsec and figure 5 setup used in testing.&lt;br /&gt;
&lt;br /&gt;
NB! Remote network &amp;amp; subnet has to match the real remote configuration (LAN network?), otherwise PHASE 2 fails. If you see the following error messages, then this may be the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ERROR: failed to pre-process ph2 packet (side: 1, status: 1)&lt;br /&gt;
ERROR: failed to get sainfo.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:IPSec-Default.png|395px|thumb|center|Figure 4: Default IPsec Tunnel Configuration Dialog]]&lt;br /&gt;
[[File:IPSec-NonDefault.png|420px|thumb|center|Figure 5: IPSec Minimum Configuration]]&lt;br /&gt;
&lt;br /&gt;
In order to view if tunnel is up issue “setkey -D” or use racoonctl. For instance &amp;quot;racoonctl -l show-sa isakmp&amp;quot; for phase 1 and &amp;quot;racoonctl -l show-sa ipsec&amp;quot; for phase 2. Here is an example output form “setkey -D”, which shows an open tunnel between 10.0.0.111(Telem-GWM) and 10.0.0.86:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ setkey -D&lt;br /&gt;
10.0.0.111 10.0.0.86&lt;br /&gt;
        esp mode=tunnel spi=30607459(0x01d30863) reqid=16384(0x00004000)&lt;br /&gt;
        E: blowfish-cbc  72dce7f9 a84cb8bf 8a8d2e68 53779039 781eb0c9&lt;br /&gt;
        A: hmac-sha1  bc848381 1b957927 615d9700 689dc79e a17ca699&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=1 pid=17474 refcnt=0&lt;br /&gt;
10.0.0.86 10.0.0.111&lt;br /&gt;
        esp mode=tunnel spi=137118544(0x082c4350) reqid=16385(0x00004001)&lt;br /&gt;
        E: blowfish-cbc  c322fad3 5d74cfb9 929123fc beafbd64 0975acd6&lt;br /&gt;
        A: hmac-sha1  2d8bb180 68e67033 be2f2e52 608c4a45 939bde84&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=0 pid=17474 refcnt=0&lt;br /&gt;
root@telem-gwm /home/martem $&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here is the syslog output showing racoon setting this tunnel up:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ cat /var/log/messages | grep racoon | more&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon needs to be started&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon error, restarting&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)ipsec-tools 0.8.0 (http://ipsec-tools.sourceforge.net)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)This product linked OpenSSL 1.0.1e 11 Feb 2013 (http://www.openssl.org/)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: Reading configuration from &amp;quot;/etc/racoon/racoon.conf&amp;quot;&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used as isakmp port (fd=8)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used as isakmp port (fd=9)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used as isakmp port (fd=10)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used as isakmp port (fd=11)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used as isakmp port (fd=12)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used as isakmp port (fd=13)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=14)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=15)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used as isakmp port (fd=16)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used as isakmp port (fd=17)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[500] used as isakmp port (fd=18)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[4500] used as isakmp port (fd=19)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[500] used as isakmp port (fd=20)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[4500] used as isakmp port (fd=21)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[500] used as isakmp port (fd=22)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[4500] used as isakmp port (fd=23)&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: respond new phase 1 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: begin Identity Protection mode.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-00&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received broken Microsoft ID: FRAGMENTATION&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: DPD&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Selected NAT-T version: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #0 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #1 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT not detected&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: Adding remote and local NAT-D payloads.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: ISAKMP-SA established 10.0.0.111[500]-10.0.0.86[500] spi:842249519def9f59:ff13cdb628283bc3&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: received INITIAL-CONTACT&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For troubleshooting use command “tail -f /var/log/messages | grep racoon”. This shows real time racoon messages. Here is the example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ tail -f  /var/log/messages | grep racoon&lt;br /&gt;
Apr 25 11:04:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=137118544(0x82c4350)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=165979047(0x9e4a3a7)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=20748511(0x13c98df)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info about racoon, racoonctl and setkey can be found here [http://ipsec-tools.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
=== Remote Access with L2TP/IPSec ===&lt;br /&gt;
In order to configure L2TP/IPSec open Common → L2TP, check “LNS Enable” check box and turn on IPSec protection for L2TP by checking the IPSec check box.&lt;br /&gt;
[[File:L2TP-IPSec-Default.png|497px|thumb|center|Figure 6: L2TP/IPSec Default Settings]]&lt;br /&gt;
[[File:L2TP-IPSec-NonDefault.png|494px|thumb|center|Figure 7: Minimal L2TP/IPSec Settings]]&lt;br /&gt;
Figure 6 shows default settings and figure 7 minimal settings. Note the IP column and selection under Users. This is needed in order to limit access with firewall. If IP is not selected then device assigns an IP from pool that starts with “Remote Start IP” and ends with “Remote Stop IP”. As this assignment is dynamic it is not possible to configure firewall by username. This means that users without assigned IP cannot access the TELEM-GWM but can probably access other resources on the local LAN. Needless to say that systems on production networks should not have an account with  “Password” pass and “IPSec pre-shared key”  pass.&lt;br /&gt;
&lt;br /&gt;
=== Set up Remote Access with L2TP/IPSec in Windows. ===&lt;br /&gt;
&lt;br /&gt;
Got to &amp;quot;Control Panel&amp;quot; -&amp;gt; &amp;quot;Network and Internet&amp;quot; -&amp;gt; &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Set up a new connection or network&amp;quot; under &amp;quot;Change your networking settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Set Up a Connection or Netwrok&amp;quot; window choose &amp;quot;Connect to a workplace&amp;quot; -&amp;gt; &amp;quot;Use my Interent connection (VPN)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type GWM&#039;s exteranl IP address in the &amp;quot;Internet address&amp;quot; field and click Next&lt;br /&gt;
&lt;br /&gt;
Type in your L2TP user and password and proceed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows will try to establish a connection rigth away. Click &amp;quot;Skip&amp;quot; for now&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go back to &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Change Adapter Settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click on VPN connection with the right mouse button and choose &amp;quot;Properties&amp;quot; in the drop-down menu&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter_VPN.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the upcoming menu open the &amp;quot;Security&amp;quot; tab and set the &amp;quot;Type of VPN:&amp;quot; to &amp;quot;Layer 2 Tunneling Protocol with IPsec(L2TP/IPSec)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:VPN_sectab.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Advanced settings&amp;quot; in the same tab. Pick &amp;quot;Use preshared key for authentication&amp;quot; and enter the IPSec pre-shared key in the &amp;quot;Key:&amp;quot; field&lt;br /&gt;
&lt;br /&gt;
[[File:WIN_VPN_secadv.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;OK&amp;quot; to save changes and close &amp;quot;Advanced Settings&amp;quot; window. Click &amp;quot;OK&amp;quot; to close the current &amp;quot;VPN Conection Properties&amp;quot; window.&lt;br /&gt;
Now the newly created VPN point should be visible in &amp;quot;Network Connections&amp;quot; window&lt;br /&gt;
&lt;br /&gt;
[[File:Network_connections.jpg|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
=== Known Working Client or Server Software ===&lt;br /&gt;
This is the list of know third party software that is compatible with TELEM-GWM.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenVPN:&lt;br /&gt;
* pfSense 2.0.1-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IPsec:&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools, with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon and setkey configurations.&lt;br /&gt;
* pfSense 2.0.3-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
* Cisco SR520-FE with IOS 12.4(20)T6. A good reference for racoon with third party software can be found here: [http://www.admin-magazine.com/Articles/Cross-Vendor-IPsec]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
L2TP/IPSec:&lt;br /&gt;
* Windows 7&lt;br /&gt;
* Mac OS 10.4&lt;br /&gt;
* Android 4.1.2 on Nexus 7(Asus tablet), Android 4.0.3 on HTC phone&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools and xl2tpd with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon, setkey and xl2tpd configurations.&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
Here is a list of some of the known caveats with different VPN setups.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* As OpenVPN uses certificates it is essential that device has correct time. It means that at least NTP client needs to be configured for device that uses OpenVPN. This can be done under Common → Time Settings.&lt;br /&gt;
* IPSec is probably only usable with fixed IP addresses. If TELEM-GWM has dynamic IP use OpenVPN or L2TP.&lt;br /&gt;
* L2TP works only with one LAC(client) behind network address translation device.&lt;br /&gt;
* LNS accounts with fixed IP for LAC are usable only by one instance. If two sessions are established all traffic is sent to only one session.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2196</id>
		<title>VPN(Virtual Private Networking)</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2196"/>
		<updated>2019-05-31T10:05:47Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Remote Access with L2TP/IPSec */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not a tutorial on OpenVPN or on IPsec. It gives general overview of different setups and shows options found from configuration software gws.exe. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]].&lt;br /&gt;
&lt;br /&gt;
=== VPN Setups ===&lt;br /&gt;
We have two typical configuration possibilities: site to site and remote access. Site to site is more suited when persistent connectivity is needed. For instance from RTU to Network Control Center(NCC). Remote access is provided for cases when non persistent access is needed or when persistent tunnel is not needed. For example remote management(configuration changes or etc) from different locations with dynamic IP address. Figure 1 illustrates this general concept.&lt;br /&gt;
[[Pilt:vpn.png|629px|thumb|center|Figure 1: General Model for VPN Deploiments]]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With OpenVPN ===&lt;br /&gt;
&lt;br /&gt;
In order to configure site to site VPN with OpenVPN open Common → OpenVPN. From opened dialog box click on Add. “Server address” and “Server port” are the WAN address and UDP port of the server. That means that we support OpenVPN&#039;s mode tls-client over UDP. Click on buttons “CA cert”, “Cert” and “Key” in order to select certificates for client. By default routes are pulled from server. This is needed in order the device knows what to send to VPN tunnels and what IP address to use for tunnel interface. “Fragment” 0 means that default setting for OpenVPN is used.&lt;br /&gt;
[[Pilt:OpenVPN-Default.png|342px|thumb|center|Figure 2: Default OpenVPN Client Configuration Dialog]]&lt;br /&gt;
Figure 2 shows default configuration dialog box. Note that pink fields are mandatory and that default “Server address”, “Local IP” and “Remote IP ” are probably not suitable for your needs. Figure 3 shows production configuration where WAN IP and port and certificates are selected and configured.&lt;br /&gt;
[[Pilt:OpenVPN-NonDefault.png|342px|thumb|center|Figure 3: Configuration for interface tun0]]&lt;br /&gt;
&lt;br /&gt;
More info OpenVPN can be found here [http://openvpn.net/index.php/open-source/documentation/howto.html]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With IPsec ===&lt;br /&gt;
In order to configure site to site VPN with IPSec open Common → IPSec and click on Add. From drop down menus select Encryption, Authentication and other parameters for phase 1 and 2 to suit your needs. Parameter Local select which local networks to tunnel over IPSec. “Remote networks” selects  “Remote Peers” local networks to tunnel over IPSec. Figure 4 shows default configuration dialog for IPsec and figure 5 setup used in testing.&lt;br /&gt;
&lt;br /&gt;
NB! Remote network &amp;amp; subnet has to match the real remote configuration (LAN network?), otherwise PHASE 2 fails. If you see the following error messages, then this may be the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ERROR: failed to pre-process ph2 packet (side: 1, status: 1)&lt;br /&gt;
ERROR: failed to get sainfo.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Pilt:IPSec-Default.png|395px|thumb|center|Figure 4: Default IPsec Tunnel Configuration Dialog]]&lt;br /&gt;
[[Pilt:IPSec-NonDefault.png|420px|thumb|center|Figure 5: IPSec Minimum Configuration]]&lt;br /&gt;
&lt;br /&gt;
In order to view if tunnel is up issue “setkey -D” or use racoonctl. For instance &amp;quot;racoonctl -l show-sa isakmp&amp;quot; for phase 1 and &amp;quot;racoonctl -l show-sa ipsec&amp;quot; for phase 2. Here is an example output form “setkey -D”, which shows an open tunnel between 10.0.0.111(Telem-GWM) and 10.0.0.86:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ setkey -D&lt;br /&gt;
10.0.0.111 10.0.0.86&lt;br /&gt;
        esp mode=tunnel spi=30607459(0x01d30863) reqid=16384(0x00004000)&lt;br /&gt;
        E: blowfish-cbc  72dce7f9 a84cb8bf 8a8d2e68 53779039 781eb0c9&lt;br /&gt;
        A: hmac-sha1  bc848381 1b957927 615d9700 689dc79e a17ca699&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=1 pid=17474 refcnt=0&lt;br /&gt;
10.0.0.86 10.0.0.111&lt;br /&gt;
        esp mode=tunnel spi=137118544(0x082c4350) reqid=16385(0x00004001)&lt;br /&gt;
        E: blowfish-cbc  c322fad3 5d74cfb9 929123fc beafbd64 0975acd6&lt;br /&gt;
        A: hmac-sha1  2d8bb180 68e67033 be2f2e52 608c4a45 939bde84&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=0 pid=17474 refcnt=0&lt;br /&gt;
root@telem-gwm /home/martem $&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here is the syslog output showing racoon setting this tunnel up:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ cat /var/log/messages | grep racoon | more&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon needs to be started&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon error, restarting&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)ipsec-tools 0.8.0 (http://ipsec-tools.sourceforge.net)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)This product linked OpenSSL 1.0.1e 11 Feb 2013 (http://www.openssl.org/)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: Reading configuration from &amp;quot;/etc/racoon/racoon.conf&amp;quot;&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used as isakmp port (fd=8)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used as isakmp port (fd=9)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used as isakmp port (fd=10)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used as isakmp port (fd=11)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used as isakmp port (fd=12)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used as isakmp port (fd=13)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=14)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=15)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used as isakmp port (fd=16)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used as isakmp port (fd=17)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[500] used as isakmp port (fd=18)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[4500] used as isakmp port (fd=19)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[500] used as isakmp port (fd=20)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[4500] used as isakmp port (fd=21)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[500] used as isakmp port (fd=22)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[4500] used as isakmp port (fd=23)&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: respond new phase 1 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: begin Identity Protection mode.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-00&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received broken Microsoft ID: FRAGMENTATION&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: DPD&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Selected NAT-T version: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #0 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #1 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT not detected&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: Adding remote and local NAT-D payloads.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: ISAKMP-SA established 10.0.0.111[500]-10.0.0.86[500] spi:842249519def9f59:ff13cdb628283bc3&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: received INITIAL-CONTACT&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For troubleshooting use command “tail -f /var/log/messages | grep racoon”. This shows real time racoon messages. Here is the example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ tail -f  /var/log/messages | grep racoon&lt;br /&gt;
Apr 25 11:04:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=137118544(0x82c4350)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=165979047(0x9e4a3a7)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=20748511(0x13c98df)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info about racoon, racoonctl and setkey can be found here [http://ipsec-tools.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
=== Remote Access with L2TP/IPSec ===&lt;br /&gt;
In order to configure L2TP/IPSec open Common → L2TP, check “LNS Enable” check box and turn on IPSec protection for L2TP by checking the IPSec check box.&lt;br /&gt;
[[File:L2TP-IPSec-Default.png|497px|thumb|center|Figure 6: L2TP/IPSec Default Settings]]&lt;br /&gt;
[[File:L2TP-IPSec-NonDefault.png|494px|thumb|center|Figure 7: Minimal L2TP/IPSec Settings]]&lt;br /&gt;
Figure 6 shows default settings and figure 7 minimal settings. Note the IP column and selection under Users. This is needed in order to limit access with firewall. If IP is not selected then device assigns an IP from pool that starts with “Remote Start IP” and ends with “Remote Stop IP”. As this assignment is dynamic it is not possible to configure firewall by username. This means that users without assigned IP cannot access the TELEM-GWM but can probably access other resources on the local LAN. Needless to say that systems on production networks should not have an account with  “Password” pass and “IPSec pre-shared key”  pass.&lt;br /&gt;
&lt;br /&gt;
=== Set up Remote Access with L2TP/IPSec in Windows. ===&lt;br /&gt;
&lt;br /&gt;
Got to &amp;quot;Control Panel&amp;quot; -&amp;gt; &amp;quot;Network and Internet&amp;quot; -&amp;gt; &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Set up a new connection or network&amp;quot; under &amp;quot;Change your networking settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Set Up a Connection or Netwrok&amp;quot; window choose &amp;quot;Connect to a workplace&amp;quot; -&amp;gt; &amp;quot;Use my Interent connection (VPN)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type GWM&#039;s exteranl IP address in the &amp;quot;Internet address&amp;quot; field and click Next&lt;br /&gt;
&lt;br /&gt;
Type in your L2TP user and password and proceed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows will try to establish a connection rigth away. Click &amp;quot;Skip&amp;quot; for now&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go back to &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Change Adapter Settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click on VPN connection with the right mouse button and choose &amp;quot;Properties&amp;quot; in the drop-down menu&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter_VPN.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the upcoming menu open the &amp;quot;Security&amp;quot; tab and set the &amp;quot;Type of VPN:&amp;quot; to &amp;quot;Layer 2 Tunneling Protocol with IPsec(L2TP/IPSec)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:VPN_sectab.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Advanced settings&amp;quot; in the same tab. Pick &amp;quot;Use preshared key for authentication&amp;quot; and enter the IPSec pre-shared key in the &amp;quot;Key:&amp;quot; field&lt;br /&gt;
&lt;br /&gt;
[[File:WIN_VPN_secadv.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;OK&amp;quot; to save changes and close &amp;quot;Advanced Settings&amp;quot; window. Click &amp;quot;OK&amp;quot; to close the current &amp;quot;VPN Conection Properties&amp;quot; window.&lt;br /&gt;
Now the newly created VPN point should be visible in &amp;quot;Network Connections&amp;quot; window&lt;br /&gt;
&lt;br /&gt;
[[File:Network_connections.jpg|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
=== Known Working Client or Server Software ===&lt;br /&gt;
This is the list of know third party software that is compatible with TELEM-GWM.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenVPN:&lt;br /&gt;
* pfSense 2.0.1-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IPsec:&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools, with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon and setkey configurations.&lt;br /&gt;
* pfSense 2.0.3-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
* Cisco SR520-FE with IOS 12.4(20)T6. A good reference for racoon with third party software can be found here: [http://www.admin-magazine.com/Articles/Cross-Vendor-IPsec]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
L2TP/IPSec:&lt;br /&gt;
* Windows 7&lt;br /&gt;
* Mac OS 10.4&lt;br /&gt;
* Android 4.1.2 on Nexus 7(Asus tablet), Android 4.0.3 on HTC phone&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools and xl2tpd with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon, setkey and xl2tpd configurations.&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
Here is a list of some of the known caveats with different VPN setups.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* As OpenVPN uses certificates it is essential that device has correct time. It means that at least NTP client needs to be configured for device that uses OpenVPN. This can be done under Common → Time Settings.&lt;br /&gt;
* IPSec is probably only usable with fixed IP addresses. If TELEM-GWM has dynamic IP use OpenVPN or L2TP.&lt;br /&gt;
* L2TP works only with one LAC(client) behind network address translation device.&lt;br /&gt;
* LNS accounts with fixed IP for LAC are usable only by one instance. If two sessions are established all traffic is sent to only one session.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2195</id>
		<title>VPN(Virtual Private Networking)</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=VPN(Virtual_Private_Networking)&amp;diff=2195"/>
		<updated>2019-05-31T10:05:23Z</updated>

		<summary type="html">&lt;p&gt;Igor: /* Set up Remote Access with L2TP/IPSec in Windows. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not a tutorial on OpenVPN or on IPsec. It gives general overview of different setups and shows options found from configuration software gws.exe. It is assumed that reader is familiar with TELEM-GWM configuration software gws.exe and understands how to secure the device. Securing the device is described in [[Basic Security]].&lt;br /&gt;
&lt;br /&gt;
=== VPN Setups ===&lt;br /&gt;
We have two typical configuration possibilities: site to site and remote access. Site to site is more suited when persistent connectivity is needed. For instance from RTU to Network Control Center(NCC). Remote access is provided for cases when non persistent access is needed or when persistent tunnel is not needed. For example remote management(configuration changes or etc) from different locations with dynamic IP address. Figure 1 illustrates this general concept.&lt;br /&gt;
[[Pilt:vpn.png|629px|thumb|center|Figure 1: General Model for VPN Deploiments]]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With OpenVPN ===&lt;br /&gt;
&lt;br /&gt;
In order to configure site to site VPN with OpenVPN open Common → OpenVPN. From opened dialog box click on Add. “Server address” and “Server port” are the WAN address and UDP port of the server. That means that we support OpenVPN&#039;s mode tls-client over UDP. Click on buttons “CA cert”, “Cert” and “Key” in order to select certificates for client. By default routes are pulled from server. This is needed in order the device knows what to send to VPN tunnels and what IP address to use for tunnel interface. “Fragment” 0 means that default setting for OpenVPN is used.&lt;br /&gt;
[[Pilt:OpenVPN-Default.png|342px|thumb|center|Figure 2: Default OpenVPN Client Configuration Dialog]]&lt;br /&gt;
Figure 2 shows default configuration dialog box. Note that pink fields are mandatory and that default “Server address”, “Local IP” and “Remote IP ” are probably not suitable for your needs. Figure 3 shows production configuration where WAN IP and port and certificates are selected and configured.&lt;br /&gt;
[[Pilt:OpenVPN-NonDefault.png|342px|thumb|center|Figure 3: Configuration for interface tun0]]&lt;br /&gt;
&lt;br /&gt;
More info OpenVPN can be found here [http://openvpn.net/index.php/open-source/documentation/howto.html]&lt;br /&gt;
&lt;br /&gt;
=== Site to Site With IPsec ===&lt;br /&gt;
In order to configure site to site VPN with IPSec open Common → IPSec and click on Add. From drop down menus select Encryption, Authentication and other parameters for phase 1 and 2 to suit your needs. Parameter Local select which local networks to tunnel over IPSec. “Remote networks” selects  “Remote Peers” local networks to tunnel over IPSec. Figure 4 shows default configuration dialog for IPsec and figure 5 setup used in testing.&lt;br /&gt;
&lt;br /&gt;
NB! Remote network &amp;amp; subnet has to match the real remote configuration (LAN network?), otherwise PHASE 2 fails. If you see the following error messages, then this may be the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ERROR: failed to pre-process ph2 packet (side: 1, status: 1)&lt;br /&gt;
ERROR: failed to get sainfo.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Pilt:IPSec-Default.png|395px|thumb|center|Figure 4: Default IPsec Tunnel Configuration Dialog]]&lt;br /&gt;
[[Pilt:IPSec-NonDefault.png|420px|thumb|center|Figure 5: IPSec Minimum Configuration]]&lt;br /&gt;
&lt;br /&gt;
In order to view if tunnel is up issue “setkey -D” or use racoonctl. For instance &amp;quot;racoonctl -l show-sa isakmp&amp;quot; for phase 1 and &amp;quot;racoonctl -l show-sa ipsec&amp;quot; for phase 2. Here is an example output form “setkey -D”, which shows an open tunnel between 10.0.0.111(Telem-GWM) and 10.0.0.86:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ setkey -D&lt;br /&gt;
10.0.0.111 10.0.0.86&lt;br /&gt;
        esp mode=tunnel spi=30607459(0x01d30863) reqid=16384(0x00004000)&lt;br /&gt;
        E: blowfish-cbc  72dce7f9 a84cb8bf 8a8d2e68 53779039 781eb0c9&lt;br /&gt;
        A: hmac-sha1  bc848381 1b957927 615d9700 689dc79e a17ca699&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=1 pid=17474 refcnt=0&lt;br /&gt;
10.0.0.86 10.0.0.111&lt;br /&gt;
        esp mode=tunnel spi=137118544(0x082c4350) reqid=16385(0x00004001)&lt;br /&gt;
        E: blowfish-cbc  c322fad3 5d74cfb9 929123fc beafbd64 0975acd6&lt;br /&gt;
        A: hmac-sha1  2d8bb180 68e67033 be2f2e52 608c4a45 939bde84&lt;br /&gt;
        seq=0x00000000 replay=4 flags=0x00000000 state=dying&lt;br /&gt;
        created: Apr 25 10:16:40 2013   current: Apr 25 11:14:45 2013&lt;br /&gt;
        diff: 3485(s)   hard: 3600(s)   soft: 2880(s)&lt;br /&gt;
        last:                           hard: 0(s)      soft: 0(s)&lt;br /&gt;
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)&lt;br /&gt;
        allocated: 0    hard: 0 soft: 0&lt;br /&gt;
        sadb_seq=0 pid=17474 refcnt=0&lt;br /&gt;
root@telem-gwm /home/martem $&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here is the syslog output showing racoon setting this tunnel up:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ cat /var/log/messages | grep racoon | more&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon needs to be started&lt;br /&gt;
Apr 25 09:08:55 telem-gwm user.notice root: IPSec: racoon error, restarting&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)ipsec-tools 0.8.0 (http://ipsec-tools.sourceforge.net)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: @(#)This product linked OpenSSL 1.0.1e 11 Feb 2013 (http://www.openssl.org/)&lt;br /&gt;
Apr 25 09:08:55 telem-gwm daemon.info racoon: INFO: Reading configuration from &amp;quot;/etc/racoon/racoon.conf&amp;quot;&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[500] used as isakmp port (fd=8)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.2.111[4500] used as isakmp port (fd=9)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[500] used as isakmp port (fd=10)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 10.0.0.111[4500] used as isakmp port (fd=11)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[500] used as isakmp port (fd=12)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 192.168.1.111[4500] used as isakmp port (fd=13)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=14)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=15)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[500] used as isakmp port (fd=16)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used for NAT-T&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: 127.0.0.0[4500] used as isakmp port (fd=17)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[500] used as isakmp port (fd=18)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::20d:15ff:fe00:af98%eth0[4500] used as isakmp port (fd=19)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[500] used as isakmp port (fd=20)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e1%eth1[4500] used as isakmp port (fd=21)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[500] used as isakmp port (fd=22)&lt;br /&gt;
Apr 25 09:08:57 telem-gwm daemon.info racoon: INFO: fe80::250:b6ff:fe0d:66e6%eth2[4500] used as isakmp port (fd=23)&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: respond new phase 1 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: begin Identity Protection mode.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-00&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received broken Microsoft ID: FRAGMENTATION&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: received Vendor ID: DPD&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Selected NAT-T version: RFC 3947&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #0 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT-D payload #1 verified&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: NAT not detected&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: Hashing 10.0.0.86[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.111] INFO: Hashing 10.0.0.111[500] with algo #2&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: Adding remote and local NAT-D payloads.&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: INFO: ISAKMP-SA established 10.0.0.111[500]-10.0.0.86[500] spi:842249519def9f59:ff13cdb628283bc3&lt;br /&gt;
Apr 25 09:28:38 telem-gwm daemon.info racoon: [10.0.0.86] INFO: received INITIAL-CONTACT&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 09:28:39 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=179131318(0xaad53b6)&lt;br /&gt;
Apr 25 10:16:39 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=193541716(0xb893654)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For troubleshooting use command “tail -f /var/log/messages | grep racoon”. This shows real time racoon messages. Here is the example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@telem-gwm /home/martem $ tail -f  /var/log/messages | grep racoon&lt;br /&gt;
Apr 25 11:04:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.86[500]-&amp;gt;10.0.0.111[500] spi=137118544(0x82c4350)&lt;br /&gt;
Apr 25 11:16:40 telem-gwm daemon.info racoon: INFO: IPsec-SA expired: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=30607459(0x1d30863)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: respond new phase 2 negotiation: 10.0.0.111[500]&amp;lt;=&amp;gt;10.0.0.86[500]&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=165979047(0x9e4a3a7)&lt;br /&gt;
Apr 25 11:22:58 telem-gwm daemon.info racoon: INFO: IPsec-SA established: ESP/Tunnel 10.0.0.111[500]-&amp;gt;10.0.0.86[500] spi=20748511(0x13c98df)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info about racoon, racoonctl and setkey can be found here [http://ipsec-tools.sourceforge.net/]&lt;br /&gt;
&lt;br /&gt;
=== Remote Access with L2TP/IPSec ===&lt;br /&gt;
In order to configure L2TP/IPSec open Common → L2TP, check “LNS Enable” check box and turn on IPSec protection for L2TP by checking the IPSec check box.&lt;br /&gt;
[[Pilt:L2TP-IPSec-Default.png|497px|thumb|center|Figure 6: L2TP/IPSec Default Settings]]&lt;br /&gt;
[[Pilt:L2TP-IPSec-NonDefault.png|494px|thumb|center|Figure 7: Minimal L2TP/IPSec Settings]]&lt;br /&gt;
Figure 6 shows default settings and figure 7 minimal settings. Note the IP column and selection under Users. This is needed in order to limit access with firewall. If IP is not selected then device assigns an IP from pool that starts with “Remote Start IP” and ends with “Remote Stop IP”. As this assignment is dynamic it is not possible to configure firewall by username. This means that users without assigned IP cannot access the TELEM-GWM but can probably access other resources on the local LAN. Needless to say that systems on production networks should not have an account with  “Password” pass and “IPSec pre-shared key”  pass.&lt;br /&gt;
&lt;br /&gt;
=== Set up Remote Access with L2TP/IPSec in Windows. ===&lt;br /&gt;
&lt;br /&gt;
Got to &amp;quot;Control Panel&amp;quot; -&amp;gt; &amp;quot;Network and Internet&amp;quot; -&amp;gt; &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Set up a new connection or network&amp;quot; under &amp;quot;Change your networking settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Set Up a Connection or Netwrok&amp;quot; window choose &amp;quot;Connect to a workplace&amp;quot; -&amp;gt; &amp;quot;Use my Interent connection (VPN)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type GWM&#039;s exteranl IP address in the &amp;quot;Internet address&amp;quot; field and click Next&lt;br /&gt;
&lt;br /&gt;
Type in your L2TP user and password and proceed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows will try to establish a connection rigth away. Click &amp;quot;Skip&amp;quot; for now&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go back to &amp;quot;Network and Sharing Center&amp;quot; and open &amp;quot;Change Adapter Settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click on VPN connection with the right mouse button and choose &amp;quot;Properties&amp;quot; in the drop-down menu&lt;br /&gt;
&lt;br /&gt;
[[File:Nasc_adapter_VPN.jpg|629px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
In the upcoming menu open the &amp;quot;Security&amp;quot; tab and set the &amp;quot;Type of VPN:&amp;quot; to &amp;quot;Layer 2 Tunneling Protocol with IPsec(L2TP/IPSec)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[File:VPN_sectab.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Advanced settings&amp;quot; in the same tab. Pick &amp;quot;Use preshared key for authentication&amp;quot; and enter the IPSec pre-shared key in the &amp;quot;Key:&amp;quot; field&lt;br /&gt;
&lt;br /&gt;
[[File:WIN_VPN_secadv.jpg|300px|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;OK&amp;quot; to save changes and close &amp;quot;Advanced Settings&amp;quot; window. Click &amp;quot;OK&amp;quot; to close the current &amp;quot;VPN Conection Properties&amp;quot; window.&lt;br /&gt;
Now the newly created VPN point should be visible in &amp;quot;Network Connections&amp;quot; window&lt;br /&gt;
&lt;br /&gt;
[[File:Network_connections.jpg|thumb|center|]]&lt;br /&gt;
&lt;br /&gt;
=== Known Working Client or Server Software ===&lt;br /&gt;
This is the list of know third party software that is compatible with TELEM-GWM.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenVPN:&lt;br /&gt;
* pfSense 2.0.1-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IPsec:&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools, with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon and setkey configurations.&lt;br /&gt;
* pfSense 2.0.3-RELEASE [http://www.pfsense.org/]&lt;br /&gt;
* Cisco SR520-FE with IOS 12.4(20)T6. A good reference for racoon with third party software can be found here: [http://www.admin-magazine.com/Articles/Cross-Vendor-IPsec]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
L2TP/IPSec:&lt;br /&gt;
* Windows 7&lt;br /&gt;
* Mac OS 10.4&lt;br /&gt;
* Android 4.1.2 on Nexus 7(Asus tablet), Android 4.0.3 on HTC phone&lt;br /&gt;
* Ubuntu 12.04 LTS with ipsec-tools and xl2tpd with direct configuration not using any of the GUI software. Hint: use gws.exe to get racoon, setkey and xl2tpd configurations.&lt;br /&gt;
&lt;br /&gt;
=== Caveats ===&lt;br /&gt;
Here is a list of some of the known caveats with different VPN setups.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* As OpenVPN uses certificates it is essential that device has correct time. It means that at least NTP client needs to be configured for device that uses OpenVPN. This can be done under Common → Time Settings.&lt;br /&gt;
* IPSec is probably only usable with fixed IP addresses. If TELEM-GWM has dynamic IP use OpenVPN or L2TP.&lt;br /&gt;
* L2TP works only with one LAC(client) behind network address translation device.&lt;br /&gt;
* LNS accounts with fixed IP for LAC are usable only by one instance. If two sessions are established all traffic is sent to only one session.&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2194</id>
		<title>Kontakt</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2194"/>
		<updated>2019-02-13T13:40:44Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|+ Telefoni numbrid, e-mailid&lt;br /&gt;
! Nimi !! class=&amp;quot;unsortable&amp;quot; | Telefon !! class=&amp;quot;unsortable&amp;quot; | e-mail !! Amet !! Märkmed&lt;br /&gt;
|-&lt;br /&gt;
| Peter Nobel || +372 5119694 || [mailto:peter@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Jaan Eilart || +372 55654090 || [mailto:jaan.eilart@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Talvi Mäeunt || +372 6397979 || [mailto:martem@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Ülo Proode || +372 55691543 || [mailto:ylo@martem.ee töö] [mailto:ylo.proode@mail.ee isiklik]&lt;br /&gt;
|-&lt;br /&gt;
| Janek Sarjas || +372 53446127 || [mailto:janek@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Alfred Liin || +372 56959795 || [mailto:alfred.liin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Harri Trampärk || +372 5083780 || [mailto:harri@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Mark Tomm || +372 58426909 || [mailto:mark.tomm@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kermo Basov || +372 56925894 || [mailto:kermo.basov@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Igor Nehoroshev || +375 58310622 || [mailto:igor.nehoroshev@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Aleksandr Koskin || +372 58131851 || [mailto:aleksandr.koskin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Hannes Metsalu || +372 59816818 || [mailto:hannes.metsalu@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Robert Putnik || +372 56095670 || [mailto:robert.putnik@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kristjan Kruuser || +372 56902884 || [mailto:kristjan.kruuser@martem.ee töö]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Uue rea lisamiseks tabelisse kopeeri ja muuda järgnevad 2 rida.&lt;br /&gt;
|-&lt;br /&gt;
| Sinu nimi || telefoni number || [mailto:sinumeiliaadress@martem.ee kirjeldus-töö/kodu/vms]&lt;br /&gt;
--!&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2193</id>
		<title>Kontakt</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2193"/>
		<updated>2019-02-13T13:35:11Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|+ Telefoni numbrid, e-mailid&lt;br /&gt;
! Nimi !! class=&amp;quot;unsortable&amp;quot; | Telefon !! class=&amp;quot;unsortable&amp;quot; | e-mail !! Amet !! Märkmed&lt;br /&gt;
|-&lt;br /&gt;
| Peter Nobel || +372 5119694 || [mailto:peter@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Ülo Proode || +372 55691543 || [mailto:ylo@martem.ee töö] [mailto:ylo.proode@mail.ee isiklik]&lt;br /&gt;
|-&lt;br /&gt;
| Janek Sarjas || +372 53446127 || [mailto:janek@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Alfred Liin || +372 56959795 || [mailto:alfred.liin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Harri Trampärk || +372 5083780 || [mailto:harri@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Mark Tomm || +372 58426909 || [mailto:mark.tomm@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kermo Basov || +372 56925894 || [mailto:kermo.basov@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Igor Nehoroshev || +375 58310622 || [mailto:igor.nehoroshev@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Aleksandr Koskin || +372 58131851 || [mailto:aleksandr.koskin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Hannes Metsalu || +372 59816818 || [mailto:hannes.metsalu@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Robert Putnik || +372 56095670 || [mailto:robert.putnik@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kristjan Kruuser || +372 56902884 || [mailto:kristjan.kruuser@martem.ee töö]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Uue rea lisamiseks tabelisse kopeeri ja muuda järgnevad 2 rida.&lt;br /&gt;
|-&lt;br /&gt;
| Sinu nimi || telefoni number || [mailto:sinumeiliaadress@martem.ee kirjeldus-töö/kodu/vms]&lt;br /&gt;
--!&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2190</id>
		<title>Kontakt</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2190"/>
		<updated>2018-12-07T15:33:10Z</updated>

		<summary type="html">&lt;p&gt;Igor: Remove data of person who no longer works at Martem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|+ Telefoni numbrid, e-mailid&lt;br /&gt;
! Nimi !! class=&amp;quot;unsortable&amp;quot; | Telefon !! class=&amp;quot;unsortable&amp;quot; | e-mail !! Amet !! Märkmed&lt;br /&gt;
|-&lt;br /&gt;
| Peter Nobel || +372 5119694 || [mailto:peter@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Ülo Proode || +372 55691543 || [mailto:ylo@martem.ee töö] [mailto:ylo.proode@mail.ee isiklik]&lt;br /&gt;
|-&lt;br /&gt;
| Aldur Järvalt || +372 5077430 || [mailto:aldur.jarvalt@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Janek Sarjas || +372 53446127 || [mailto:janek@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Alfred Liin || +372 56959795 || [mailto:alfred.liin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Harri Trampärk || +372 5083780 || [mailto:harri@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Mark Tomm || +372 58426909 || [mailto:mark.tomm@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kermo Basov || +372 56925894 || [mailto:kermo.basov@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Igor Nehoroshev || +375 58310622 || [mailto:igor.nehoroshev@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Aleksandr Koskin || +372 58131851 || [mailto:aleksandr.koskin@martem.ee töö]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Uue rea lisamiseks tabelisse kopeeri ja muuda järgnevad 2 rida.&lt;br /&gt;
|-&lt;br /&gt;
| Sinu nimi || telefoni number || [mailto:sinumeiliaadress@martem.ee kirjeldus-töö/kodu/vms]&lt;br /&gt;
--!&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2189</id>
		<title>Kontakt</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2189"/>
		<updated>2018-09-19T13:56:23Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|+ Telefoni numbrid, e-mailid&lt;br /&gt;
! Nimi !! class=&amp;quot;unsortable&amp;quot; | Telefon !! class=&amp;quot;unsortable&amp;quot; | e-mail !! Amet !! Märkmed&lt;br /&gt;
|-&lt;br /&gt;
| Peter Nobel || +372 5119694 || [mailto:peter@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Ülo Proode || +372 55691543 || [mailto:ylo@martem.ee töö] [mailto:ylo.proode@mail.ee isiklik]&lt;br /&gt;
|-&lt;br /&gt;
| Aldur Järvalt || +372 5077430 || [mailto:aldur.jarvalt@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Janek Sarjas || +372 53446127 || [mailto:janek@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Alfred Liin || +372 56959795 || [mailto:alfred.liin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Harri Trampärk || +372 5083780 || [mailto:harri@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Andrus Kaljumäe || +372 56213684 || [mailto:andrus.kaljumae@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Mark Tomm || +372 58426909 || [mailto:mark.tomm@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kermo Basov || +372 56925894 || [mailto:kermo.basov@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Igor Nehoroshev || +375 58310622 || [mailto:igor.nehoroshev@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Aleksandr Koskin || +372 58131851 || [mailto:aleksandr.koskin@martem.ee töö]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Uue rea lisamiseks tabelisse kopeeri ja muuda järgnevad 2 rida.&lt;br /&gt;
|-&lt;br /&gt;
| Sinu nimi || telefoni number || [mailto:sinumeiliaadress@martem.ee kirjeldus-töö/kodu/vms]&lt;br /&gt;
--!&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2188</id>
		<title>Kontakt</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Kontakt&amp;diff=2188"/>
		<updated>2018-09-19T13:56:09Z</updated>

		<summary type="html">&lt;p&gt;Igor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; class=&amp;quot;sortable&amp;quot;&lt;br /&gt;
|+ Telefoni numbrid, e-mailid&lt;br /&gt;
! Nimi !! class=&amp;quot;unsortable&amp;quot; | Telefon !! class=&amp;quot;unsortable&amp;quot; | e-mail !! Amet !! Märkmed&lt;br /&gt;
|-&lt;br /&gt;
| Peter Nobel || +372 5119694 || [mailto:peter@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Ülo Proode || +372 55691543 || [mailto:ylo@martem.ee töö] [mailto:ylo.proode@mail.ee isiklik]&lt;br /&gt;
|-&lt;br /&gt;
| Aldur Järvalt || +372 5077430 || [mailto:aldur.jarvalt@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Janek Sarjas || +372 53446127 || [mailto:janek@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Alfred Liin || +372 56959795 || [mailto:alfred.liin@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Harri Trampärk || +372 5083780 || [mailto:harri@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Andrus Kaljumäe || +372 56213684 || [mailto:andrus.kaljumae@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Mark Tomm || +372 58426909 || [mailto:mark.tomm@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Kermo Basov || +372 56925894 || [mailto:kermo.basov@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Igor Nehoroshev || +375 58310622 || [mailto:igor.nehoroshev@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Priit Reinmets || +375 5115209 || [mailto:priit.reinmets@martem.ee töö]&lt;br /&gt;
|-&lt;br /&gt;
| Aleksandr Koskin || +372 58131851 || [mailto:aleksandr.koskin@martem.ee töö]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Uue rea lisamiseks tabelisse kopeeri ja muuda järgnevad 2 rida.&lt;br /&gt;
|-&lt;br /&gt;
| Sinu nimi || telefoni number || [mailto:sinumeiliaadress@martem.ee kirjeldus-töö/kodu/vms]&lt;br /&gt;
--!&amp;gt;&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
</feed>