PLC Remote Access with OpenVPN Client and multiple PLCs Sharing same IPs/Subnets

I just can't get the server to run multiple instances at the same time for some reason. I have different ports and IPs but as soon as I activate it the current one running drops out and disconnects. I would like to have a server per customer to separate them. So one customers may have 5 remote sites with openwrt(rut240) and another customer with 2 sites and so on. I will set up wireguard on the rut240 today and attempt to get multiple server instances running.

This is the error from the log I get at times as well, but just not possible to run more than one server instance at a time it seems

2019-10-08 09:41:02.511: [TUN] [vpn] Unable to create Wintun interface: Error creating interface: Unable to set name of Wintun interface: NciSetConnectionName failed: The function attempted to use a name that is reserved for use by another transaction.

It looks like wireguard can't be installed on the RUT240 they must have changed something, unless there is another way.

root@Teltonika:~# opkg install wireguard
Unknown package 'wireguard'.
Collected errors:
 * opkg_install_cmd: Cannot install package wireguard.
root@Teltonika:~#

They both are problems of the proprietary software that you use and out of the scope of this forum.

1 Like

+1. Another example, that the professional approach is first to check the functionality, and then to choose the matching hardware.

1 Like

That's what I'm trying to achieve, so I bought only 2x RUT240 for testing and proof of concept to see if I can achieve my goal.

I think I have found out why, it's because wireguard is not in the list for some reason, whether it's been removed or doesn't support that architecture. I don't see wireguard in the others also.

https://downloads.openwrt.org/releases/18.06.4/packages/mips_24kc/packages/

Is there another way I can download it and install?

https://downloads.openwrt.org/releases/18.06.4/packages/mips_24kc/base/

Thanks psherman, any reason why it's not under packages? Does this mean it could already be on my device?

I must still have wring architecture

root@Teltonika:~# opkg install temp/wireguard_0.0.20190601-1_mips_24kc.ipk
Unknown package 'wireguard'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for wireguard found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package wireguard.

Atheros Hornet, MIPS 24Kc, 400 MHz Is the CPU and from what I could find on the OpenWRT website it should be mips_24kc

Maybe I'm just out of luck using these routers, I thought they were good choice being OpenWRT not realizing it was there own version. Is there a way to flash normal openWRT and WebUI as they are a nice little compact 4G LTE Router. I know it's not in the list of hardware but there may be a way.

I found out why it's probably not working... When I do a opkg update this is the link it goes to
http://archive.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base/
They are dated back to 2016 and wireguard not available then. How would I get around this?

Pay a developer to support recent openwrt on RUT240 OR buy other, already supported device. Few around.

I have had a look for other devices but haven't found anything as compact and robust (metal casing and din rail mounts and wide voltage supply) Unless you know of something suitable? So no way to load a generic version of OpenWRT AR71*** onto it or am I asking for trouble? Thanks

You may ask the guys at 8devices as they have compact industrial grade devices. I don't know about casings though.

https://etactica.com/products/gateway-eg/

EG-200 OpenWrt snapshot support available in ath79.


Seems to run on OpenWrt, but not officially supported AFAICS.

That gateway looks good just a shame it doesn't have built in 4G or anything, thanks for your suggestions

Do you think something like this will be suitable for my application?

https://www.gl-inet.com/products/gl-x750/

I have done a bit of a google and see it is supported hardware for OpenWRT
It does lack din rail and only 12vdc

DIN-rail mounts shouldn't be a KO-criterium. As your app seems to be commercial, a UPS for power is mandatory, anyway. And then: ZBT-WE1026, for a start.

I was actually going to try the WE826-T2 before this RUT240 but decided against it being Chinese/Aliexpress router and went with what was supposed to be an industrial router. I will return the RUT240 and get some WE826-T2. Would using a raspberry pi with OpenWRT be suitable?

Depends on the speeds you expect to achieve. The RasPis share the USB bus with the network controller so resources are shared and limited. Other than that they are supported.