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 resolvconf installed), WARP via kernel wg-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:

  1. wg-quick@warp fails to start: resolvconf: command not found → warp interface deleted → hiddify-core/xray WARP egress dead (route ip+net: no such network interface).
  2. When warp does start with the unprotected profile (AllowedIPs = 0.0.0.0/0, no Table), 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

ini
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 make resolvconf an explicit dependency and default the template to a safe Table).
  • Guard hiddify-core restarts against the port-2000 race.

Thanks!