How to properly setup WireGuard LXC via public IP #4306
Unanswered
GudBoiNero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ok so I've tried to setup the WireGuard LXC multiple times in the past month or two. Once it just didn't work, the other times it worked- meaning I could use my VPN and access the internet, but for some godforsaken reason I could never get access to local IPs (
192.168.1.x
).Setup
After I set the LXC up, I port forward my router's port 51820 to my WireGuard LXC's
192.168.1.x:51820
.Then I go into WGDashboard and set the Peer Settings endpoint to my public IP.
I go into wg0 config and set the CIDR to
10.32.0.1/24
Then I create a peer and it sets the Addresses to
10.32.0.2/32
At this point I scan the QR code on my phone to connect- and then I enable my VPN, turn off WiFi, turn on Cellular, and try to connect to
192.168.1.233:9000
(my portainer instance). It doesn't work. Yet somehow everything else that isn't my local network does work. Like YouTube and Google.If I try to ping my phone on WGDashboard at this point, it says my pings went through and I'm connected, it even picks up that I'm using data and shows it on the graph.
If I use shell in my LXC and ping
192.168.1.233
: it works.nc -z
or the other command to test ports also works with this IP at port9000
.So at this point I'm really confused what's wrong. I've been troubleshooting this for weeks in intervals and I cannot understand what's wrong.
Help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions