How to enable/disable WireGuard peer by comment on MikroTik
To enable the WireGuard peer called MyPeer
:
/interface/wireguard/peers/enable [find comment="MyPeer"]
To disable the WireGuard peer called MyPeer
:
/interface/wireguard/peers/disable [find comment="MyPeer"]