January 2, 20224 yr Hey all. I have a wireguard tunnel set up on my server, and I have the port forwarded already, as well as two peers. On my phone (first peer), the traffic is routed as expected, and I can access everything. On my laptop (second peer), the traffic is routed through the tunnel, and I can still access the internet, but whenever I attempt to connect to my server on the remote LAN (192.168.1.xxx), I am instead accessing the actual local net where I am. Since the traffic is going through, I assume that this is a configuration error on my end, but looking at the wireguard peer settings, I can't tell what is different between my phone and my laptop peer that is causing this issue. I have read that you need to have the allowed IPs set to 0.0.0.0/0 in order to block all local traffic, and it is set that way on my machine, but this is still going on. I can even ping from the server UI to the device and get a response. What is it that I'm missing? Here is a screenshot from the client's end on the peer settings: Edited January 2, 20224 yr by hking0036 shrink image
January 2, 20224 yr Community Expert Have you checked the IP addresses on your phone and laptop. You do not want both client and server to be on the same subnet as this can cause routing issues. I deliberately set my home subnet to be something other than 192.168.0.x or 192.168.1.x as this would mean there is a good chance of both client and server ending up on the same subnet.
January 3, 20224 yr Author 4 hours ago, itimpi said: Have you checked the IP addresses on your phone and laptop. You do not want both client and server to be on the same subnet as this can cause routing issues. I deliberately set my home subnet to be something other than 192.168.0.x or 192.168.1.x as this would mean there is a good chance of both client and server ending up on the same subnet. Ah, yeah, they are both on the same subnet. Maybe it would be less of a fight if I was to make a distinction on that front; I'll try and configure that some more when I get the opportunity.
January 4, 20224 yr If you want all traffic to go through the VPN tunnel then the "Peer type of access" should be set to "Remote tunneled access". The WireGuard settings page should then show a warning similar to this, advising that the peer's network IP range cannot be the same as Unraid's network:
February 10, 20224 yr On 1/2/2022 at 4:21 PM, hking0036 said: On my laptop (second peer), the traffic is routed through the tunnel, and I can still access the internet, but whenever I attempt to connect to my server on the remote LAN (192.168.1.xxx), I am instead accessing the actual local net where I am. What is it that I'm missing? Here is a screenshot from the client's end on the peer settings: Your listening ports of peer and server needs to be the same. (51820) Set your DNS server to be the server wireguard ip address.. (10.253.0.xx)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.