Last active
May 4, 2021 14:21
-
-
Save armm29393/8ec41f2ab5d64390575670f2feeb659a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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