IMD SolutionComputing LibraryShop main store

Explainer

Device portal remote access versus VPN on a controller

Remote access and virtualization Published 7 min read

Short answer

Device Portal remote access on a ctrlX controller reaches the controller web interface only, by design. Engineering tools that need direct access to devices on the machine subnet require a configured VPN: an OpenVPN routed tunnel with client-subnet routes, controller forwarding and a return path. Verify the route in layers before trusting the tool.

On this page
  1. What can Device Portal remote access reach on a ctrlX controller?
  2. Why does the machine network stay closed behind the portal?
  3. When do you need a VPN instead of the portal?
  4. How do you set up the VPN Client App on ctrlX CORE?
  5. How do you make the machine subnet reachable over a routed OpenVPN tunnel?
  6. Why do replies from a subordinate device never come back?
  7. How do you prove the remote path before trusting the engineering tool?
  8. Which access method fits each task on the plant floor?
  9. Questions asked

The question decides itself once you know the boundary: Device Portal remote access on a ctrlX controller reaches the controller's web interface only, by design, and never routes into the machine network behind it. If your engineering software must talk to a PLC, drive or HMI directly, you configure a VPN — with OpenVPN that means the routed (dev tun) client-subnet setup plus forwarding and a return path. This article separates the two access levels, walks the VPN setup and gives the checks that turn a connected tunnel into a proven route.

What can Device Portal remote access reach on a ctrlX controller? #

Device Portal remote access reaches the ctrlX CORE web interface and nothing else: the vendor describes it deliberately as level-one access, giving every web-interface function but no network route to any subordinate device on the machine network behind the controller. In practice that means your browser can open the controller's pages, run its diagnostics, change settings and manage apps and licenses, while a ping or a protocol session to a PLC on the same machine switch fails. The two facts are independent: a working browser session proves only that you reached the exposed web interface, not that your computer holds any route to the subnet that interface lives on. When you evaluate this kind of access for a project, treat the boundary as a feature of the access method, the way the vendor documents it, not as a fault to be worked around.

Why does the machine network stay closed behind the portal? #

The machine network stays closed on purpose, not by fault: restricting a remote session to the controller's web interface means one stolen login cannot make every PLC, drive and switch on the machine subnet directly reachable from outside the plant. That is the security advantage the vendor names for this access level. It also explains why the usual troubleshooting moves cannot help, because none of them creates a network path:

  • Reopening the portal session recovers a failed web session; it adds no routing.
  • Typing a subordinate device's address into the browser fails without a route, whatever the address is.
  • Changing a subordinate device's IP address wastes a site visit; the device is already reachable locally, and routing is the missing piece.
  • Granting broader web-interface permissions changes which actions are authorized; it does not convert web access into a tunnel.

If a task genuinely needs machine-subnet packets, the fix is a different access method, not more retries on this one.

When do you need a VPN instead of the portal? #

You need a VPN the moment engineering software on your remote computer must open its own sessions to subordinate devices: PLC program download, drive parameterization, HMI upload and controller discovery all send packets to machine-subnet addresses the portal never carries. The decision rule is the narrowest method that completes the task. Diagnostics, settings changes and license work through the web interface stay on the portal. Anything where your laptop's tool must be a network peer of the device needs the tunnel. If you are selecting the VPN side itself, the comparison of firewall and VPN options for an industrial remote access router covers what to demand from the server end. Plan the tunnel scope before commissioning: list the destination devices and services the task requires, and route only those.

How do you set up the VPN Client App on ctrlX CORE? #

You set up the tunnel with the controller's VPN Client App: install the app, upload the OpenVPN or IPSec configuration file your VPN operator supplies, then initiate that connection from the controller web interface during a Device Portal remote access session. The uploaded file carries the endpoint address, the authentication material and the tunnel settings the VPN operator defines, so the controller acts as a VPN client of your server. The server side must already be running and reachable from the controller's internet-facing connection; the app configures the client, not your VPN infrastructure. User permissions decide who may start the connection, so restrict initiation to the engineers who need it. Keep the portal login and the VPN state as separate facts in your head and in your checks: the portal session is the management channel through which you press start, and it tells you nothing about whether the tunnel actually came up.

How do you make the machine subnet reachable over a routed OpenVPN tunnel? #

Over a routed tunnel, dev tun, machine-subnet access takes three configured pieces together: a VPN-server-side route that binds the machine subnet to the ctrlX CORE client connection, IP forwarding on the controller, and firewall rules permitting exactly the services the task needs. The server-side piece matters most and is configured away from the controller: OpenVPN's client-side subnet routing associates the machine subnet with the ctrlX CORE's client certificate, so the server knows to send 192.168.1.0/24 traffic down that one client's tunnel. The walkthrough of how a VPN gateway on a controller routes you to the machine LAN shows the same routing chain on a gateway device, and the settings on the controller alone cannot complete it.

