# How to Access a Peer’s Local Network

**URL:** <https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595>\
**Category:** Router\
**Created:** [May 22, 2024, 7:53am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595 "2024-05-22T07:53:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [May 22, 2024, 7:53am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/1 "2024-05-22T07:53:28Z")

</div>

I have a wireguard server C, I have a wireguard client B and a wireguard client A (Opal router). I would like to reach A's LAN from B. all IPs allowed on all clients They are set to 0.0.0.0/0. I can't do it... I'm going crazy and I don't know where to put my hands....

 ![Screenshot_2024-05-22-09-51-04-871_com.android.chrome-edit~2](https://forum-static.gl-inet.com/original/3X/8/9/89cc7a5e93c7102fd832f74149e52f50f0959344.jpeg)

---

<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:** [May 22, 2024, 8:21am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/2 "2024-05-22T08:21:35Z")

</div>

There is a cloud managed solution here [Flint 2 looses AP connection - #3 by esselite](https://forum.gl-inet.com/t/flint-2-looses-ap-connection/42511/3)

There is a manual config method [Building a Site-2-Site network manually using two GL.iNet routers(SDK 4.X)](https://forum.gl-inet.com/t/building-a-site-2-site-network-manually-using-two-gl-inet-routers-sdk-4-x/31479)

In wg-server, if it is a GL.iNet router, you need to enable "Allow Remote Access LAN", if you want to access B from A.

To Access A's LAN from Peer B:

1. In wg-server, choose "Allow Remote Access LAN"
2. In Peer A (Opal), choose "Auto Detect" In vpn policies
3. In wg-server, set routing as in the guide.  
 ![image](https://forum-static.gl-inet.com/original/3X/c/0/c0f98333d0a64f52bdfe2a9e75dca1f389404b2a.jpeg)

---

<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:** [May 22, 2024, 8:24am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/3 "2024-05-22T08:24:00Z")

</div>

Also pay attention to [Building a Site-2-Site network manually using two GL.iNet routers(SDK 4.X) - #9 by hansome](https://forum.gl-inet.com/t/building-a-site-2-site-network-manually-using-two-gl-inet-routers-sdk-4-x/31479/9)

There is updated guide.

I am sure this will solve your issue. It is not that complicated to follow.

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [May 22, 2024, 8:37am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/4 "2024-05-22T08:37:43Z")

</div>

> [@alzhao](#):
>
> Allow Remote Access LAN

can i use this with 1 glinet device used as peer ?

---

<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:** [May 22, 2024, 8:42am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/5 "2024-05-22T08:42:20Z")

</div>

This surely will do but I am not sure how do you configure the wg-server side.

Both guides I gave include config in the wg-server side.

---

<div class="post-metadata">

**Author:** ![esselite](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/e/34f0e0/32.png) [@esselite](https://forum.gl-inet.com/u/esselite)\
**Post date:** [May 22, 2024, 11:26am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/6 "2024-05-22T11:26:24Z")

</div>

![image](https://forum-static.gl-inet.com/original/3X/a/b/ab3cf6b1f3ede9c765913aefd77223482e39621a.png)

![image](https://forum-static.gl-inet.com/original/3X/7/3/7323981c8ee713176436e82676803e89f1256680.png)

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [May 22, 2024, 1:37pm UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/7 "2024-05-22T13:37:10Z")

</div>

Obviously I have already done this step but it produced no results.... I can reach the virtual IP of the VPN but not its entire LAN.

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [May 22, 2024, 1:55pm UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/8 "2024-05-22T13:55:55Z")

</div>

from the devices connected to peer A I can reach the devices connected to peer B but not the other way around. I would like to point out the fact that device A is the GL-SFT1200.... there will surely be some routing rule to set or there is a bung that doesn't make the issue work....

---

<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:** [May 22, 2024, 2:19pm UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/9 "2024-05-22T14:19:48Z")

</div>

You said the server side is not our router you need to give details on that part.

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [June 8, 2024, 4:12pm UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/10 "2024-06-08T16:12:07Z")

</div>

I solved it, I had to change the allowed IPs in the wg0.conf file on the server side

---

<div class="post-metadata">

**Author:** ![Yos](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/ed8c4c/32.png) [@Yos](https://forum.gl-inet.com/u/Yos)\
**Post date:** [June 28, 2024, 9:28am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/11 "2024-06-28T09:28:08Z")

</div>

Could you tell me the latest setting of "the allowed IPs in the wg0.conf file" ?  
I had not resloved the similar trouble...

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [June 28, 2024, 9:51am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/12 "2024-06-28T09:51:40Z")

</div>

You have to put there the subnet of the LAN you want to access

---

<div class="post-metadata">

**Author:** ![Yos](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/ed8c4c/32.png) [@Yos](https://forum.gl-inet.com/u/Yos)\
**Post date:** [June 30, 2024, 6:15am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/13 "2024-06-30T06:15:41Z")

</div>

THX for your telling.  
But my trouble seems to have another cause.  
My setting of "the allowed IPs" is "0.0.0.0/0"( I recognize it "all accessible").  
Mmm...

---

<div class="post-metadata">

**Author:** ![nictronik99](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@nictronik99](https://forum.gl-inet.com/u/nictronik99)\
**Post date:** [June 30, 2024, 8:30am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/14 "2024-06-30T08:30:19Z")

</div>

You don't have to look in the client configuration threads but you do have to look in the wg0.conf file, usually you can find It in: etc/wireguard/wg0.conf

---

<div class="post-metadata">

**Author:** ![Yos](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/ed8c4c/32.png) [@Yos](https://forum.gl-inet.com/u/Yos)\
**Post date:** [July 1, 2024, 8:17am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/15 "2024-07-01T08:17:11Z")

</div>

THXs for your kindness.  
I could understand that the conf-file of the server is important.

My GL-iNet(GL-MT2500. Firmware4.5)[10.0.0.1] doesn't have the file(/etc/wireguard/wg0.conf).  
It seems to make conf-file dynamically (ref: [Wireguard S2S Tunnel von MikroTik zu GLiNet](https://administrator.de/forum/wireguard-s2s-tunnel-von-mikrotik-zu-glinet-4725958243.html) )

Its conf-file ( /tmp/wireguard/wgserver) is bellow and had the subnet of the LAN.

```auto
[Interface]
PrivateKey= **************
ListenPort=51820
FwMark=0x8000
[Peer]
PublicKey= **************
AllowedIPs=10.0.0.2
AllowedIPs=192.168.102.0/24
PersistentKeepalive=25
[Peer]
PublicKey= **************
AllowedIPs=10.0.0.3
AllowedIPs=192.168.103.0/24
PersistentKeepalive=25

```

My phone[10.0.0.3] can tracert another GL-iNet(GL-XE300. Firmware4.0)[10.0.0.2],  
but cannot find PC[192.168,102.238] under [10.0.0.2]...

---

<div class="post-metadata">

**Author:** ![Yos](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/ed8c4c/32.png) [@Yos](https://forum.gl-inet.com/u/Yos)\
**Post date:** [July 11, 2024, 8:35am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/16 "2024-07-11T08:35:22Z")

</div>

I've got it!

I had confuse accessing from client and accessing form client-node. I could realize that the firewall distinguish the node and the device.

1. After updating firmware(over 4.0),

2. setting as bellow,  
[[Forum.GL-iNet]Building a Site-2-Site network manually using two GL.iNet routers(SDK 4.X)](https://forum.gl-inet.com/t/building-a-site-2-site-network-manually-using-two-gl-inet-routers-sdk-4-x/31479)

3. add Client Configuration of server setting as bellow,  
[[GL.iNet Router Docs 4]How to visit WireGuard client LAN side from Server](https://docs.gl-inet.com/router/en/4/tutorials/wireguard_server_access_to_client_lan_side/)

and I could connect a node device under WG\_Server router to another device under WG\_Client router eachother!

---

<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, 11:40am UTC](https://forum.gl-inet.com/t/how-to-access-a-peer-s-local-network/42595/17 "2025-10-29T11:40:13Z")

</div>


