Community discussions

MikroTik App

Search found 27 matches

by baddah
Tue Jun 29, 2010 2:05 pm
Forum: Scripting
Topic: Auto configure through Mac Telnet
Replies: 2
Views: 1365

Auto configure through Mac Telnet

Hi, I'm trying to setup the following. I use one routerboard as a 'configuration routerboard'. From here i will mac telnet to default (unconfigured) routeboard plugged into the network, and run a configuration script that will setup the new routerboard. I'd like to do all of this automatically. Is t...
by baddah
Wed Apr 15, 2009 10:28 am
Forum: Scripting
Topic: API - see disabled interfaces/ip addresses
Replies: 9
Views: 1570

API - see disabled interfaces/ip addresses

Hi, How can one get back the status(enabled/disabled) of an entry back from the API? i.e 4 X 192.168.102.1/24 192.168.102.0 192.168.102.255 ether1 but from API,i only get back the following [4] => Array ( [.id] => *8 [comment] => [address] => 192.168.102.1/24 [network] => 192.168.102.0 [broadcast] =...
by baddah
Tue Apr 07, 2009 10:49 am
Forum: Scripting
Topic: API Add User - PHP
Replies: 5
Views: 3624

API Add User - PHP

Hi, I'm trying to add a user thorugh the API using PHP. Here is my code. I have tried some variations on this, and can't seem to get any of them working. (Left out the connect part and so on, this is working fine,its just not adding the user)Any suggestions. $API->write('/user/add',false); $API->wri...
by baddah
Fri Sep 14, 2007 4:46 pm
Forum: Beginner Basics
Topic: MIkrotik OS Raid Support
Replies: 12
Views: 6826

Re: MIkrotik OS Raid Support

indeed if you want a RAID system using RouterOS then you have to go with purely hardware solution, so RouterOS will it as a drive, and all the managemnet of RAID should be done by controller, not the os Ok,thats fine,provide Router OS sees the raid array and not two sepereate arrays,i know some old...
by baddah
Thu Sep 13, 2007 10:09 am
Forum: Scripting
Topic: Login Failures when script connects
Replies: 3
Views: 1074

Re: Login Failures when script connects

Hi,Thanks for the reply ssh tries once first without authentication I believe I dit not know this,as far as i know this is not normal ssh behaviour?Maybe an option to switch this off? You should specify a password, or use a certificate and this should be fixed. I believe i do have a certificate.I ge...
by baddah
Tue Sep 11, 2007 2:34 pm
Forum: Beginner Basics
Topic: MIkrotik OS Raid Support
Replies: 12
Views: 6826

MIkrotik OS Raid Support

HI,

Does Mikrotik OS support RAID.We are planning to build a server with Mikrotik OS and would like to have RAID 1 running.If it does support RAID,how will i go about configuring it?

Thanks
by baddah
Tue Sep 11, 2007 9:45 am
Forum: Scripting
Topic: Login Failures when script connects
Replies: 3
Views: 1074

Login Failures when script connects

Hi, I have a script that runs from a linux server,connects to a mikrotik router and changes some firewall rules,it works but i've picked up that the following happens.(I have ssh kyes shared between the mikrotik router and the lunix server,so no need for passwords.).Say i do the following command fr...
by baddah
Wed Aug 08, 2007 11:32 am
Forum: Scripting
Topic: Get List of All Usable Ips
Replies: 7
Views: 2415

Re: Get List of All Usable Ips

Another quick question. How can i find all ips inside a certain range? Say i have a 172.16.0.0/16 and a 192.169.0.0/16 on a certain interface and i only want to list the ips in the 192 range. something like ip /address find [interface=interface src-address=????] The ???? part must give me all ips in...
by baddah
Tue Aug 07, 2007 6:25 pm
Forum: Scripting
Topic: Get List of All Usable Ips
Replies: 7
Views: 2415

Re: Get List of All Usable Ips

Hi,

Thanks for the reply.That workaround seems to work.

also,what about
[/ip address find interface=ether1 disabled=no]         .
...

Testing suggests this works.Maybe i'm going crazy and i'm starting to see stuff.
by baddah
Tue Aug 07, 2007 5:09 pm
Forum: Scripting
Topic: Get List of All Usable Ips
Replies: 7
Views: 2415

Re: Get List of All Usable Ips

I'm sure that it is very clear that all the addresses between 10.5.50.0 to 10.5.50.254 might be configured on RouterOS. However it is not able to specify all usable IP addresses from this subnet, 'ip arp print' show information about current used IP address on the network (however client can switch...
by baddah
Mon Aug 06, 2007 11:42 pm
Forum: Scripting
Topic: Get List of All Usable Ips
Replies: 7
Views: 2415

Get List of All Usable Ips

Hi, I'm looking for a command to give me back all the usable ips in a range.i.e if i have a 192.168.29.1/30 in ip addresses thus, network 192.168.29.0 broadcast 192.168.29.3 Usable Ip address 192.168.29.2 (The gateway will be 192.168.29.1) I know i can use a command like ip address get network to ge...
by baddah
Tue Jul 03, 2007 2:02 pm
Forum: Scripting
Topic: Script to change filrewall rules
Replies: 0
Views: 848

Script to change filrewall rules

Hi, I am hoping to achieve the following. I want to go through all the ips in ip adresses for a certain range,say 192.168.1.1/32,and check if there are certain firewall rules.If not,add the rule,else do nothing. I'm fine with the firewall commands and so om,just need some help on the scripting side....
by baddah
Tue Feb 06, 2007 11:26 am
Forum: Scripting
Topic: Script to automatic reverse entries made in ip firewall
Replies: 2
Views: 1319

Sorted!!

Thank you very much.

Using the find command is just what i needed.Thanks
by baddah
Tue Feb 06, 2007 11:18 am
Forum: Scripting
Topic: Script to Restet PPPOE Server
Replies: 1
Views: 1909

Sorted!!

Thanks,

The following worked for me....

/interface pppoe-server server disable [find interface=etherX]
/interface pppoe-server server enable [find interface=etherX]
by baddah
Tue Feb 06, 2007 10:34 am
Forum: Scripting
Topic: Script to Restet PPPOE Server
Replies: 1
Views: 1909

Script to Restet PPPOE Server

Hi, I am looking for a script to reset my pppoe server(i only have one) on a daily basis.The following command in telnet works... >interface pppoe-server server { print {... disable 0 {... enable 0 } It will always be 0 because their is only one,so this will work,but if i take this command and put i...
by baddah
Tue Feb 06, 2007 10:26 am
Forum: Scripting
Topic: Script to automatic reverse entries made in ip firewall
Replies: 2
Views: 1319

Script to automatic reverse entries made in ip firewall

Hi, I am trying to build a script that does the following.During the month we insert som firewall filter rules for some clients(due to capping for instance) that only allows him access to some local sites.I am looking to write a script that will(at the end of the month) take away all these rules tha...
by baddah
Thu Aug 17, 2006 12:32 pm
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

Its working mostly

Thanks Eugene,you're a legend.

Just sort out all the mysql stuff and it'll work,but that's easy luckily

I'm just limiting the queue to 1byte or something for every user that's over the limit

Thanks
by baddah
Thu Aug 17, 2006 9:40 am
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

Ok,that sounds pretty cool.That's exactly what i was hoping to do,but just a few questions.If you know,otherwise i'll try to figure it out.I know how to do perl mysql interaction,but i'm having some trouble with the following. 1)if i want to ssh into the router from the script,how will i do this.som...
by baddah
Wed Aug 16, 2006 4:29 pm
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

not sure how that would work?maybe you can give more info on how that would work?

Thanks
by baddah
Wed Aug 16, 2006 12:54 pm
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

thanks for the reply... Ja I know the radius server has got the MySQL backend,but then i'll have to configure the freeradius and configure all the clients their,and thats just a bit of a big mission at the moment.I thought maybe there some sort of automated script you can use to do this sort of thin...
by baddah
Wed Aug 16, 2006 11:25 am
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

Any ideas???without using a full radius server setup.I'm using accounting collecter,so i'd like to keep my Mysql database in that form rather than using an radius setup.Any help would really be apreciated,I need to hard cap people but i'm having some trouble!!

Thanks...
by baddah
Tue Aug 15, 2006 9:12 am
Forum: The Dude
Topic: bind ip address with mac address??
Replies: 7
Views: 9555

Ok, Am i right in saying that if your interface is set to reply-only only ips in the static ARP List will work.No ips will be added dynamically. If its set to enabled,any ip's not in the static list will be added dynamically and then work,and if the ip is in the list it will use the MAC authenticati...
by baddah
Mon Aug 14, 2006 12:12 pm
Forum: The Dude
Topic: bind ip address with mac address??
Replies: 7
Views: 9555

Settings on Interfaces

Ok,i've got a static ARP List,now just two things. 1) I've found http://wiki.mikrotik.com/wiki/How_to_secure_a_network_using_ARP,but when i set my interface ARP setting to ARP only it does not work,but if i set it to proxy-arp it seems to authenticate a ip already entered into the static list.Is thi...
by baddah
Mon Jul 17, 2006 8:45 am
Forum: Scripting
Topic: Hard Cap Users?
Replies: 9
Views: 1872

Hard Cap Users?

Hi,is there an easy way to hard cap users on a mikrotik user.All Usage for our users gets saved on a MySQL database,so if a script can acess data from their and implement a hard cap solution it would be ideal,but any other solution(maybe with queus),would be ok as well.Any suggestions.Thanks
by baddah
Mon Jul 17, 2006 8:42 am
Forum: General
Topic: bind ip address with mac address??
Replies: 4
Views: 3555

We have a lot of clients on a router,each one gets assigned a static IP.mostly an /30 or /29 range of ips,so basically each user sits on his one little network.At the moment any client can set his PC's ip to any valid ip on the router and it will work.I would like to prohibit this by binding this st...
by baddah
Thu Jul 13, 2006 10:44 am
Forum: General
Topic: bind ip address with mac address??
Replies: 4
Views: 3555

bind ip address with mac address??

Hi,I'm abig newbie,so excuse me if i sound stupid.I'm sure i am. What i want to know,is there a way to specify that any user who tries to login with ip,say 1.2.3.4, must do so with a specified MAC address,that he supplied and we save somewhere in miktrotik. In other words,we supply clients with an i...
by baddah
Thu Jul 13, 2006 10:32 am
Forum: The Dude
Topic: bind ip address with mac address??
Replies: 7
Views: 9555

bind ip address with mac address??

Hi,I'm abig newbie,so excuse me if i sound stupid.I'm sure i am. What i want to know,is there a way to specify that any user who tries to login with ip,say 1.2.3.4, must do so with a specified MAC address,that he supplied and we save somewhere in miktrotik. In other words,we supply clients with an i...