-
Notifications
You must be signed in to change notification settings - Fork 118
/
WAN Monitoring with VPN via LINE Notify.txt
49 lines (37 loc) · 1.52 KB
/
WAN Monitoring with VPN via LINE Notify.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
## Create Instance AWS Cloud and Install MikroTik CHR on AWS Cloud: https://console.aws.amazon.com/
## Buy license key For MikroTik CHR: https://mikrotik.com/
## Create LINE Token: https://notify-bot.line.me/en/
## Encode Thai message For LINE notify: https://meyerweb.com/eric/tools/dencoder/
## MikroTik CHR (Run on AWS Cloud) ##
1.Enable L2TP Server
2.Create Secrets User, Password and set "Local Address" and "Remote Address"
3.Go to Tools > Netwatch
3.1) Press +
Host: Enter "Remote Address"
Interval: 00:00:10
Timeout: 800
3.2) Go to Up tab,
On Up:
:local token;
:local message;
:set token "Insert your LINE Token";
:set message "Internet is Up";
/tool fetch http-method=post http-header-field="Authorization:Bearer $token" http-data="message=$message" output=none https://notify-api.line.me/api/notify
3.3) Go to Down tab,
On Down:
:local token;
:local message;
:set token "Insert your LINE Token";
:set message "Internet is Down";
/tool fetch http-method=post http-header-field="Authorization:Bearer $token" http-data="message=$message" output=none https://notify-api.line.me/api/notify
3.4) Press Apply and OK
######################################
## MikroTik Site (For Check WAN interface is up or down) ##
1. Go to PPP
1.1) Press + and Choose L2TP Client
1.2) Go to Dial Out tab,
Connect To: Insert Public IP of AWS Cloud (MikroTik CHR)
User: Insert User of VPN
Password: Insert Password of VPN
1.3) Press Apply and OK
######################################