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"]
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow