Apply regenerates WARP wgcf profile without Table=off/DNS protections → wg-quick fails (no resolvconf) or hijacks all routing → public lockout
Author: EricPrometheusCreated Sep 27, 2026Updated Sep 27, 2026
Environment
- Hiddify-Manager 13.0.3, Ubuntu 22.04 (no
resolvconfinstalled), WARP via kernelwg-quick@warp
What happened
During config re-apply, the WARP pass regenerated services/warp/wireguard/wgcf-profile.conf without the protections that generate_warp_wireguard_config() normally applies (sed Table = off + comment DNS =). Two failure modes followed:
wg-quick@warpfails to start:resolvconf: command not found→ warp interface deleted → hiddify-core/xray WARP egress dead (route ip+net: no such network interface).- When warp does start with the unprotected profile (
AllowedIPs = 0.0.0.0/0, noTable), wg-quick installs its default policy rules (not fwmark 0xca6c lookup 51820), which route all server egress — including replies to new inbound connections — into the tunnel. Result: public SSH/panel/probe all blackholed from the internet while already-established flows keep working; only VCN-private-IP access survives. We were locked out and had to rescue via a sibling instance inside the VCN.
Workaround applied
Table = off
PostUp = ip route add default dev %i metric 2000
PostDown = ip route del default dev %i metric 2000
#DNS = ... (commented)This keeps the interface (hiddify-core uses bind_interface) without hijacking global routing.
Also observed during the same upgrade
hiddify-core.service crash-looped 625 times at upgrade time (listen tcp 127.0.0.1:2000: bind: address already in use — stale instance holding the port during the restart race), self-healing only after ~1 hour.
Suggested fix
- Make every WARP profile generation path apply the
Table = off+ DNS protections (or makeresolvconfan explicit dependency and default the template to a safe Table). - Guard
hiddify-corerestarts against the port-2000 race.
Thanks!
Source: hiddify/Hiddify-Manager