So, this isnt really HA related but, what better place to ask then a community of geeks and tinkers that will probs provide the best answers haha.
Im really trying to get my head around Cloudflare and what it offers. Mainly, what I’m after is a remote access VPN, which I currently have using OpenVPN cloud and works great (im also behind CGNat), but is very limited and hugely expensive for more then 3 connections, 1 of which is my pfSense as a client to the cloud.
My goal:
Create a remote access cloud based VPN using cloudflare to remotely access my entire internal subnet using the cloudflare WARP application. This will be the entire subnet 192.168.1.0/24 for example, allowing me to access all resources on the network.
I then also want to route all OUTBOUND traffic out through that same cloudflare tunnel, for the security features that cloudflare offers (TLS inspection etc), why not right, its free.
This means, access to HA is easy, use the private IP of HA and access it just as if you were on the LAN. Also, you can deploy remote access policies for different users but I will go down that path later.
My Setup:
Im using pfSense for my router! Now, this seems to be a problem trying to get cloudflared to run in pfSense or any other backward compatibility with other apps such as wireguard etc. So if anyone has done this, please let me know. I have managed to fire up a docker container with cloudflared (the one given when creating the tunnel) and connected it successfully, however this does exactly give me any control over routing or firewall rules in pfSense.
I also installed cloudflared on HA, and got the tunnel up. One thing I noticed is the tunnel does not appear to have a Private IP address assigned to it. (what am I missing here?) so I’m not actually sure how to route traffic over it. Im also not sure how I would route traffic out over the runnel from pfSense (maybe a static route in the docker container for 0.0.0.0/0, but again then there is no control within pfSense.)
I did notice I can enable Split Tunnelling and router subnets in the cloudflare dashboard, but still dont know how this works with the tunnels, as there is no private IP assigned with a tunnel that I can see.
I’ve been trying to get my head around this now for a few days, but seem to be going in circles and struggling to find any real definitive answers out there!
Any help much appreciated!