🇷🇺 Русская версия This script installs Cloudflare WARP in "native" mode via WireGuard as an interface, without using warp-cli. ⚠️ Only Debian/Ubuntu based systems are supported. It automates: Installation of required packages Download and configuration of wgcf IPv6 availability check in the system Generation and modification of WireGuard configuration Connection and status verification Enable auto-start of warp…
The installer enables warp-native-killswitch.service. It drops locally generated packets marked 51888 when their selected output interface is not warp. This prevents marked WARP traffic from falling back to the server’s ordinary network connection when the warp interface is unavailable.
The protection applies only to outbounds that set the same mark in Xray:
"sockopt": {
"interface": "warp",
"mark": 51888
}
Removing mark disables the kill-switch for that outbound.
The kill-switch manages only its own nftables chain and restores it after a system nftables reload. After a manual nft flush ruleset, restore it:
systemctl reload nftables
Check its state and the active rule:
systemctl status warp-native-killswitch.service
nft list chain inet warp_native warp_native_killswitch
评论