Before any of that, exclude address overlap, because it kills the tunnel silently. Worked example: the machine PLC sits at 192.168.1.20 with the machine subnet 192.168.1.0/24, and your remote laptop sits in an office that handed it 192.168.1.100 with mask 255.255.255.0. The laptop's own local route already covers 192.168.1.0/24, since 192.168.1.100 AND 255.255.255.0 = 192.168.1.0, the same network the PLC address falls in, so the operating system sends the packets to the local adapter and the tunnel never sees them. Renumber one side before commissioning — for example move the office range to 192.168.150.0/24. Then 192.168.150.100 AND 255.255.255.0 = 192.168.150.0, which differs from 192.168.1.0, and the VPN route to the machine subnet wins. Record the office subnet, the VPN address range and the machine subnet with their masks at design time, and overlap checks become a two-line calculation instead of a failed startup day.

Why do replies from a subordinate device never come back? #

Replies die at the device's own default gateway: the forward path through the tunnel works, the device answers to its normal gateway, and that gateway has no route to your tunnel address, so it drops the response before it ever leaves the machine network. A ping that leaves your laptop but draws no reply with the tunnel confirmed up is the classic signature of a missing return path. Fix it in the approved routing design by adding the tunnel return route at the gateway the device actually uses, or by using network address translation in the VPN configuration where that configuration supports and requires it, so the device answers an address it already knows how to reach. Do not re-point device gateways blindly: on many machines the default gateway also serves peer-to-peer traffic between stations, and moving it can break communications that never touched the tunnel. Client-side subnet routing is configured on the VPN server, so budget that change on the server side, with the permissions it needs there.

How do you prove the remote path before trusting the engineering tool? #

Prove the path in layers instead of accepting a connected badge: confirm the tunnel state, read the remote PC's routing table, open one known service on one known device by explicit address, then run the engineering tool against the remaining approved destinations. Concretely: check the VPN client reports an established tunnel and read its diagnostics if authentication fails; confirm the PC's routing table sends the machine subnet into the tunnel rather than a local adapter; connect to the one device you know, by its explicit address and the exact service port the tool uses. If that connection fails, find where the packets stop — tunnel, controller forwarding, firewall decision or the device's reply path — before touching anything else. Remember that discovery mechanisms relying on layer-2 broadcasts do not cross a routed dev tun tunnel, so a tool that finds devices by broadcast must be pointed at addresses directly.

One safety note: a working route lets a remote PC write to equipment, so keep a person at the machine and confirm a safe state before any remote download or parameterization.

Which access method fits each task on the plant floor? #

Portal access fits controller-only work such as diagnostics, settings and app handling; an app-mediated interface fits one narrow defined exchange with another device; a configured VPN fits engineering tools that need direct machine-network services — always pick the narrowest method that completes the task. So the decisions land as follows. A controller page answers the question: portal, no tunnel. Your tool must be a network peer of a subordinate device: VPN, configured with the server-side client-subnet route, controller forwarding, firewall allowances and a proven return path. One defined interaction with one device, repeated often: consider an app on the controller that mediates it through the web interface. Never deploy full subnet access for an operation a web page already covers, and before you widen who can start that tunnel, the checklist to vet hardware key remote access for OT security covers what to verify on the access hardware itself.

Questions asked

Where do I install the VPN Client App on the controller?

Install it from the controller's own web interface: open Settings, choose Apps, and use the install-from-file option to load the VPN Client App package. The app accepts a configuration file from your VPN operator to build the OpenVPN or IPSec connection. Check that the app version matches your installed ctrlX OS release before you upload anything.

Can the Device Portal premium replace a VPN remote access solution?

The vendor's FAQ answers that it depends. It can, when everything you need remotely lives inside the ctrlX CORE web interface: diagnostics, settings, app and license handling. As soon as an engineering tool must reach any other device on the machine network, a configured VPN stays necessary, because the portal does not route traffic into that subnet.

Can a controller app give limited access to other machine devices?

Yes. An app running on the controller can interact with devices on its local network and expose selected functions through the web interface. A remote user then works through the portal while the app mediates the exchange, with no routed network path from the remote computer to those devices. That is a narrower alternative to a full VPN when one defined interaction is all you need.

Does the portal session tell me whether the VPN is up?

Keep the two states separate. The portal session is your management entry point, and the configured VPN connection is started from the controller web interface during that session, but a working portal page proves nothing about tunnel establishment or routing. Judge the VPN by the client's own status and by a real connection test to a known machine device.

Keep reading

  • Explainer

    How a VPN gateway on a controller routes you to the machine LAN

    A VPN client on the machine-side gateway becomes a router to the machine LAN only when IP forwarding is enabled on both the tunnel and LAN interfaces, the server advertises the machine subnet and binds it to that client with iroute, and replies find a way back through the device gateway or an SNAT rule on the gateway. A worked packet example shows both directions.

    Remote access and virtualization

  • Troubleshooting

    Run a remote access VPN from your VM with NAT mode

    Set the VM's network adapter to NAT and the guest adapter to DHCP, because NAT translates guest traffic through the host's routing table, including the routes a host-side VPN client adds. Bridged mode fails because the guest appears on the plant LAN as its own device and never sees those routes. Verify by pinging a remote site device from the guest.

    Remote access and virtualization

  • Troubleshooting

    Ping works but PLC program download fails over remote access

    ICMP success proves only the routed IP path, not the programming session. A download opens separate query and download connections on documented TCP and UDP ports, and broadcast discovery does not cross a routed VPN. Point the controller's default gateway at the remote-access router LAN address, permit both programming ports to the controller LAN IP, and add the controller manually by IP.

    Remote access and virtualization