How-to
Point an eWon Cosy at a custom OpenVPN server
Short answer
SSH does not exist on the Ewon Cosy or Flexy, so the way to a custom OpenVPN server is the comcfg parameter VPNCfgFile pointing at a text config stored in /usr — documented for the Flexy and Cosy 131. Everything is applied through the built-in web server, and the tunnel is verified against your server, not Talk2M.
On this page
You cannot enable SSH on an Ewon Cosy or Flexy — the option does not exist, so no pass through the wizard will surface it. If the actual goal is to move the device off Talk2M onto your own OpenVPN server, the supported path is a single comcfg entry: VPNCfgFile, pointing at an OpenVPN client configuration stored as a text file in the device's /usr directory. The method is documented for the Flexy and the Cosy 131, and every step runs through the built-in web server.
SSH is not available; the web server is the interface #
The Cosy and the Flexy expose no SSH service, so the search in the wizard ends there. Device management — networking, services, the VPN — runs through the built-in web server and its configuration wizards. In the vendor's standard design the device links to a Talk2M account, and a client such as eCatcher establishes the VPN to reach the plant network; none of that involves a shell, and none of it needs one.
| What you want | Supported path |
|---|---|
| A shell on the device | Not available on Cosy or Flexy |
| Standard remote access | Web server wizard, a Talk2M account, an eCatcher client |
| Your own OpenVPN server | VPNCfgFile in comcfg referencing a text file in /usr — Flexy and Cosy 131 |
Downloading the stored files over FTP, easy to do once the device is on the bench, shows you what is there. It is not the documented way to change the VPN endpoint; that is the comcfg parameter.
Route the device to your own server through comcfg #
HMS Networks documents third-party OpenVPN connections for these devices in its knowledge-base article on connecting an Ewon to third-party OpenVPN servers: the comcfg file carries a VPNCfgFile parameter that either adds OpenVPN parameters or declares the whole client configuration through a text file stored in /usr.
- Prepare what your server issued: the CA certificate, the client certificate and the client key, plus the OpenVPN client configuration text that references them.
- Store that configuration text in
/usron the device; the documented example names itConfigvpn.txt. - Point comcfg at the file with
VPNCfgFile:/usr/Configvpn.txt, substituting your exact filename, capitalization included. - Apply the change through the built-in web server and let the device re-establish its VPN.
- Confirm the tunnel now terminates on your server address, not on Talk2M.
Scope check before you start: the file-based method is documented for the Flexy and the Cosy 131. On other Cosy models it is not a documented path, so read the model designation off the unit first.
Working the config for a 192.168.120.96 server on UDP 1194 #
The inputs, each from the documented example:
remote 192.168.120.96— the example server address; in your deployment this line carries your own server's address.proto udpwithport 1194— transport and destination port; 1194 is the port OpenVPN is registered on.keepalive 10 60— two timers in seconds: ping interval, then restart timeout.ca /ca.crt,cert /client.crt,key /client.key— the three PKI files the tunnel authenticates with.- Storage in
/usr, referenced from comcfg asVPNCfgFile:/usr/Configvpn.txt.
The rule in words: the stored file is a standard OpenVPN client configuration. The device brings up a tun interface toward the remote address, keeps retrying resolution, and holds the link on the keepalive timers.
The arithmetic worth writing out sits on the keepalive line: a ping every 10 s and a restart after 60 s of silence gives 60 ÷ 10 = 6 consecutive missed pings before the client rebuilds the tunnel. That 60 s is also the patience to allow any change before calling it failed.
The result, the file exactly as documented:
client
dev tun
proto udp
remote 192.168.120.96
port 1194
resolv-retry infinite
nobind
persist-key
persist-tun
keepalive 10 60
comp-lzo
verb 1
ca /ca.crt
cert /client.crt
key /client.key
The decision: proto and port must match the server exactly. If your server listens on TCP 443 — say the plant firewall permits only outbound web ports — change both lines together; a mismatch shows up as a tunnel that never forms, not as an error on the device. comp-lzo must match the server's compression setting the same way, and the three PKI files must exist on the device at exactly the declared paths.
Prove the tunnel moved #
Three checks, in this order:
- The comcfg entry names the stored file exactly — same name, same capitalization.
- Every path the configuration declares resolves to a real file on the device; the example uses
/ca.crt,/client.crtand/client.key. - The device's connection goes to the configured server address, not to Talk2M.
If the tunnel does not come up, work the lines that carry the failure modes — server address, port, protocol, referenced file paths — before touching anything else in the wizard, and give each attempt the restart timeout before judging it.
One property of this design earns its keep on the plant floor: the client initiates every packet, so the plant firewall needs only an outbound rule toward the server and no inbound hole for the router. That client-initiated pattern is what how outbound client tunnels traverse NAT covers in depth for the overlay tools built on the same idea.
Owning the endpoint changes the job #
With Talk2M, the vendor operates the server half of the tunnel; with your own OpenVPN server, you do. Certificate issuance, key storage and revocation land on your plate, and the client key the configuration references is a live credential into your plant network — handle it like one.
Keep the tunnel scoped to the maintenance task: route only the subnets remote work actually needs rather than the whole control network, and revoke the device's certificate when the unit is retired or replaced.
Programmers reaching a controller through the box follow the familiar route of connecting an SLC 5/03 PLC to an industrial remote access router, with your tunnel as the ride instead of the vendor's. And whether the far end is guarded by a certificate or a hardware key, the questions in vetting hardware key remote access for OT security are the ones to answer before the first connection.
Questions asked
How do our PCs connect once the Cosy points at our own server?
PC clients connect to the same OpenVPN server with a standard OpenVPN client; eCatcher and Talk2M drop out of the path because the device no longer builds its tunnel to them. The vendor's use case for scaling a VPN network with Ewon devices covers the PC-client side. Issue each connecting PC its own certificate, exactly as you did for the router.
Does the VPNCfgFile method work on every Cosy?
No. The file-based OpenVPN configuration is documented for the Flexy and the Cosy 131 only. On other Cosy models there is no documented custom OpenVPN path, so the supported remote access route stays with Talk2M. Check the model designation on the unit before spending time on a comcfg entry that is not documented for it.
Can I edit the VPN configuration over FTP?
FTP is how many users first see the files, but it is not the documented way to change the VPN endpoint. The supported route is the comcfg VPNCfgFile entry, applied and managed through the built-in web server. Treat an FTP download as a read-only look at what the device stores, not as a configuration interface.
Do the certificate and key files have to sit at /ca.crt, /client.crt and /client.key?
No. Those are the paths in the documented example, and the device simply needs each file to exist at the exact path the stored configuration declares. If your PKI tooling issues different filenames, reference them inside the file you place in /usr the same way. What is fixed is the mechanism, not the example's paths.