Martineau
Part of the Furniture
It is supposed to globally block ALL WAN access (see /jffs/addons/wireguard/wg_firewall) ...i.e. prevent WAN leaks assuming LAN devices must always use WireGuard tunnels for outbound access.What does this do?
Code:# WAN KILL-Switch KILLSWITCH
And why does "?" say it's DISABLED?
When there is no "#" in front of "KILLSWITCH"
View attachment 34645
So the test to see if the KILL-Switch is ACTIVE is to check for the physical existence of the blocking rule
i.e.
		Code:
	
	iptables -nvL FORWARD | grep "WireGuard KILL-Switch"
	You can test to see if the toggle of the KILL-Switch using the
killswitch command works under v4.10
		Code:
	
	+======================================================================+
|  Welcome to the WireGuard Manager/Installer script (Asuswrt-Merlin)  |
|                                                                      |
|                      Version v4.11b8 by Martineau                    |
|                                                                      |
+======================================================================+
    WireGuard ACTIVE Peer Status: Clients 4, Servers 1
1  = Update Wireguard modules                       7  = Display QR code for a Peer {device} e.g. iPhone
2  = Remove WireGuard/wg_manager                    8  = Peer management [ "list" | "category" | "new" ] | [ {Peer | category} [ del | show | add [{"auto="[y|n|p]}] ]
                                                    9  = Create Key-pair for Peer {Device} e.g. Nokia6310i (creates Nokia6310i.conf etc.)
3  = List ACTIVE Peers Summary [Peer...] [full]     10 = IPSet management [ "list" ] | [ "upd" { ipset [ "fwmark" {fwmark} ] | [ "enable" {"y"|"n"}] | [ "dstsrc"] ] } ]
4  = Start   [ [Peer [nopolicy]...] | category ] e.g. start clients
5  = Stop    [ [Peer... ] | category ] e.g. stop clients
6  = Restart [ [Peer... ] | category ] e.g. restart servers
?  = About Configuration
v  = View ('/jffs/addons/wireguard/WireguardVPN.conf')
e  = Exit Script [?]
E:Option ==> killswitch on
ENABLED WireGuard ACTIVE Peer Status: Clients 4, Servers 1
1  = Update Wireguard modules                       7  = Display QR code for a Peer {device} e.g. iPhone
2  = Remove WireGuard/wg_manager                    8  = Peer management [ "list" | "category" | "new" ] | [ {Peer | category} [ del | show | add [{"auto="[y|n|p]}] ]
                                                    9  = Create Key-pair for Peer {Device} e.g. Nokia6310i (creates Nokia6310i.conf etc.)
3  = List ACTIVE Peers Summary [Peer...] [full]     10 = IPSet management [ "list" ] | [ "upd" { ipset [ "fwmark" {fwmark} ] | [ "enable" {"y"|"n"}] | [ "dstsrc"] ] } ]
4  = Start   [ [Peer [nopolicy]...] | category ] e.g. start clients
5  = Stop    [ [Peer... ] | category ] e.g. stop clients
6  = Restart [ [Peer... ] | category ] e.g. restart servers
?  = About Configuration
v  = View ('/jffs/addons/wireguard/WireguardVPN.conf')
e  = Exit Script [?]
E:Option ==> ?
    v4.11b8 WireGuard Session Manager (Change Log: https://github.com/MartineauUK/wireguard/commits/dev/wg_manager.sh)
    MD5=9648ba0592fc5ea1b306f397cab1671f /jffs/addons/wireguard/wg_manager.sh
<snip>
    [✔] WAN KILL-Switch is ENABLED
    [✖] UDP monitor is DISABLED
    [ℹ ] Reverse Path Filtering ENABLED
    [✔] Statistics gathering is ENABLED
ENABLED WireGuard ACTIVE Peer Status: Clients 4, Servers 1
	killswitch off command again
	