Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://welcome2.wifi.id/wms/?gw_id=WAG-D4-KBU&client_mac=74:4d:28:2e:8e:2a&wlan=KMGOM00057/TLK-WI32312450-0001:SKB
- ____________________________________________________________________________________________________________________
- yg pertu digati=
- 1. gw_id
- 2.mac&wlan
- :if ([/ping address=8.8.8.8 count=2] = 0) do={
- /ip dns cache flush
- /ip dhcp-client release [find interface=namainterfacewlan]
- log warning ("NEW DHCP CLIENT")
- delay 10
- log error ("@WMS is down --- trying to reconnect ......")
- :local ip [/ip address get [/ip address find interface="wlan2"] address];
- :local mac [/interface wireless get [ find default-name=wlan2 ] mac-address];
- :local ip [put [:pick $ip 0 [:find $ip "/"]]];
- /tool fetch http-method=post http-data="username=radiokopi&password=radiokopi" url=("https://welcome2.wifi.id/wms/auth/authnew/autologin/quarantine.php\?ipc=$ip&gw_id=?gw_id=WAG-D4-KBU&client_mac=$mac&wlan=74:4d:28:2e:8e:2e&wlan=KMGOM00057/TLK-WI32312450-0001:SKB") keep-result=no;
- } else {
- log warning ("@WMS is UP")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement