IMD SolutionComputing LibraryShop main store

Troubleshooting

Why the PLC behind an Ewon Flexy stays unpingable until a reboot

Remote access and virtualization Published 7 min read By IMD Solution engineering team

Short answer

The PLC behind an Ewon Flexy stays unpingable over VPN while NAT on LAN (Plug&Route) is off, and it stays unpingable after you enable it until the Ewon reboots. In the reported case the tunnel was healthy and the Flexy's LAN interface answered; selecting Apply NAT and TF to connection on the Routing page and then rebooting restored the PLC ping. Apply, reboot, then test in tunnel order.

On this page
  1. Why can SCADA ping the Ewon's LAN address but not the PLC behind it?
  2. What does a traceroute that stops at the Ewon's VPN address prove?
  3. Is the PLC actually on the Ewon's LAN subnet?
  4. Which Ewon setting forwards VPN traffic to the PLC?
  5. Why does the Ewon need a reboot after enabling NAT on LAN?
  6. Do the other Routing page checkboxes matter for this fix?
  7. What do you test after the reboot?
  8. What if the PLC is still unpingable after NAT on LAN and a reboot?
  9. Questions asked

Enable NAT on LAN, then reboot the Ewon — that is the whole fix. In the reported case, tunnels from several Flexy units were up on a VPN server, the SCADA/HMI could ping the Flexy's LAN interface, and the PLC on that same LAN never answered; a traceroute toward the PLC died at the Flexy's own VPN address. The repair was selecting Apply NAT and TF to connection (NAT on LAN plugnplay) on the Routing page — and then rebooting, because applying the selection without the restart left the PLC unpingable. Below: why the symptom looks the way it does, the exact setting, the reboot decision, and the test order.

Why can SCADA ping the Ewon's LAN address but not the PLC behind it? #

Because the Ewon answers the first ping itself, while the second ping has to be forwarded onto the LAN — and with NAT on LAN off, the Ewon does not masquerade that traffic, so the PLC's reply never finds its way back.

A ping to the LAN interface address is terminated inside the Ewon. It proves the tunnel delivers packets and the Ewon is alive; it proves nothing about forwarding. A ping to the PLC is a forwarding job with two possible behaviors:

  • With NAT on LAN enabled (the Plug&Route mode), the Ewon rewrites the source address of VPN-to-LAN traffic to its own LAN address. The PLC sees a local sender, replies to the Ewon, and the Ewon translates the reply back onto the tunnel.
  • With NAT on LAN off, the packet may still reach the PLC, but it carries the SCADA host's VPN-side source address. Unless the PLC's gateway has a route back to that VPN subnet, the reply is dropped: the forward direction works, the return path does not, and ping fails.

What does a traceroute that stops at the Ewon's VPN address prove? #

It proves the tunnel works and the loss sits in the Ewon's LAN forwarding, not in the VPN: the reported trace reached 192.168.0.209 — the address the VPN server assigned to the Ewon — and went no further.

The reported hops:

  • Hop 1: 192.168.10.1 — the SCADA gateway.
  • Hop 2: 192.168.0.1 — the VPN server.
  • Hop 3: 192.168.0.209 — the Ewon's VPN address. Nothing after it.

Every hop that answers is a device the packets reached and returned from. A trace that dies at the Ewon is also consistent with missing NAT: the intermediate replies have to travel the same missing return path, so the trace ends at the last device that can still answer — the Ewon itself. A broken VPN would have stalled the trace at hop 2 or earlier and left the Ewon silent as well.

Is the PLC actually on the Ewon's LAN subnet? #

Check it before touching any setting, by ANDing the Ewon's LAN address and the PLC's address with the subnet mask: matching results mean the PLC is directly on the LAN, and NAT on LAN is the right tool.

Worked example with the reported pair, mask /24 = 255.255.255.0:

  • Ewon LAN interface 192.168.21.1/24: 192.168.21.1 AND 255.255.255.0 = 192.168.21.0
  • PLC 192.168.21.2/24: 192.168.21.2 AND 255.255.255.0 = 192.168.21.0

