Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /tool netwatch
- add down-script="{\r\
- \nlog error (\"WMS is down --- trying to reconnect ......\")\r\
- \n:local ip [/ip address get [/ip address find interface=\"namaINTERFACE\"] address];\r\
- \n:local ip [put [:pick \$ip 0 [:find \$ip \"/\"]]]\r\
- \n/tool fetch http-method=post http-data=\"username=USERNAMEWMS@freeMS&password=PASSWORDWMS\" url=(\"https://welcome2.wifi.id/wms/auth/authnew/autol\
- ogin/quarantine.php\\\?ipc=\$ip&gw_id=GWIDurl&client_mac=MACADDRESSinterface&wlan=WLANurl:UN%20CHECK\") keep-result=no\r\
- \nlog warning (\"WMS is UP\")\r\
- \n}" host=8.8.8.8 interval=10s
- *** noted , ganti yang perlu diganti untuk disesuaikan dengan data yang ada ****
- *** setelah itu copy paste di new terminal ****
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement