OPNsense Forum

English Forums => General Discussion => Topic started by: simoneweb on August 13, 2024, 05:27:21 AM

Title: cloudflare tunnel over GRE
Post by: simoneweb on August 13, 2024, 05:27:21 AM
how do I install the cloudflared service on opensense and be able to establish a tunnel with cloudflare?

I did found this guide: https://www.jackpearce.co.uk/cloudflared-opnsense/

after the installation I coudn't find this folder: cd /usr/ports/security/cloudflared
Title: Re: cloudflare tunnel over GRE
Post by: 9axqe on October 07, 2024, 12:44:48 PM
The correct path is /usr/ports/net/cloudflared
Title: Re: cloudflare tunnel over GRE
Post by: AfroBro87 on October 25, 2024, 10:19:40 PM
Just to follow-up with this:

I followed the same aforementioned guide, https://www.jackpearce.co.uk/cloudflared-opnsense/

However, I am getting stuck on the portion:

"nano /usr/local/etc/rc.d/cloudflared modify so that it matches below. We're just removing ${cloudflared_conf} from the command arguments as we're supplying a token instead of using a config.yaml"

I can't seem to get to the config.yaml portion. I followed the steps and was able to do everything prior to without issue. But I guess I'm stuck at step 5
Title: Re: cloudflare tunnel over GRE
Post by: 9axqe on October 26, 2024, 09:53:47 AM
Seems to me there's (now) a typo on the page.

The page used to look like this a couple of months back:

https://web.archive.org/web/20240202030437/https://www.jackpearce.co.uk/cloudflared-opnsense/

You can clearly see that the line

: ${cloudflared_conf:="/usr/local/etc/cloudflared/config.yml"}

is removed in the "/usr/local/etc/rc.d/cloudflared" file.

On the current version though, the line is not removed any more, which contradicts the accompanying text which states "We're just removing ${cloudflared_conf} from the command arguments".

I just added # at the beginning of this line to comment it out – I prefer it to deleting the line.

I'm not sure what you meant by "I can't seem to get to the config.yaml portion" though, so I'm not sure my comment helps.