# How to set up GLiNet as wireguard client?

**URL:** <https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289>\
**Category:** VPN, DNS, Leaks\
**Created:** [November 9, 2024, 8:13am UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289 "2024-11-09T08:13:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogardon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bogardon/32/21748_2.png) [@bogardon](https://forum.gl-inet.com/u/bogardon)\
**Post date:** [November 9, 2024, 8:13am UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/1 "2024-11-09T08:13:27Z")

</div>

Hi,

I have a GLiNet travel router that I'd like to use as a wireguard client to transparently route all traffic through my wireguard server I have set up at home. Basically I'd like all clients connected to my glinet travel router to appear as if they are connecting from home.

My current conf files look like this:

```auto
# server (some server on my home network)
[Interface]
Address = 10.0.0.1/24
PrivateKey = ...
ListenPort = 51820

[Peer]
PublicKey = ...
AllowedIPs = 10.0.0.2/32

```

```auto
#client (GLiNet)
[Interface]
Address = 10.0.0.2/32
PrivateKey = ...
MTU= 1420

[Peer]
AllowedIPs = 0.0.0.0/0
Endpoint = ...:51820
PublicKey = ...

```

The problem I'm having now is that though the tunnel can be established, I cannot actually reach the internet from any client connected to my glinet router. I think I need an additional step to tell the server how to route traffic from the wireguard tunnel back out to the internet, but I'm unsure how to do this. It seems like this would be a common use case of wireguard, so hopefully somebody can enlighten me. Thank you!

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [November 9, 2024, 9:14am UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/2 "2024-11-09T09:14:44Z")

</div>

Hi,

check this [WireGuard Client - GL.iNet Router Docs 4](https://docs.gl-inet.com/router/en/4/interface_guide/wireguard_client/) and [How to troubleshoot WireGuard](https://forum.gl-inet.com/t/how-to-troubleshoot-wireguard/42502) for the most common issues.

---

<div class="post-metadata">

**Author:** ![bogardon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bogardon/32/21748_2.png) [@bogardon](https://forum.gl-inet.com/u/bogardon)\
**Post date:** [November 9, 2024, 4:07pm UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/3 "2024-11-09T16:07:54Z")

</div>

Hey Admon,

I've read through those docs but still have the same issue. My configuration is basically the same as your docs. Again, I can connect to the tunnel but cannot connect to the internet through it. For example all DNS queries go through the tunnel, but I think my server doesn't know how to send it along, so a response is never returned. I tried setting the DNS field, but regardless the server does not route internet traffic.

---

<div class="post-metadata">

**Author:** ![bogardon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bogardon/32/21748_2.png) [@bogardon](https://forum.gl-inet.com/u/bogardon)\
**Post date:** [November 9, 2024, 4:18pm UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/4 "2024-11-09T16:18:57Z")

</div>

To be clear I am setting up the wireguard "server" on raspberry pi at home. I have the port forwarded so that's how the tunnel can be established. Is there some additional configuration I need so that the raspberry pi knows how to forward internet traffic?

---

<div class="post-metadata">

**Author:** ![Faithful](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/f/bc79bd/32.png) [@Faithful](https://forum.gl-inet.com/u/Faithful)\
**Post date:** [November 10, 2024, 6:47pm UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/5 "2024-11-10T18:47:07Z")

</div>

I’m having the same exact issue. Please let me know if you find a solution…. Thanks

---

<div class="post-metadata">

**Author:** ![truespeed](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/898d66/32.png) [@truespeed](https://forum.gl-inet.com/u/truespeed)\
**Post date:** [November 11, 2024, 10:11am UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/6 "2024-11-11T10:11:39Z")

</div>

Some things to try:

From a CLI on the client

Try pinging a public IP address (or trace-route) to see if you can see the WAN from the server side of the tunnel.

Try a name lookup to see if it resolves or times out.

If you have logs available at the server end look to see if you can see the inbound traffic.

---

<div class="post-metadata">

**Author:** ![bogardon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bogardon/32/21748_2.png) [@bogardon](https://forum.gl-inet.com/u/bogardon)\
**Post date:** [November 11, 2024, 4:35pm UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/7 "2024-11-11T16:35:21Z")

</div>

I think I need to do one or both of these things:

1. Configure iptables to provide NAT to the wg0 interface
2. Enable net.ipv4.ip\_forward and net.ipv4.conf.all.forwarding

Will need to do some research to make sure I get those right.

---

<div class="post-metadata">

**Author:** ![bogardon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bogardon/32/21748_2.png) [@bogardon](https://forum.gl-inet.com/u/bogardon)\
**Post date:** [November 11, 2024, 5:32pm UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/8 "2024-11-11T17:32:18Z")

</div>

I found [https://www.cyberciti.biz/faq/how-to-set-up-wireguard-firewall-rules-in-linux/](https://www.cyberciti.biz/faq/how-to-set-up-wireguard-firewall-rules-in-linux/) which seems like exactly what I need.

---

<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:41am UTC](https://forum.gl-inet.com/t/how-to-set-up-glinet-as-wireguard-client/50289/9 "2025-10-29T11:41:58Z")

</div>


