How to connect open vpn in RUT200,RUT951 & RUTX50

Hi everyone, based on our client’s requirements, we are using 20 RUT200 routers, 32 RUT951 routers, and 1 RUTX50 router. The RUT200 routers are located in 20 different locations, and the RUT951 routers are in 32 different locations. We need to get data via TCP from separate PLCs. The RUTX50 router acts as the master router and is located in the master room. Now, my question is how do I get data from the PLCs, send it to the master router, and then transfer it to PCVue? What steps should I take? or master router RUTX50 is needed or not?

Hello,

In your use case, I’d suggest using WireGuard VPN, as it’s very light-weight and is very secure. It also will not require certificate generation for each device, and offers greater speeds when compared with IPsec and OpenVPN.
An extensive configuration example can be found here:
https://wiki.teltonika-networks.com/view/Wireguard_Peer_To_Peer_Configuration_example
It is important to note, that the server will require a public IP to be reachable from the other clients.
As for reading the data from the PLCs, could you specify what protocol is required for communication between the PLCs and the router? Do they utilize Modbus?
If so, the data from them can be read using the Modbus TCP Client functionality, and forwarded to your server using the Data to Server service via the VPN tunnel established earlier.
If more information is needed, please provide more information on the PLCs and I will help you determine the best way to send the data to a PCVue service.

Best regards,

1 Like

Hi we are getting data from Modbus TCP IP, For testing I had configured 1 RUTX50 as Server(Master) router and RUT200 as client-1.Now RUTX50 WAN port has been connected to the Broadband router which has Static IP and the LAN port of RUTX50 has connected to the PC with Wireguard and Pcvue software. I had made the connection as per the above link, I had checked RUTX50 CLI by using command of wg show this is the output,
root@RUTX50:
-# wg show
interface:
toclient
public key: DkiKg0*******
private key: (hidden) listening port: 51820
hOWS*****
endpoint:
allowed ips: 10.0.0.0/24
latest handshake: 1 minute, 59 seconds ago
transfer: 1.09 MiB received, 2.06 MiB sent
:mf2p*******
allowed ips: 192.168.2.0/24
in this the latest handshake is shown that means the connection has been successfully established from Wireguard PC software to RUTX50. Now I have a dowt how do i connect RUT200 Client to RUTX50 server?

This topic was automatically closed after 15 days. New replies are no longer allowed.

Hello,

Correct, Latest handshake indicates that connection is established.
As for how to add RUT200, simply configure it as a new peer on the RUTX50 the same way as the Wireguard software on the PC. Peer configuration is described here: Wireguard Peer To Peer Configuration example - Teltonika Networks Wiki
If you’d like to reach the PC from the RUT200, make sure to set the Forward flag to Allow in the Network → Firewall → General Settings menu. This way communication between peers will be possible.

1 Like