Both results equal 192.168.21.0, so the PLC is directly on the Ewon's LAN. The same report also named a second pair — Ewon 192.168.2.1/24, PLC 192.168.2.2/24 — and those two addresses both AND to 192.168.2.0, again one subnet. Two addressings in one report means two sites, or an old and a new plan, got mixed; read the real pair off the Ewon's LAN configuration and the PLC itself before testing.

If your two results differ — for example an Ewon LAN of 192.168.21.1/24 against a PLC at 192.168.2.2/24, giving 192.168.21.0 versus 192.168.2.0 — the PLC sits behind another gateway, and that is a routed design rather than a Plug&Route case, covered in routing a Flexy VPN to subnets behind a LAN gateway. And while you are in the addresses, confirm the Ewon's LAN subnet does not overlap the subnet the SCADA/HMI PC itself uses, or the PC delivers packets locally instead of into the tunnel — the failure covered in why an eWON LAN IP overlapping your PC's LAN blocks the PLC.

Which Ewon setting forwards VPN traffic to the PLC? #

The setting is Apply NAT and TF to connection (NAT on LAN plugnplay) — the Plug&Route mode — on the Routing page: Setup > System > Communication > Routing on the reported unit, or Configuration > System Setup > Communication > Networking > Routing in the vendor's current knowledge base.

Three names, one feature: the page label above, the documentation's NAT on LAN or Plug&Route, and the configuration parameter NATItf behind the mode. What it does is the mechanism from the first section: source-translate VPN-to-LAN traffic to the Ewon's LAN address so the PLC always has a return path.

  1. Open the Routing page for your firmware generation, using the path above.
  2. Select Apply NAT and TF to connection (NAT on LAN plugnplay) and apply the change.
  3. Leave the alternative mode alone: NAT and TF on WAN is the position that turns Plug&Route off, and it is not what this fault needs.
  4. Reboot the Ewon — the next section covers why that step is not optional.

Why does the Ewon need a reboot after enabling NAT on LAN? #

Because the reported case showed the applied setting does not take effect on its own: NAT on LAN was selected, the Ewon was updated, and the PLC stayed unpingable — the ping returned only after a full reboot.

The vendor's guidance for switching NAT modes ends the same way, with a reboot, so treat the sequence as fixed: apply the selection, reboot the Ewon once, then test. Do not debug addresses, ports or the VPN before that reboot; you would be troubleshooting a setting that is already correct.

One operational note: the reboot drops the VPN and every connection passing through the Ewon while it restarts, so schedule it where a brief loss of the tunnel is acceptable.

Do the other Routing page checkboxes matter for this fix? #

Neither route all gateway traffic through vpn nor enable transparent port forwarding is part of this fix: the first stayed unchecked and was explicitly not needed, while the second stayed enabled with its highest port at 10000 and did not block the repair.

route all gateway traffic through vpn changes where the Ewon sends its own outbound traffic; it does not forward VPN-to-LAN packets, which is why the guidance on the reported case was blunt: not needed. enable transparent port forwarding was checked, with Highest transparent forwarding port at 10000, and the repair succeeded with both exactly as found.

Decision: change one thing — NAT on LAN — then reboot and test. Flip every control at once and you will not know which one mattered, and you can break a port mapping the site depends on.

What do you test after the reboot? #

Test in tunnel order — VPN, Ewon LAN address, PLC address, then the application — so each step isolates one piece; the five checks below confirm the repair in a few minutes.

  1. Confirm the VPN reconnected: the Ewon is listed on the VPN server with its tunnel address again. No tunnel, nothing else is testable.
  2. From the SCADA/HMI PC, ping the Ewon's LAN address. It answered before the change and it must answer still.
  3. Ping the PLC — the test that failed. In the reported case it answered immediately after the reboot.
  4. Run the traceroute once more: it must pass the Ewon's VPN address and finish at the PLC instead of dying at the third hop.
  5. Connect the real client — SCADA driver, programming package — and confirm live data, not just ICMP. If ping now works but a program download still fails, the remaining fault sits at the protocol layer, the case covered in ping works but PLC program download fails over remote access.

What if the PLC is still unpingable after NAT on LAN and a reboot? #

Then stop changing the Ewon and verify the three things the fix depends on: the address pair is one subnet, the VPN really reconnected after the reboot, and the PLC itself answers on its local link.

  • The VPN did not come back after the reboot: fix the tunnel first; everything downstream is untestable.
  • The Ewon's VPN address is assigned but the Ewon answers nothing at all: that is a tunnel-side fault, not LAN forwarding — the case covered in why a VPN-connected Flexy gets an address but cannot be pinged.
  • The Ewon's LAN address answers, the PLC does not: ping the PLC from a laptop on the Ewon's own LAN switch. If it fails there too, the fault is the PLC's address, cable or switch, not the Ewon. If it answers there, redo the subnet arithmetic above — the pair you are pinging is probably not the pair that exists.
  • The PLC sits on a different subnet behind a LAN gateway: that is the routed design, not Plug&Route.

The reported case ended with the PLC answering right after the reboot. Apply NAT on LAN, reboot once, test in tunnel order — that is the whole decision.

Questions asked

Does NAT 1:1 work together with NAT on LAN?

No. The vendor's support community documents that NAT 1:1 requires NAT on WAN, the same as setting NATItf=2, and that mode turns Plug&Route off; the switch ends with a reboot as well. Pick the mode the site needs: NAT on LAN for PLCs reached outbound over the VPN, or NAT 1:1 with NAT on WAN for one-to-one inbound mappings. Running both behaviors on one LAN interface is not the documented design.

Can the PLC be reached over the VPN without NAT on LAN?

Only with a routed design: the VPN server must route the PLC's subnet toward the Ewon, and the PLC must send its replies back through the Ewon, usually by pointing its default gateway at the Ewon's LAN address. Without that return path the PLC's replies go nowhere, which is exactly the symptom NAT on LAN removes. Most simple sites skip the routed design and rely on NAT on LAN instead.

Is the reboot needed after every Routing page change, or only this one?

Treat it as needed after every change on that page. The reported case proved the NAT on LAN selection stayed ineffective until the Ewon restarted, and the vendor's instructions for switching NAT modes also finish with a reboot. Apply, reboot once, then test; debugging before the reboot burns hours on a setting that is already correct.

Can LAN devices keep internet access while NAT on LAN is on?

Not on the path the vendor documents for the Cosy: that procedure sets NAT and TF on WAN, and the vendor notes this turns the Plug&Route feature off. Where LAN devices must reach the internet through the Ewon, the two behaviors act as alternatives, so decide which one the site needs before switching, then reboot.

Keep reading

  • Troubleshooting

    Why an eWON LAN IP overlapping your PC's LAN blocks the PLC

    Yes: the eWON LAN address must fall inside the PLC's IP network under the configured subnet mask, and it must be unique there. But that network must not overlap any network your engineering PC already routes locally, because eCatcher then declines to install the competing VPN route: the eWON stays reachable while the PLC behind it does not.

    Remote access and virtualization

  • Troubleshooting

    Ewon Flexy reboots when Ethernet is connected during VPN startup

    On firmware 13.x with a static IP on the WAN interface, a known NTP-related issue can make a Flexy reboot each time it tries to establish the VPN while Ethernet is connected. Disable NTP or upgrade to firmware 14, then start the tunnel over the 3G link with Ethernet connected to confirm the loop is gone.

    Remote access and virtualization

  • Troubleshooting

    Intermittent PLC programming access over VPN when ping works

    Ping proves only that small ICMP packets cross the VPN. Intermittent PLC programming access comes from three causes: a firewall rule that never allows the programming session, a missing return route or gateway on the PLC, or a tunnel MTU below 1500 bytes that drops full-size packets. Test the port, read the router log, then fix the first cause that fails.

    Remote access and virtualization