Tiza Group

Home / Guides / Testing, commissioning and faults

Cannot Reach the Relay Through the Client VPN

The client VPN connects but the relay does not answer: firewall rules, routes, overlapping networks, MTU. Find the layer. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When the client VPN connects but the relay does not answer, the fault is in one of four layers: the tunnel, the routing, the firewall rules or the relay itself. You locate it by testing from the outside in, from the gateway to the relay and from the connection to the service port, and by looking at the client firewall deny log. Whoever narrows down the layer saves days of email exchanges.

Symptom

The client provided a VPN, the VPN client shows “connected” and yet the relay does not answer: the engineering software cannot find it, the browser waits on the device page, ping gets no reply, or the connection opens and hangs when reading the settings. Sometimes it works with one relay and not with another, or it worked last week and not today.

The architecture of a well-built remote access (VPN with strong authentication, intermediate zone, jump server and firewall) is explained in Secure remote access to substations: DMZ and VPN. Here the point of view is that of someone arriving from outside, with someone else’s VPN, who needs to know at which layer it stops.

Keep in mind that the network belongs to the client: you do not reconfigure it, you ask for changes with data. What speeds up the solution most is arriving with concrete evidence (“from my source address X, to address Y, port Z, the packet leaves and does not come back”).

Likely causes, from most to least likely

CauseHow to recognize itWhat confirms it
Firewall rule that does not exist or does not cover the portThe tunnel is up, the gateway answers and the relay does notClient firewall deny log with your time and source
Missing route (to the relay or back)The packet reaches the relay but the reply never returns; it fails only toward certain relaysThe relay has no gateway toward the VPN network or the router does not know that segment
Overlapping addressesYour network or your VPN uses the same range as the client’s (very common with home ranges)Your machine’s routing table shows two destinations for the same range
Tunnel that does not negotiate all selectorsThere is traffic toward some subnets and not toward othersTunnel log: negotiated phase, permitted subnets
Packet size (MTU)Small ping passes, reading files or large pages hangsPing with increasing sizes without fragmenting
Credentials, second factor or certificateIt does not connect, or connects and drops you; there is an authentication messageAccess server log; certificate date; machine clock
Expired authorization or closed windowIt worked, today it does not, and nobody changed anything in the networkConfirm with the client the validity of the access and the window
The relay limits sources or sessionsIt answers the local network and not your source; it only allows one session at a timeRelay access and session parameters; session opened by another user
DNS or namesThe jump server name resolves, the relay’s does notTest with the IP address directly

How to diagnose it

Test in this order and stop at the first step that fails:

  1. The tunnel. Does the VPN client say connected and did it receive an address? Check that your machine has a route toward the client network through the tunnel (routing table). If ranges overlap with your local network, resolve that before going on.
  2. The tunnel gateway. Ping the internal address the client gave you. If it fails, the problem is before the relay: credentials, tunnel or inbound rules.
  3. The substation firewall. Ask whoever administers it to look at the log at the time of your test. A deny line indicates a missing rule and gives the solution with its own source, destination and port.
  4. The relay at network level. Ping the relay address and trace the route. An echo that does not return with a correct route points to the relay or to its return route.
  5. The service port. Test a direct TCP connection to the port your software uses: 102 for IEC 61850 MMS, 2404 for IEC 60870-5-104, 20000 for DNP3 are the usual ones; confirm the device’s own in its manual. “Port open” confirms the full route; “refused” indicates the relay is not listening; no response, a drop along the way.
  6. Packet sizes. If the small ping passes and the large one does not, test increasing sizes without fragmenting to find the maximum that fits; the tunnel overhead reduces the usable size. The fix is to adjust the maximum size in the tunnel or in your client.
  7. The relay itself. Review its access event log: rejected attempts, session limit, list of permitted sources and temporary lockout after failed attempts.

Field checklist

  • The client confirms your access is valid and within the authorized window.
  • The VPN client connected and your machine has the correct time.
  • There is no overlap between your network and the client’s.
  • The internal gateway answers.
  • There is a written rule for your source, the relay and the specific port.
  • The relay answers ping, or the client knows why it should not.
  • The service port is open in a direct test.
  • No other session occupies the relay.
  • The evidence was saved: time, source, destination, port and result.

Illustrative example

An engineer connects by VPN to an illustrative substation. Their home network is 192.168.1.0/24 and the relay’s, in the substation, is also 192.168.1.0/24, with the relay at 192.168.1.50. Their machine sends the traffic for 192.168.1.50 over the local network, not through the tunnel: it never leaves the house. The solution is not to change the home network but to ask for one-to-one address translation at the client end: the range 10.250.1.0/24 is mapped to 192.168.1.0/24, so the relay is seen as 10.250.1.50. It is verified with ping and with the port test, and the equivalence is noted in the access documentation.

What to do

  • Rules. Request in writing a minimal rule: source (or jump server), destination (relay or relays), port and validity. With the evidence from step 3 it is a request of minutes.
  • Routes. Add the return route on the relay or on the router of your segment. This requires a change on the client’s equipment: leave it to whoever operates it.
  • Overlaps. Use address translation at the client end or change the range of your local network; do not mix two identical networks on the same machine.
  • Packet size. Adjust the maximum size in the tunnel; document the value that worked.
  • Credentials and clock. Synchronize the clock; renew expired certificates with whoever issues them.
  • Sessions. Release the previous session or wait for the idle time before retrying.

If the problem is a VPN that connects and drops after a few minutes, see remote access to the substation drops without warning.

What not to do

  • Do not ask for or use direct access to the relay with a modem or a cellular router to “bypass” the client VPN.
  • Do not open ports on the client network on your own, or disable the firewall to test.
  • Do not share VPN credentials or install the client on personal machines the client did not authorize.
  • Do not reboot the relay to see if it answers: it is protecting an installation.
  • Do not change the relay IP address to avoid an overlap; other devices depend on it.
  • Do not test with scanning tools on the client network without authorization: it can take devices down, as described in network scan that takes down the SCADA.

When to call us

If the client does not provide logs, if the access requires redesigning zones and rules, or if you need an auditable remote access for several relays, we define the architecture, write the minimal rules for the client to approve and verify the connection end to end. We configure it remotely. Write to us.

References

  • IEC 62443-3-3:2013, Industrial communication networks – Network and system security – Part 3-3: System security requirements and security levels.
  • NIST SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security (2023).
  • IEC 62351-8:2020, Power systems management and associated information exchange – Data and communications security – Part 8: Role-based access control for power system management.

Frequently asked questions

The VPN connects, but I cannot reach the relay. What do I test first?

Test from near to far: the tunnel gateway, the client firewall, the relay address and finally the service port your software uses. The first step that fails points to the guilty layer. Asking the client for the firewall deny log for the time of your attempt usually solves it.

Why does ping work and the software connection hangs?

A typical cause is that large packets do not fit in the tunnel because of its overhead and are dropped, while small ones get through. Another is that the firewall allows echo but not the TCP or UDP service port. They are told apart by testing the port directly and with packets of different sizes.

Can I ask them to open the whole range to the relay to test?

That is not appropriate. Ask for a narrow rule: your source, the specific relay or relays, and the necessary ports, for a set time. Opening too much contradicts the client's security policy and leaves the access poorly defined.

WhatsApp