You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
net/cloudflared: rework to use FreeBSD port with enhancements
Reworks the original plugin by Alan Martines to address the architectural
feedback on PR opnsense#5406: the custom binary installer is replaced with
PLUGIN_DEPENDS= cloudflared, delegating binary management entirely to pkg
via the FreeBSD ports tree. The plugin is now a pure configuration wrapper.
Binary and service:
- Remove install_binary.sh and bundled rc.d script; use FreeBSD port
- Pass tunnel token via TUNNEL_TOKEN env var (cloudflared_env in rc.subr)
so it does not appear in ps aux; /etc/rc.conf.d/cloudflared chmod 600
- Add config.yml template; move options out of rc.conf.d command args
- Hardcode no-autoupdate: true (pkg manages the binary; self-update
is inappropriate)
New features:
- Transport protocol selector: Auto (QUIC with HTTP/2 fallback, default),
QUIC-only (UDP 7844), HTTP/2-only (TCP 443)
- Automatic outbound firewall rule for TCP/UDP 7844 via cloudflared_firewall()
hook; UDP active for Auto and QUIC-only modes, TCP for Auto and HTTP/2-only
- quic-disable-pmtu-discovery option: workaround for intermittent QUIC
stream errors on networks where ICMP is filtered
- Log viewer tab with client-side pagination (25/50/100/200 lines/page,
Older/Newer navigation) and Follow mode for live tailing
- Crash recovery: monitor.sh syshook and cron job restart cloudflared if
it exits unexpectedly; sentinel file suppresses watchdog after intentional
stop
- newwanip/newwanip6 hook to restart on WAN IP change if daemon exits
Reliability fixes:
- Improve tunnel health detection: cross-check Prometheus metrics against
log output to catch stale ha_connections; report accurate down state
Other:
- Security notice in UI: tunnel traffic bypasses OPNsense firewall rules
- Translations for 20 languages in addition to the original pt_BR
(machine generated)
- BSD license headers on all scripts
- README.md entry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
<help>Pass --quic-disable-pmtu-discovery to cloudflared. Workaround for intermittent "failed to accept QUIC stream" errors on networks where ICMP is filtered and path MTU discovery does not work correctly.</help>
25
+
</field>
26
+
<field>
27
+
<id>Cloudflared.general.protocol</id>
28
+
<label>Protocol</label>
29
+
<type>dropdown</type>
30
+
<help>Transport protocol for the tunnel connection. Auto tries QUIC first and falls back to HTTP/2 if unavailable. Outbound firewall rules are automatically added: UDP 7844 for Auto and QUIC modes, TCP 7844 for Auto and HTTP/2 modes.</help>
0 commit comments