• 5 Posts
  • 227 Comments
Joined 25 days ago
cake
Cake day: October 22nd, 2024

help-circle


  • Thinking of the top if my head. I haven’t tested this.

    wg show lists connect peers, amongst other things. You can pipe that to grep to filter for just the peers.

    With watch, you can periodically do the commands mentioned above, and execute another command on change.

    With ntfy.sh you can easily get notifications on android or iphone.

    The whole thing would look like.

    watch --chgexit "wg show | grep peer" && curl -d "Someone (dis)connected!" ntfy.sh/mysecrettopic