Community discussions

MikroTik App
 
fivestar
newbie
Topic Author
Posts: 29
Joined: Wed Jul 05, 2017 7:46 pm

Help with my automatic script

Mon Feb 03, 2020 4:54 am

i want to user the next script to acomodated by every nat rule a queue, but it dont show me the name has the comment of the nat rule

:foreach i in=[/ip firewall nat find where action=src-nat] do={
/queue simple add name=[[/ip firewall nat get $i comment] target=[/ip firewall nat get $i src-address] max-limit=2M/2M
}
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Help with my automatic script

Thu Feb 06, 2020 1:11 am

Is the double "[[" a typo in your script, or only in your posting?
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: Help with my automatic script

Thu Feb 06, 2020 2:41 am

and missing single "]" at the end or double "]]" at the end.

Who is online

Users browsing this forum: No registered users and 42 guests