/interface/print
=follow=
?dynamic=true
?#|
$util = new RouterOS\Util($client = new RouterOS\Client('192.168.88.1', 'admin', 'password'));
$util->setMenu('/ip hotspot host')->remove(RouterOS\Query::where('mac-address', '12:34:56:78:90:12'));
composer config minimum-stability beta
composer require pear2/net_routeros:@beta
/ip hotspot user profile set [find] rate-limit=""
$util->setMenu('/ip hotspot user')->remove(RouterOS\Query::where('name', '77777777'));
[find where !(var~"hello")]
Hi,
If you have no Firewall rules on Mikrotik device, so you should just create some Forward rules on your Modem.
For example for web you must forward 172.x.x.x whatever port to 192.168.1.5:80.
You're missing a space after the "if". It's ":if (", not ":if(".I've tried to run this simple code with script , but no luck
:if(1=1) do={:log info message="dddddddddd"}
mk.Send("=numbers=*" + user.Id);
/import test.rsc
$util->setMenu('/ip hotspot profile');
$util->edit('hsprof1', 'http-cookie-lifetime', $_POST['logincookie']);
client.talk(['/ip/dhcp-server/lease/make-static, '=numbers=*1A1'])
/interface/set
=numbers=*01
=comment=room404
:put [get [:pick [find comment=ISP1] 0] gateway]
/interface/pptp-client/set
=numbers=pptp-out1
=connect-to=host2.domain.com
$util->setMenu('/ppp secret')->set($name, array('password' => $password, 'service' => $service));
/ppp secret set numbers="user1" password="password1" service="pppoe"
/interface ppp-client print detail
/interface/ppp-client/print
=detail=