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:
# 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
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!
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.
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?