Community discussions

MikroTik App
 
buee
just joined
Topic Author
Posts: 1
Joined: Wed Jun 23, 2010 1:49 am

Getting commands or scripts to the router

Wed Jun 23, 2010 3:02 am

So I have a bunch of these:
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=10.0.0.25 to-ports=80 protocol=tcp src-mac-address=00:00:00:00:00:14 dst-port=1-65535 comment="Smith NONPAYER"
In a file. The problem I have is that they're all in a file on a Ubuntu machine. I need to get these commands to the RouterOS and execute them hundreds of times a day. I'll also need to remove the old ones, which I assume I can just tack the remove commands at the beginning of the script. How do I/what is the best way to do this?

I think I could figure out the scheduler portion, but if someone could provide a quick tip on how to do that, it would help. I'm sad to say I'm new to MikroTik, but have been so impressed with what it can do so far, it just blows my mind.

P.S. - I did Google this with no luck.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Getting commands or scripts to the router

Sat Aug 14, 2010 6:14 pm

http://wiki.mikrotik.com/wiki/Manual:API

However, that's way too much work. Just use AAA.
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Getting commands or scripts to the router

Sat Aug 14, 2010 7:11 pm

I did all of that in what i call VX.

It's a Radius based system, and dynamically bashes the queues, who's authorised etc etc etc.

It was a Huge amount of work, but sorts it all out.

Trouble is, everyone wants it for free.

Who is online

Users browsing this forum: Bing [Bot] and 64 guests