# IP leak when switching Wireguard server

**URL:** <https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100>\
**Category:** Router\
**Created:** [June 3, 2022, 2:35pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100 "2022-06-03T14:35:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 3, 2022, 2:35pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/1 "2022-06-03T14:35:02Z")

</div>

After importing some Wireguard configuration files, I tried to switch between servers to test speed and ping.  
If I switch from a server to another and I imediately open a page like [ipleak.net](http://ipleak.net) or [dnsleaktest.com](http://dnsleaktest.com) while the client is connecting, my ISP IP is exposed.

---

<div class="post-metadata">

**Author:** ![beniamin](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/beniamin/32/4794_2.png) [@beniamin](https://forum.gl-inet.com/u/beniamin)\
**Post date:** [June 4, 2022, 5:18pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/2 "2022-06-04T17:18:09Z")

</div>

IMO, I don’t see how you can avoid this. You are disabling the VPN connection, to reconnect to another.

If the VPN connection broke, but the profile was still active, it would not leak due to the Killswitch.

---

<div class="post-metadata">

**Author:** ![wcs2228](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/wcs2228/32/6112_2.png) [@wcs2228](https://forum.gl-inet.com/u/wcs2228)\
**Post date:** [June 4, 2022, 6:19pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/3 "2022-06-04T18:19:00Z")

</div>

Have you tried enabling “Block Non-VPN Traffic”?

 ![image](https://forum-static.gl-inet.com/original/2X/7/73569033c4f91ba34b8c741b84428bded084796a.png)

---

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 4, 2022, 6:34pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/4 "2022-06-04T18:34:14Z")

</div>

Mmm…  
So what’s the point of this message?

 ![Cattura](https://forum-static.gl-inet.com/original/2X/6/62586a9cd31db2f6f5ce18fb363c1cd5a085d3ac.png)  
It says that switching between configuration files while the client is running, there should not be any traffic leak… Am I missing something?

---

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 4, 2022, 6:38pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/5 "2022-06-04T18:38:57Z")

</div>

Thanks, that works of course, but I am posting this because the UI clearly says that switching between configuration files while the client is running should not produce traffic leakage… 😉

---

<div class="post-metadata">

**Author:** ![wcs2228](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/wcs2228/32/6112_2.png) [@wcs2228](https://forum.gl-inet.com/u/wcs2228)\
**Post date:** [June 4, 2022, 8:07pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/6 "2022-06-04T20:07:38Z")

</div>

I see what you mean. I seem to recall the same message is on other GL.iNet routers, but have not personally tested for leaking when there may be a short interval of no VPN during the switch. I always enable Kill Switch when using VPN, which seems to have been changed to the “Block Non-VPN Traffic” option in the GL-AXT1800.

As a related note, GL.iNet’s Kill Switch blocks traffic even if you do not Enable VPN at all, which forces you to use VPN to access Internet. This is different from commercial VPN providers’ definition of Kill Switch and seems a bit confusing.

---

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 4, 2022, 8:21pm UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/7 "2022-06-04T20:21:05Z")

</div>

Yeah, exactly. The message on previuos UI is a bit different and more generic. Here basically the massege is saying: no leak while changing conf. file (WG server).  
So, or the option is not working, or is poorly explained/confusing. Or maybe I am missing something…  
Anyway, I usually enable kill switch too. But since I am testing… let’s be curious! 😉

---

<div class="post-metadata">

**Author:** ![beniamin](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/beniamin/32/4794_2.png) [@beniamin](https://forum.gl-inet.com/u/beniamin)\
**Post date:** [June 5, 2022, 1:48am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/8 "2022-06-05T01:48:27Z")

</div>

Ah I’ve never seen that before. Good to know 👍

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 6, 2022, 3:18am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/9 "2022-06-06T03:18:08Z")

</div>

The text is correct. The function is buggy.

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 7, 2022, 5:11am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/10 "2022-06-07T05:11:06Z")

</div>

I am uisng firmware release 2 and I don’t have IP leak when switching wireguard servers.

This bug was in firmware beta2 and was fixed.

Can you please test again?

---

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 7, 2022, 6:02am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/11 "2022-06-07T06:02:38Z")

</div>

Actually I tested it using firmware release 2.  
Just re-tested, no leak on first try, then I had leak switching server again.  
Tested several times, seems not consistent but it happens very frequently…

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 7, 2022, 6:29am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/12 "2022-06-07T06:29:07Z")

</div>

Seems you used a differnet vpn policy. Can you show the details?

---

<div class="post-metadata">

**Author:** ![Max3](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Max3](https://forum.gl-inet.com/u/Max3)\
**Post date:** [June 7, 2022, 6:34am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/13 "2022-06-07T06:34:34Z")

</div>

Yeah, I am using VPN Policy based on the Client Device, defined by MAC address: 2 Chromecast in my house are not using VPN.

 ![Cattura](https://forum-static.gl-inet.com/original/2X/0/0ba5990408ce7ab8555ff692e89da8351d70d92d.png)

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 7, 2022, 7:10am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/14 "2022-06-07T07:10:43Z")

</div>

Yes. Checked. If set vpn policy like this it will cause IP leak when changing wireguard profile.

For vpn global policy it does not have leak.

Developers are checking if this can be fixed.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:17am UTC](https://forum.gl-inet.com/t/ip-leak-when-switching-wireguard-server/22100/15 "2025-10-29T04:17:37Z")

</div>


