Wiki source code of 06 VPN pass-through

Last modified by Joe on 2024/11/29 15:21

Hide last authors
Mora Zhou 87.1 1 == VPN pass-through ==
Theodore Xu 15.1 2
Theodore Xu 27.1 3 **Functional overview**:VPN pass-through is to add PC to the Local Area Network where the device is located. It can be imagined that PC "replaces" the device at this time, and PC can access any PLC in this Local Area Network where the device is located.
Theodore Xu 24.1 4
Theodore Xu 25.1 5 (% style="text-align:center" %)
6 [[image:介绍.png]]
7
Theodore Xu 62.1 8 (% class="wikigeneratedid" id="HDevicelist" %)
9 **~ Device list**
Theodore Xu 22.1 10
11 * Display all support VPN pass-through devices under current account
12 * (((
13 Right-click menu, search box is consistent with PLC pass-through
14 )))
15
Theodore Xu 62.1 16 (% class="wikigeneratedid" id="HRemoteLANIP" %)
17 **~ Remote LAN IP**
Theodore Xu 22.1 18
19 VPN pass-through required parameters, DHCP/Static IP of pass-through IP
20
Theodore Xu 62.1 21 (% class="wikigeneratedid" id="HDeviceinformation" %)
22 **~ Device information**
Theodore Xu 22.1 23
24 Display device machine code, name, device status and other information
25
Theodore Xu 62.1 26 (% class="wikigeneratedid" id="HStartpass-through2FEndpass-through" %)
27 **Start pass-through/End pass-through**
Theodore Xu 22.1 28
29 * Click Start pass-through, proceed VPN pass-through according to the setting LAN pass-through IP
30 * Click End pass-through to end VPN pass-through
31 * When the device is offline, the Start pass-through button cannot be clicked
32 * When the firmware version of the device is too low, the Start pass-through button cannot be clicked
33 * The current account does not have the permission of pass-through to this device or the device is shared by others, the Start pass-through button cannot be clicked
34 * When the current account has a device being pass-through, the Start pass-through button cannot be clicked
35 * (((
36 After clicking the Start pass-through button, the pass-through is successful, the button changes to End pass-through, and the device status color on the left side changes to yellow
37
38 {{info}}
39 ✎Note: The WVPN connection only lasting for 2 hours after user connect successfully, suggest to close the connection manually after done the debugging.
40 {{/info}}
41 )))
42
Theodore Xu 62.1 43 (% class="wikigeneratedid" id="HRefresh" %)
44 **Refresh**
Theodore Xu 22.1 45
46 Right-click in the blank area of the device list to pop up the global operation menu.
47
48 Right-click menu to select "Refresh" or use shortcut key "F5" to refresh the status.
49
Theodore Xu 62.1 50 (% class="wikigeneratedid" id="HStatustype" %)
51 **Status type**
Theodore Xu 22.1 52
53 There are 5 status of device in the Wecon VPN pass-through tool.
54
55 * Offline(Gray): Pass-through cannot be performed.
56 * Online(Green): Pass-through can be performed.
57 * Being in VPN pass-through(Yellow): In the status of VPN pass-through.
58 * Reconnecting VPN pass-through(Red): Due to network or other reasons, VPN pass-through is reconnecting.
59 * Ending VPN pass-through(Blue): VPN pass-through is ending.
60
Theodore Xu 62.1 61 (% class="wikigeneratedid" id="HHowtochoosethepass-throughIPofthePC." %)
62 **How to choose the pass-through IP of the PC.**
Theodore Xu 52.1 63
64 For PLC and PC LANs using the different network segment.
65
66 * The PLC is directly connected to the V-BOX, and all IPs that are not used by the PLC can be used in the network segment where the PLC is located.
67 * The PLC and V-BOX are connected through a router or switch, and all free IPs not used by the PLC and other devices on the network where the PLC is located can be used in the network segment where the PLC is located.
68
69 For PLC and PC LANs using the same network segment.
70
71 * The PLC is directly connected to the V-BOX and all free IPs not used by the PLC and other devices on the network where the PLC is located can be used within the network segment where the PLC is located.
72 * The PLC and V-BOX are connected through a router or switch, and all free IPs in the network segment where the PLC is located that are not used by the PLC, other devices on the network where the PLC is located, and other devices on the network where the PC is located can be used.
73
Theodore Xu 55.1 74 {{info}}
75 **✎Note:** If the selected IP address is occupied, the pass-through function will be failed.
76 {{/info}}
77
Mora Zhou 87.1 78 == Two modes of VPN ==
Theodore Xu 22.1 79
Theodore Xu 64.1 80 * **DHCP**: Enables the computer to randomly generate an Ethernet IP. **The generated IP segment is determined by the Ethernet configuration of the V-BOX!**
Theodore Xu 15.1 81
Theodore Xu 64.1 82 {{info}}
83 ✎Note: If the V-BOX is not configured with an Ethernet IP, dynamic mode of the VPN cannot be used!!!
84 {{/info}}
85
Theodore Xu 15.1 86 (% style="text-align:center" %)
Theodore Xu 17.1 87 [[image:动态IP.png||alt="动态穿透.png"]]
Theodore Xu 15.1 88
89 * (((
90 (% class="wikigeneratedid" %)
Theodore Xu 29.1 91 **Static IP**:Customize the generated IP address. static mode does not require setting up Ethernet configuration.
Theodore Xu 15.1 92 )))
93
94 (% style="text-align:center" %)
Theodore Xu 17.1 95 [[image:静态IP.png||alt="静态穿透.png"]]
Theodore Xu 15.1 96
Mora Zhou 87.1 97 == The networking methods supported by VPN ==
Theodore Xu 1.1 98
Theodore Xu 71.1 99 |Connects to the cloud|Vpn mode
Mora Zhou 86.1 100 |(% colspan="1" rowspan="2" %)Ethernet|(1) DHCP  
101 |(2) Static  
102 |(% colspan="1" rowspan="2" %)4G|(3) DHCP  
103 |(4) Static  
104 |(% colspan="1" rowspan="2" %)WIFI|(5) DHCP  
105 |(6) Static  
Theodore Xu 2.1 106
Mora Zhou 87.1 107 === **Cloud:Ethernet  VPN: DHCP** ===
Theodore Xu 2.1 108
Theodore Xu 67.1 109 (% class="wikigeneratedid" %)
Theodore Xu 79.1 110 Configute network(DHCP)
Theodore Xu 67.1 111
Theodore Xu 36.1 112 (% style="text-align:center" %)
113 [[image:动态联网.png]]
114
Theodore Xu 40.1 115 (% class="wikigeneratedid" id="HFF082FF09ConfigureEthernetnetworkingFF1AStaticA0IP" %)
Theodore Xu 42.1 116 This is the IP assigned to the Box by the Ethernet. The network segment of the Ethernet IP address, which determines the network segment after using the DHCP VPN pass-through.
Theodore Xu 3.1 117
118 (% style="text-align:center" %)
Theodore Xu 40.1 119 [[image:分配的动态IP.png]]
120
Theodore Xu 76.1 121 (% class="wikigeneratedid" %)
Theodore Xu 79.1 122 Configute network(Static)
123
124 (% style="text-align:center" %)
125 [[image:静态联网.png]]
126
127 (% class="wikigeneratedid" %)
Theodore Xu 76.1 128 At that time using VPN Pass-through:
Theodore Xu 40.1 129
Theodore Xu 76.1 130 * (((
131 VPN DCHP:After the Pass-through is complete a random IP will be generated for the 39 network segment, for example 192.168.39.XXX
Theodore Xu 77.1 132
133 (% style="text-align:center" %)
134 [[image:以太网动态穿透.png]]
135
Mora Zhou 87.1 136 === **Cloud: Ethernet  VPN: Static** ===
Theodore Xu 76.1 137
Theodore Xu 82.1 138 (% class="wikigeneratedid" %)
139 Static IP: please customize the generated IP address.
140 )))
Theodore Xu 67.1 141
Theodore Xu 38.1 142 {{info}}
Theodore Xu 45.1 143 ✎Note: When using a static IP to connect cloud, you need to set the configure the Preferred DNS Server and Altermate DNS Server. If you are using connecting by other methods, you do not need to configure the Preferred DNS Server and Altermate DNS Server.
Theodore Xu 38.1 144 {{/info}}
Theodore Xu 3.1 145
Theodore Xu 44.1 146 * (((
Theodore Xu 77.1 147 (% style="text-align:center" %)
148 [[image:以太网静态穿透.png]]
Theodore Xu 44.1 149 )))
150
Mora Zhou 87.1 151 === **Cloud: WIFI  VPN: DHCP** ===
Theodore Xu 38.1 152
Theodore Xu 82.1 153 Configute network(DHCP)
Theodore Xu 78.1 154
Theodore Xu 46.1 155 (% style="text-align:center" %)
Theodore Xu 79.1 156 [[image:WIF动态配置.png]]
Theodore Xu 46.1 157
Theodore Xu 82.1 158 Configute network(Static)
Theodore Xu 46.1 159
Theodore Xu 82.1 160 (% style="text-align:center" %)
161 [[image:WiFi静态配置.png]]
Theodore Xu 3.1 162
Theodore Xu 49.1 163 (% class="wikigeneratedid" id="H" %)
164 **~ **At this time, Ethernet is as the communication IP, WIFI is used to connect to the cloud.  
Theodore Xu 48.1 165
Theodore Xu 49.1 166 (% style="text-align:center" %)
167 [[image:wifi.png]]
Theodore Xu 48.1 168
Theodore Xu 49.1 169 (% class="wikigeneratedid" %)
170 At that time using VPN Pass-through:
171
172 * (((
173 VPN DCHP:After the Pass-through is complete a random IP will be generated for the **50** network segment, for example 192.168.**50**.XXX
174 )))
175 * (((
Theodore Xu 72.1 176 Static IP: please customize the generated IP address:192.168.50.XXX
Theodore Xu 49.1 177 )))
178
Mora Zhou 87.1 179 === **Cloud: WIFI  VPN: DHCP** ===
Theodore Xu 48.1 180
Theodore Xu 56.1 181 please refer to WIFI setting
Theodore Xu 3.1 182
183 (% style="text-align:center" %)
Theodore Xu 56.1 184 [[image:4G 联网.png]]
Theodore Xu 3.1 185
Mora Zhou 87.1 186 == Use the LAN port for communication ==
Theodore Xu 58.2 187
Theodore Xu 61.1 188 (% style="text-align:center" %)
189 [[image:LAN 口.png]]
190
Mora Zhou 87.1 191 == [[Problem and error checking>>https://docs.we-con.com.cn/bin/view/V-BOX/FAQ/VPN%20pass-through]] ==
Joe 88.1 192
193
Joe 92.1 194 == VPN port ==
Joe 88.2 195
Joe 90.1 196 There will be two ports opened in outbound of the V-box network, 17195 and 17196. The following step will show how to verify if two ports are permitted.
Joe 88.2 197
198 (% class="box infomessage" %)
199 (((
Joe 90.1 200 Note:
201
202 1.The following test must keep PC and V-box on the same LAN.
203
204 2.If the network of V-box is stable and it show "Failed to connect with server " in VPN through, please check the following step.
Joe 88.2 205 )))
206
Joe 88.3 207 === Enable Telnet Client Via Control Panel ===
Joe 88.2 208
Joe 88.3 209 Press "Win + R" and input "control" to enter Control Panel.
210
Joe 89.1 211 Programs→ Programs and Features→ "Turn Windows features on or off→ Enable Telnet Client→ OK → Wait for the installation to complete
212
Joe 88.3 213 (% style="text-align:center" %)
214 [[image:1732852208701-414.png]]
215
216
217 (% style="text-align:center" %)
218 [[image:YunMQJJDJk.png]]
219
220 (% style="text-align:center" %)
221 [[image:I4vbjIFU1y.png]]
222
223 (% style="text-align:center" %)
224 [[image:UQQq7y583D.png]]
225
226 (% style="text-align:center" %)
227 [[image:cQhAQl6qq1.png]]
228
229 === Select VPN server IP corresponding to V-Net server ===
230
Joe 88.2 231 Asean: 159.138.233.229
232
Joe 91.1 233 Europe:18.158.109.116
Joe 88.2 234
Joe 88.3 235 China: 114.115.203.209
236
Joe 89.1 237 Press "Win + R" and input "cmd" to enter Administrator.
Joe 88.2 238
239 (% style="text-align:center" %)
240 [[image:pWz2u4bPcu.png]]
241
Joe 88.3 242 Type "telnet IP port". For example, to test if Port 17195 is opened in the network in China VPN server. "telnet 114.115.203.209 17195" should be typed in the screen.
243
244 (% style="text-align:center" %)
245 [[image:qADCKoU5kk.png]]
246
247 Type "Enter" in keyboard and show the following screen, which means Port 17195 is opened.
248
249 (% style="text-align:center" %)
250 [[image:1732851254941-912.png]]
Joe 89.1 251
252