Using Wireguard to Tunnel All Traffic through a VPS to Home #26
Replies: 5 comments 6 replies
-
What does your iptables config look like? |
Beta Was this translation helpful? Give feedback.
-
One feature of this over, e.g., Cloudflare is support for publishing UDP ports to the internet, I learned this in the middle of actually trying to migrate away from a similar setup to Cloudflare because I felt like I could drop the VPS then. I guess I have to keep running a custom solution to be able to host UDP based game servers |
Beta Was this translation helpful? Give feedback.
-
Hey i need some help please! I don't understand what you mean by the DMZ config? do i need another server for that or? |
Beta Was this translation helpful? Give feedback.
-
Is your apps still accessible over your LAN if everything is being tunelled with wireguard? |
Beta Was this translation helpful? Give feedback.
-
I have just been implementing a similar setup with wireguard bridging my VPS and my opnsense server but using nginx instead of caddy. However, I've run in to some weirdness with home assistant which is what lead me to your blog. My VPS correctly terminates the client TLS session and I'm able to access the main auth page of home assistant; I'm able to enter my credentials and get prompted for my MFA OTP but then get a response saying that home assistant can't connect. I also get a notification in home assistant telling me that a device has just failed to authenticate (and I see the correct external IP of the client). It's really baffled me how I can access the auth pages of home assistant via this route but then get bounced following successful auth with the unable to connect message; at a guess I think it's down to opnsense policy based routing as I have multi WAN rules in place but wanted to float my problem in case it's something you saw and have an obvious answer to (or anything springs to mind that I've missed). |
Beta Was this translation helpful? Give feedback.
-
Using Wireguard to Tunnel All Traffic through a VPS to Home
In my last post, I discussed how I was moving off of Cloudflare and also moving to Caddy. After about a month of completing that switchover, I’m sticking to it. Still have a few issues with the way Caddy does things but overall it works.
In this post I want to discuss my Caddy setup, particular how I am not directly exposing my homelab/server to the internet but instead am routing all the traffic through a VPS.
https://blog.fuzzymistborn.com/vps-reverse-proxy-tunnel/
Beta Was this translation helpful? Give feedback.
All reactions