Community discussions

MikroTik App

Search found 5 matches

by sin3vil
Sat Feb 01, 2020 12:39 pm
Forum: General
Topic: Packets bypassing firewall
Replies: 3
Views: 788

Re: Packets bypassing firewall

Hello mkx, We don't ever use detect-internet feature, not sure how it got enabled. I've posted my firewall rules, at least those related to this interface, and as you can see there are a bunch of accept rules for things we need working and then a drop rule to take care of the implicit accept. But, i...
by sin3vil
Wed Jan 29, 2020 1:24 pm
Forum: General
Topic: Packets bypassing firewall
Replies: 3
Views: 788

Packets bypassing firewall

Hello all, We've got the issue described in below thread on one of our sites. https://forum.mikrotik.com/viewtopic.php?t=138491 Detect-internet was somehow enabled which lead to spamming DNS requests on one of the WAN interfaces. Thing is, because this is a completely restricted backup WAN connectio...
by sin3vil
Tue Jun 25, 2019 11:39 am
Forum: Scripting
Topic: :tobool not working as expected
Replies: 4
Views: 1651

Re: :tobool not working as expected

Hello all,

Sorry, too a different path around this (string comparison instead of boolean) in my script and forgot about the thread.

I'm guessing any type of boolean operator should be translated by :tobool to true/false, so 1/0, yes/no, true/false.
by sin3vil
Thu Jun 13, 2019 5:41 pm
Forum: Scripting
Topic: :tobool not working as expected
Replies: 4
Views: 1651

:tobool not working as expected

Hello,

Can someone explain why this isn't working?
[admin@MikroTik] > local string "true";local boolean [:tobool $string];put [typeof $boolean]
nil
Tested on 6.44.1 and 6.45beta27.
by sin3vil
Sat May 26, 2018 10:47 pm
Forum: Scripting
Topic: Call variable by dynamically constructing it's name
Replies: 3
Views: 1114

Call variable by dynamically constructing it's name

Hello all, I'm not sure if my title is descriptive enough. I want to do this : local var1 "1st variable" local var2 "2nd variable" .... local varn "nth variable" local numofvars n for i from=1 to=$numofvars do={ :put $("var".$i) } Expected output: 1st variable 2nd variable ... nth variable But I'm u...