Skip to content

Instantly share code, notes, and snippets.

@armm29393
Last active May 4, 2021 14:21
Show Gist options
  • Select an option

  • Save armm29393/8ec41f2ab5d64390575670f2feeb659a to your computer and use it in GitHub Desktop.

Select an option

Save armm29393/8ec41f2ab5d64390575670f2feeb659a to your computer and use it in GitHub Desktop.
# Mikrotik 6.44+
:local service [/ppp active get [find name="$user"] service];
:local callerId [/ppp active get [find name="$user"] caller-id]
:local token "YOUR_LINE_NOTIFY_TOKEN";
:local message "%0AService%3A%20VPN-$service%0AUser%3A%20$user%0AWAN%3A%20$callerId%0AIP%3A%20$"remote-address"%0AStatus%3A%20%3E%3E%20Connected%20%3C%3C";
/tool fetch http-method=post http-header-field="Authorization:Bearer $token" http-data="message=$message" output=none https://notify-api.line.me/api/notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment