#I have a VPS sitting and doing nothing
1 messages ยท Page 1 of 1 (latest)
You need to be sure you trust the VPS and VPS provider, since it'll have access to your network
Ahh that's a good point
Wouldn't I have to port forward, and set firewall rules just to connect to the "proxy" / VPN bridge ๐คท
Depends on how you set it all up
You said:
I need full lan access on the go as if I'm at the network
which would point to a bridged VPN so that you're "on" the network
Like when I setup WireGuard earlier on my OPNsense I needed to pass a ruel on my Wan that allowed incoming traffic into port 51820...
Yet people say that WireGuard just punches out, didn't I just had to port forward?
Makes sense
Yet people say that WireGuard just punches out, didn't I just had to port forward?
Depends on what you're reading when you read that
"people say" is:
- Vague
- subject to people not being an idiot
https://homenetworkguy.com/how-to/configure-wireguard-opnsense/?utm_content=cmp-true
This and the official opnsense road warrior guide is what I've followed.
WireGuard is a modern designed VPN that uses the latest cryptography for stronger security, is very lightweight, and is relatively easy to set up once you understand how it functions in OPNsense. I found setting up WireGuard in OPNsense to be more difficult than I anticipated when I was first learning how to properly configure the service. It se...
Where in there does it talk about punching out?
Ohh that part is just something I've picked up from others, one person says it can punch out others say it can't and you gotta port forward which means cloudflare is the one and only only solution.

What's true, can WireGuard punch out similar to cloudflare tunnels?
Not as far as I know, it needs a server the client can connect to
Now, you can run that server somewhere accessible
which is what was being discussed above
Via a vps
Or anything else
Indeed, But I would need to open ports on both the main network and the bridged network.
Not sure what you mean
Any VPN can reach out unless you block it
It's just packets
You can't however run a VPN server on the main network and access it without either hole punching support, or port forwarding
Which I can't do anyways because I'm behind CGNAT
So, you need a VPN solution that supports hole punching, something like Tailscale/ZeroTier, or a VPS to run your own server
What's hole punching compared to port forwarding?
To my understanding OPNsense on the main network would be running a WireGuard client, and then the VPS would act as the server, the Host handling the port forwarding for me?
Or I would need to go with a hole punching solution, like tailscale/zerotier?
So hole punching is basically where the client on the main network establishes a connection to the servers on the other end.. kinda like a reverse VPN similar to what marty mentioned?
It's starting to make more sense
So why would one consider cloudflare over a VPN solution like tailscale or WireGuard with a bridge running on a VPS?
For when you want to expose a service or services
Want to expose a web service? Want SSH access? Those are simple things that CF tunnels work well for
Hmm could I just tunnel my whole lan over cloudflare?
Or would I have to setup a tunnel per service
So let's say I spin up a VM on my Network with a Cloudflare tunnel.
Will it automatically just route everything to Cloudflares servers?
Everything being hosted in separate VM's are bare metal on the lan
Well, it'd be a pretty shit design to automatically find every web service on your network and expose them to the Internet
True now that I think about it ๐
It's not like it's hard to set up though
Personally, I'd set up a proxy for all the services you want to expose. Point the tunnels at the proxy, and let the proxy handle it
I say that, because that's what I do ๐
Now your CF tunnel host only has to reach the proxy, and the proxy is the only thing that needs to access the services
But what if I'm creating a new service (perhaps a new vm) away from the network, how would I add that service to a tunnel?
"away from the network"
what does that mean?
Do you understand what the tunnel is?
There's nothing stopping you running multiple tunnels
A tunnel is just a fancy VPN link
Remote, away from the lan
So set up another fecking tunnel?
You should read that
I bet it answers most of your questions
Yea it answers most of my questions.. Basically I have to setup an individual Cloudflare tunnel for each service/resource on my network...
No
You need to set up a tunnel for each network you want to access
I have one tunnel, for 5 services/resources
Ahh so this applies except I have to route those services
Or set up a proxy server and let that handle it
Depends on whether you want the CF tunnel host to have access to everything for a simpler setup, or to limit access and add some complexity
The proxy server being the method that limits access
Yeah
Tunnel terminates at the CF tunnel host, which then only has access to the proxy (DMZ)
Depends on whether you're doing this for work or home, and what your risk model is
I'm doing it for both so I should probably setup the proxy
A little bit of network security now reduces the risks ๐
Exactly, With the WireGuard plus Proxy/Bridge on a VPS method, what risks am I looking at other than trusting the VPS?
That's the biggest one, but you have to trust something to be able to VPN in
The other option would be Nebula VPN with a VPS to host the "lighthouse"
https://arstechnica.com/gadgets/2019/12/how-to-set-up-your-own-nebula-mesh-vpn-step-by-step/ is old, there's likely better guides now, but it's in my bookmarks
Nebula looks like a smarter option over WireGuard
That mesh feature is interesting
So your using traefik as the proxy and authentik for authentication?
When it comes to Cloudflare
Yes, and no
I'm using CF's auth as the first pass to get to the services
Then the tunnel hands the connection to Traefik
That then either uses Authentik (if the web app has no auth) or the web app's auth
Why not I setup both solutions for redundancy ๐คท
Users can access specific services through cloudflare connected to a proxy, and I can connect through either WireGuard or Cloudflare for remote management.
Hey quick question, is this the guide you wrote for using traefik with cloudflare tunnels?
Yes
I just got cloudflare tunnels running, you were right, creating routes is easy
my only concern is that I would like additional authentication, is that what you've achieved with authentic (also apologize for the pings, I keep forgetting to disable it, not trying to be annoying)
Just don't use reply and the problem is solved ๐
I mean, there's only two of us in this thread
And yes, you can put auth in front of the connection (Cloudflare's auth) or you can use Authentik either as middleware or integrated with the app (where supported)
gotcha, I tried Cloudflare's auth, wasn't too pleased with it, at least the way I set it up.
the best I could do was have it send a code to any email, not sure if there's a white list or not
Then you didn't read my guide
And yes, there's whitelists, but SSO is so much easier
I skimmed through it, hehe
I'll read everything and see what I can do with it
@obsidian spade When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
Do you suggest I follow this guide to get traefik up and running? https://www.smarthomebeginner.com/traefik-docker-compose-guide-2022/