Community discussions

MikroTik App

Search found 2 matches

by czzapik
Sat Oct 08, 2016 2:22 pm
Forum: Scripting
Topic: help with scrip
Replies: 0
Views: 562

help with scrip

Hello, I would like to enable on bridge firewall through API. I have created PHP code, but is not working. Whats wrong? $API = new RouterosAPI(); $API->debug = true; if ($API->connect($IP, $Username, $Pass, $Port)) { $API->write('/interface/bridge/settings/set'); $API->write('=use-ip-firewall=yes');...
by czzapik
Thu Aug 18, 2016 2:06 pm
Forum: Scripting
Topic: script working well with /24 subnet but not with /16
Replies: 6
Views: 2371

Re: script working well with /24 subnet but not with /16

its work ,, thank you from ipcal Address: 10.0.0.0 Netmask: 255.255.0.0 = 16 Wildcard: 0.0.255.255 Network: 10.0.0.0/16 Broadcast: 10.0.255.255 HostMin: 10.0.0.1 HostMax: 10.0.255.254 Hosts/Net: 65534 65535 rules for mangle is crazy but try this... for x from=1 to=254 do={ for y from=0 to=255 do={ ...