Community discussions

MikroTik App
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

auto.rsc doesn't execute?

Thu Oct 09, 2008 4:02 pm

Hi all.
I'm trying to use auto.rsc to mass update config on Mikrotiks.
I've upload this script:
/ip proxy access add dst-host=*yahoo.com path=* action=allow place-before=0
after this on router appeared file autoexecute.auto.log with this content:

Opening script file autoexecute.auto.rsc

Script file loaded successfully

It seems that everything went fine but when I look at proxy access rule there is no new rule.
If I import it from console by /import autoexecute.auto.rsc it says:

Opening script file autoexecute.auto.rsc

Script file loaded and executed successfully

And access rule addedd successfully.

Is this a bug or I miss something?

ROS v.3.14
 
fosben
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Dec 14, 2006 4:50 pm

Re: auto.rsc doesn't execute?

Fri Oct 17, 2008 12:51 pm

its your last command that causes it..-> place-before=0

If you want to use that command you need to print the list first... remove it and it works
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Re: auto.rsc doesn't execute?

Tue Oct 21, 2008 12:03 pm

Thank you fosben for your help. It was that.
But how can I place my rule on top of rules?
I've tried using:
/ip proxy access print
/ip proxy access add dst-host=*yahoo.com path=* action=allow place-before=0
No luck.
 
fosben
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Dec 14, 2006 4:50 pm

Re: auto.rsc doesn't execute?

Tue Oct 21, 2008 7:05 pm

actually abit confused now...

On my 3.13 system I cant write
/ip proxy access add dst-host=*yahoo.com path=* action=allow place-before=0
without doing the print command in terminal first..

But when I do the same thing in a 3.14 ros I can do it with no problem...

edit: seems like that one 3.14 box is the only box I can add it without doing print first, the others didnt let me, is there a setting somewhere ?

Who is online

Users browsing this forum: No registered users and 33 guests