# Gateway network over VPN

**URL:** <https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 16, 2025, 8:07pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004 "2025-01-16T20:07:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [January 16, 2025, 8:07pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/1 "2025-01-16T20:07:04Z")

</div>

Hi,

I need to configure a "Gateway Network" in an architecture like bellow

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/48adc584c36bff42811995234321c07e11298580.png)

The problem is all my Edge Gateways are accessed by the Central Gateway over a VPN, where the Central Gateway can ping all Edge Servers, but the Edge Servers can´t ping the Central Gateway.

**Is it possible to work this way, where only the Central Site can see the Edge Servers?** 😬

I didn´t try yet, but as I saw, I would need to configure an "Outgoing Connection" on each Edge Gateway and accept it on the Central Gateway, and this would only be possible if the Edge Gateways can see the Central Gateway on the network.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 16, 2025, 8:25pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/2 "2025-01-16T20:25:48Z")

</div>

You should be fine, configure the connections as "outgoing" from the central server. You'll see them as "incoming" on the Edge servers.

There's little difference between the two other than who initiates the connection.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [January 21, 2025, 2:11pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/3 "2025-01-21T14:11:23Z")

</div>

I created the "outgoing connection" in the "Central Gateway" and it worked, showing "connected". But after about 1 minute it shows "faulted". If I click "reset", the same thing occurs, showing connected and after failing.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/3/63f98c48fbd8c7eb1b42b50d83df35f2573f3430.png)

I guess this is because my VPN scenario where the "Central Gateway" can ping the "Edge gateway" but the opposite is not true.  
I'm checking to fix this with my VPN administrator, but I still don´t know if it will be allowed.

Anyone have other opinion?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 21, 2025, 2:45pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/4 "2025-01-21T14:45:42Z")

</div>

No, outgoing connections do not require the other side be able to ping back. Are you sure your VPN supports websocket connections?

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [January 21, 2025, 4:17pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/5 "2025-01-21T16:17:34Z")

</div>

I'm not sure about the websocket, I'll confirm. But I can access the Edge Gateway perfectly with perspective sessions in a browser running in the same pc that would be Central Gateway.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 21, 2025, 4:27pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/6 "2025-01-21T16:27:51Z")

</div>

It is the other direction for a websockets test, but I admit it would be strange to not be symmetrical support.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [January 21, 2025, 5:40pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/7 "2025-01-21T17:40:47Z")

</div>

Looking at the logs, is there any information in them that is of any help?

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [January 27, 2025, 7:08pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/8 "2025-01-27T19:08:02Z")

</div>

Hi,

When I go in the Central Gateway, where I configured an "outgoing connection" I have this logs.  
As you can see, at 15:14:43 the connection is "running" and just at 15:15:07 it´s faulted (that´s exactly the 30000ms timeout config).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/1/713c256cbcc6af37c5eea425ceff1b0a40717385.png)

When I go in the Edge Gateway, where I approved an "incoming connection" from the Central Gateway, I have this logs.  
As you can see, at 15:14:34 the connection is running and websocket session established with the server, but at 15:15:04 it has ping failed.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e5ffbb5d7a303f26225a6c409972ee160e444f23.png)

Additional informations:  
1 - The VPN I'm connecting is L3VPN (I don´t know if it would require L2VPN)

2 - The Central Gateway can ping the Edge Gateway and the opposite is not true.

3 - Just to be sure the configuration I'm doing is ok, I configured the same Gateway Network between this Central Gateway and a virtual machine running on it, and it worked normal.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [January 29, 2025, 6:26pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/9 "2025-01-29T18:26:58Z")

</div>

Hello everyone,

Following with the same problem, some updates:

1 - I could connect L2VPN with the router where the Edge Gateway is, so now using local ip address both computer can ping each other (the Central Gateway and Edge Gateway). But surprisingly, this way the connection doesn´t work even for some seconds like before. So I keep trying with L3VPN access.

2 - Now I'm trying to check with our service support if there´s some rule on the Firewall blocking websockets.

3 - Our VPN administrator is a third company, so I still don´t know details about websockets on it. I know we use OpenVPN application.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 29, 2025, 6:37pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/10 "2025-01-29T18:37:01Z")

</div>

I use OpenVPN extensively, and have not had problems.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [January 29, 2025, 9:25pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/11 "2025-01-29T21:25:27Z")

</div>

Can you define what you mean by L2VPN and L3VPN? I guess I'm used to all VPNs essentially giving you a "virtual" network connection that, depending on the server side, can do routing if needed (L3 and very typical) or only allow same-subnet access only (this is rare in my experience). While I use almost Wireguard exclusively now, I've used OpenVPN quite a bit, and I don't see why it would have an issue with any of this.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [February 11, 2025, 2:07pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/12 "2025-02-11T14:07:27Z")

</div>

Hi,

By L2VPN and L3VPN I mean layer 2 and layer 3.  
I was wondering that as I only was able to connect over L3 before, this could be the problem, as the Edge Gateway wasn´t able to ping the Server.

So, after sometime 🙌, I connected over L2VPN, the server received an IP address in the same rate as the devices under the router on the remote site. This way the Edge Gateway (on the Linux iPC bellow) could ping the server in the ip 192.168.15.x4, so 🕶 I tried to configure an outgoing connection in the Gateway, but that way was worst, the connection didn´t get successful 😒 even for some seconds like in the opposite way.

Bellow is the architecture

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a79643cab98bca20995d40c2fef0ddecdafdcce5.png)

At the end, I still with the same problem, in the current scenario.  
On the Server I have full Ignition installed and an outgoing connection to the ip 10.22.213.x2

Resetting the connection, it goes to running.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/4/a4734f3af4e2663e14311ff91568f5af4404238e.png)

30 seconds after it fault.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fbbb15656a06e7521dad2f48d95b6c33850fddb7.png)

Here bellow, the logs on the server

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea5f0dcc3d7ab752e92e2c503dcb2174f298a652.png)

And just to remember, perspective clients works perfectly accessing the edge gateway in 10.22.213.x2 over the VPN. The problem is only with the Gateway Network resource.  
Also as I told before, when I run the gateway in a linux virtual machine in the server, all works perfectly, I mean the configuration seems to be ok.

I still don´t have an answer from the IT department about (if the firewall could be blocking the websocket port or so on), my user doesn´t have administrative rights to check.

Well, I'm making a case study with one server and one site now, but once it´s proved it will be many remote sites. But this problem is making things very hard to move forward.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Bernardes](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Rodrigo\_Bernardes](https://forum.inductiveautomation.com/u/Rodrigo_Bernardes)\
**Post date:** [March 10, 2025, 5:14pm UTC](https://forum.inductiveautomation.com/t/gateway-network-over-vpn/101004/13 "2025-03-10T17:14:57Z")

</div>

The problem was solved with the following solution

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/687d095e04b793ed92edab89797afb50e2ae5634.png)

> **[Optimize Gateway Network Performance | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/tutorials/tutorials-and-helpful-tricks/optimize-gateway-network-performance#ping-rate-and-latency)**
>
> Tips on how to better optimize your gateway network
