Community discussions

 
reeseshad
just joined
Topic Author
Posts: 5
Joined: Thu May 14, 2009 5:59 pm

Manually Enable/Disable NAT Rules by Srcipting

Thu May 14, 2009 6:25 pm

I would like to know how to start writing scripts for the MikroTiK RB400. Is there a document that read to get started?

What I need to do is manually enabe/disable NAT rules from a browser or API interface(using a button). Is this possible? If so, what's the best scripting language to use?

Thanks
 
User avatar
Egate
Long time Member
Long time Member
Posts: 547
Joined: Thu May 15, 2008 10:43 am
Location: South Africa

Re: Manually Enable/Disable NAT Rules by Srcipting

Fri May 15, 2009 8:35 pm

Read wiki. Have got manual on script. Usually u use scheduler to run scrip when a condition is met. Don not know about from browser.
Happy days. :-)
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 138
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Manually Enable/Disable NAT Rules by Srcipting

Fri May 15, 2009 9:14 pm

The API can certainly be used to accomplish what you are looking for. At the very top of this forum, there is a sticky topic to API Examples.

In addition, the following may provide you with some insight into what commands you may be able to execute from within the API:
http://wiki.mikrotik.com/wiki/Scripting
http://www.mikrotik.com/testdocs/ros/2. ... ipting.php
- If I helped you solve your problem... I am now able to accept tax-deductible Karma donations!
 
reeseshad
just joined
Topic Author
Posts: 5
Joined: Thu May 14, 2009 5:59 pm

Re: Manually Enable/Disable NAT Rules by Srcipting

Wed May 20, 2009 9:59 pm

Thanks!! Your info really helped.
 
senzaroz
just joined
Posts: 1
Joined: Fri May 09, 2014 3:05 pm

Re: Manually Enable/Disable NAT Rules by Srcipting

Tue Sep 25, 2018 11:07 am

Thanks!! Your info really helped.
Hi,reeseshad, where you able to create a webpage to enable/disable the NAT rules, this is what im looking for.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 15 guests