OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: 9axqe on May 14, 2024, 01:22:42 PM

Title: Missing rc.conf
Post by: 9axqe on May 14, 2024, 01:22:42 PM
I know too little about freeBSD and I'm struggling a bit here.

I want to setup a cloudflare tunnel which is launched at startup, which requires cloudflared.

The instructions I found say:

vi /etc/rc.conf

add:


cloudflared_enable="YES"
cloudflared_mode="tunnel --no-autoupdate run --post-quantum --token your_token_here"


but there is no "rc.conf" file (anymore?) and hence I feel these instructions are outdated.

Should I store these lines in an "/etc/rc.conf.d/cloudflared" file rather?
Title: Re: Missing rc.conf
Post by: Monviech (Cedrik) on May 14, 2024, 01:48:08 PM
Yes that will work.
Title: Re: Missing rc.conf
Post by: franco on May 14, 2024, 01:49:08 PM
You can use /etc/rc.conf without any issue. We don't create one by default because it's empty and unused. This makes sure we never ever mess with user settings there.


Cheers,
Franco