portsnap fetch
portsnap extract
- Install the cloudflared port:
cd /usr/ports/net/cloudflared/ && make install clean
cloudflared tunnel login
The cert.pem
file should be moved to where cloudflared
can find it e.g.
/usr/local/etc/cloudflared
- Create
/usr/local/etc/cloudflared/config.yml
logfile: /var/log/cloudflared/cloudflared.log
url: ssh://localhost:22
hostname: ssh.example.com
- Copy the rc.d file to
/usr/local/etc/rc.d
- Add
cloudflared_enable=YES
to/etc/rc.conf
- Optionally, set up short-lived certificates.