Community discussions

MikroTik App

Search found 53 matches

by CristianDeluxe
Sun Oct 06, 2013 3:57 am
Forum: Scripting
Topic: Updated Mikrotik PHP API to 1.5
Replies: 1
Views: 1252

Updated Mikrotik PHP API to 1.5

PHP API is available at Mikrotik WIKI: http://wiki.mikrotik.com/wiki/API_PHP_class Changelog: [Fix] Uninitialized variable error in function "read" The last edit by user "Eugenevdm" causes a syntax error (missing $ before variable name) Thanks also to Daniel Machado for report th...
by CristianDeluxe
Fri Dec 23, 2011 12:26 am
Forum: General
Topic: Support for "OR" operator in mangle rules
Replies: 6
Views: 2581

Re: Support for "OR" operator in mangle rules

why '(protocol = udp && dst-port=53)'? :) maybe, '(dst-address-list = DNS && dst-port=53) || protocol=udp'? the main problem is that there's no syntax for logical expressions Because you cannot check the port if you don't know the protocol so i follow winbox "guidelines", ...
by CristianDeluxe
Thu Dec 22, 2011 6:40 pm
Forum: General
Topic: Support for "OR" operator in mangle rules
Replies: 6
Views: 2581

Re: Support for "OR" operator in mangle rules

Sorry for the delay it should be done this way - pseudo code: if (connection state == new && src-address-list=TEST){ mark connection with this mark - test, and pass through} if (connection state == new && dst-address-list=TEST){ mark connection with this mark - test, pass through} if...
by CristianDeluxe
Thu Dec 15, 2011 10:29 pm
Forum: General
Topic: Feature request: support for DNS in packages
Replies: 4
Views: 2209

Re: Feature request: support for DNS in packages

we are considering to allow to enter domain name instead of IP address. but the problem start when this IP is entered in somewhere like firewall where a lot of traffic and it has to be resolved over and over again. that goes for logging and firewall. So in these 2 and similar places, it most probab...
by CristianDeluxe
Thu Dec 15, 2011 10:10 pm
Forum: General
Topic: Support for "OR" operator in mangle rules
Replies: 6
Views: 2581

Support for "OR" operator in mangle rules

Current situation: If i want to mangle all traffic from an address list (from "x" address list and to "x" address list) i need to make 2 mangle rules: /ip firewall mangle add action=mark-packet chain=postrouting disabled=no new-packet-mark=MYMARK passthrough=yes src-address-list=...
by CristianDeluxe
Fri Dec 02, 2011 12:12 pm
Forum: General
Topic: Using the new Mikrotik radius dictionary with Ubuntu
Replies: 5
Views: 6429

Re: Using the new Mikrotik radius dictionary with Ubuntu

I also suggest that when the Mikrotik team updates the dictionary again it would be nice if you can send the updated file to: dictionary@freeradius.org as specified here: http://freeradius.org/features/vendors.html So it will be included in repositories of linux distributions, making easier have an ...
by CristianDeluxe
Fri Dec 02, 2011 12:01 pm
Forum: General
Topic: Using the new Mikrotik radius dictionary with Ubuntu
Replies: 5
Views: 6429

Re: Using the new Mikrotik radius dictionary with Ubuntu

NP : ) i like to help
by CristianDeluxe
Fri Dec 02, 2011 10:54 am
Forum: General
Topic: Using the new Mikrotik radius dictionary with Ubuntu
Replies: 5
Views: 6429

Re: Using the new Mikrotik radius dictionary with Ubuntu

Yep and also in Wireless encryption Original file: # MikroTik Values VALUE Wireless-Enc-Algo No-encryption 0 VALUE Wireless-Enc-Algo 40-bit-WEP 1 VALUE Wireless-Enc-Algo 104-bit-WEP 2 VALUE Wireless-Enc-Algo AES-CCM 3 VALUE Wireless-Enc-Algo TKIP 4 Modified for debian (note "Mikrotik-" bef...
by CristianDeluxe
Fri Dec 02, 2011 10:48 am
Forum: General
Topic: Using the new Mikrotik radius dictionary with Ubuntu
Replies: 5
Views: 6429

Using the new Mikrotik radius dictionary with Ubuntu

Hi, i'm using Freeradius in a Ubuntu Server, the default package for Freeradius have an old Mikrotik diccionary that don't have even (relatively old) wireless comments. They try to warn you that, if you modify the dictionary with the one offered by Mikrotik will not work. # Do NOT follow their instr...
by CristianDeluxe
Tue Nov 15, 2011 8:19 pm
Forum: General
Topic: How to count dhcp leases for a specific network
Replies: 2
Views: 6063

Re: How to count dhcp leases for a specific network

Really thanks it works : ) I have got a default pool with private addresses and I assign public pool addresses by static router's mac entries so this little change worked for me: /ip dhcp-server lease print count-only where active-address~"1.1.1." I can use this perfectly for get the value...
by CristianDeluxe
Fri Nov 11, 2011 8:56 pm
Forum: General
Topic: How to count dhcp leases for a specific network
Replies: 2
Views: 6063

How to count dhcp leases for a specific network

Hi, I'm using a router OS as my main DHCP Server, i have various pools, some of them privates IP and others public IP ranges. I would like to set up some cacti graphs for know (and demonstrate to RIPE) the use of our public IP pools. I've tried in SNMP but i've not got the answer I expected. snmp.PN...
by CristianDeluxe
Mon Nov 07, 2011 7:56 pm
Forum: General
Topic: RouterOS v5.8 released
Replies: 182
Views: 104139

Re: RouterOS v5.8 released

Hello,

I am terribly sorry, but seems after upgrade to v5.8 on a RB750 the 6to4 interface does not work any longer
I have 2 mikrotiks with hurricane 6to4 tunnel and v5.8 and are working correctly.
by CristianDeluxe
Mon Nov 07, 2011 3:35 pm
Forum: Scripting
Topic: Update to "Hurricane Electric IPv6toIPv4 Endpoint updater"
Replies: 6
Views: 4855

Re: Update to "Hurricane Electric IPv6toIPv4 Endpoint update

Thanks janisk, I've sent the email requesting the wiki user : )

Rivera your method looks really smart, I'm implementing my script with netwatch and it works better than scheduler, really thanks :) i will post your method in the wiki as soon as I have access to it
by CristianDeluxe
Mon Nov 07, 2011 6:06 am
Forum: Scripting
Topic: Update to "Hurricane Electric IPv6toIPv4 Endpoint updater"
Replies: 6
Views: 4855

Update to "Hurricane Electric IPv6toIPv4 Endpoint updater"

Hi i would like to add an update of this script: http://wiki.mikrotik.com/wiki/Hurricane_Electric_IPv6_Tunnel_-_IPv4_Endpoint_updater I made some changes based on original author script: * Check if WAN interface IP and "6to4 Tunnel" Local Address are the same, if they are equal script don'...
by CristianDeluxe
Sun Nov 06, 2011 10:51 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Re: Simple Nating - iPhone don't work

Really thanks jandafields!! now all websites are working correctly. I owe you a beer : )
by CristianDeluxe
Sun Nov 06, 2011 10:42 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Re: Simple Nating - iPhone don't work

No, iphone settings are: "Use HTTP Proxy=NO"

Webproxy on RB433 disabled.
by CristianDeluxe
Sun Nov 06, 2011 10:10 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Re: Simple Nating - iPhone don't work

Email also works.

Ah, my RouterOS version is 5.8 and iPhone version 4.3.2
by CristianDeluxe
Sun Nov 06, 2011 9:48 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Re: Simple Nating - iPhone don't work

Sorry i manually deleted from .rsc file some pools that i was using before, here the new "cleaned" config: /ip pool add name=home ranges=192.168.2.100-192.168.2.150 /ip dhcp-server add add-arp=yes address-pool=home address-pool6=test always-broadcast=yes \ authoritative=yes disabled=no int...
by CristianDeluxe
Sun Nov 06, 2011 7:47 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Re: Simple Nating - iPhone don't work

Hi, thanks for your reply. I've tested it, before do the "PPPoE passthrough" i've my Mikrotik configured with a bridge between wlan1 and ether1 and my ISP router did the nat, with same config (WPA Security, DHCP Server, DNS, etc...) iphone works correctly but if i do NAT in Mikrotik it doe...
by CristianDeluxe
Sun Nov 06, 2011 4:53 pm
Forum: General
Topic: Simple Nating - iPhone don't work [solved]
Replies: 10
Views: 3443

Simple Nating - iPhone don't work [solved]

Hi, as always sorry for my bad English. I've been using Mikrotik at my work some years and it's amazing! Now finally I've my own RB433 at home (for play better : D ). I've a DSL connection and my ISP router is a Zyxel P660HW. I've configured my router WAN in "bridge mode" and "PPPoE p...
by CristianDeluxe
Tue Apr 12, 2011 6:47 pm
Forum: General
Topic: RouterOS 5.1 is out!
Replies: 93
Views: 23440

Re: RouterOS 5.1 is out!

I've updated from 5.0 to 5.1 this morning and now i have cpu 100% all time with low traffic, same config and clients working with 5.0 with CPU at 1-10%, i'am alone with this issue?
by CristianDeluxe
Mon Apr 04, 2011 12:53 pm
Forum: General
Topic: 4.16 to 5.0 upgrade issues
Replies: 9
Views: 3144

Re: 4.16 to 5.0 upgrade issues

Same problem here, from 4.16 to 5.0 with a RB433AH all wireless settings (also WDS, virtual interfaces) are lost.

I made a backup before upgrade and i can recover all settings pasting it again in the console.
by CristianDeluxe
Fri Nov 26, 2010 12:41 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

Re: "ip firewall mangle" dont works as expected in script

Thanks again! i was asking in my last post the command for check if the mangle rule is enabled or not, here is the command thats now works for me: /ip firewall mangle get value-name=disabled [/ip firewall mangle find comment="filteronoff"]; And after check if the rule is enabled or not wit...
by CristianDeluxe
Wed Nov 24, 2010 9:02 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

Re: "ip firewall mangle" dont works as expected in script

Before enable or disable my (accept all) rule i first check if mangle rule is enabled. If mangle rule is disabled i make another checks and if the traffic in a interface is high i disable this rule and the router start to mark and filter packet. So i make this check first with: :local savelog true; ...
by CristianDeluxe
Wed Nov 24, 2010 7:53 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

Re: "ip firewall mangle" dont works as expected in script

i tried this: Mangle rule: add action=accept chain=prerouting comment=filteronoff disabled=yes Test Script: :local TestVar [/ip firewall mangle find comment="filteronoff" disabled]; :if ($TestVar = true ) do={ :log warning "true"; } else={ :log warning "false"; } And al...
by CristianDeluxe
Tue Nov 23, 2010 6:45 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

Re: "ip firewall mangle" dont works as expected in script

Thanks!, ill try to do it this way
by CristianDeluxe
Thu Nov 18, 2010 2:17 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

Re: "ip firewall mangle" dont works as expected in script

More info, if i put in my script:

"/ip firewall mangle enable numbers=0;"

Occurs an error in the log that says:

"ppp -> script error: no such item (4)"
by CristianDeluxe
Thu Nov 18, 2010 2:02 pm
Forum: Scripting
Topic: "ip firewall mangle" dont works as expected in script
Replies: 8
Views: 5133

"ip firewall mangle" dont works as expected in script

Hi, i have a script that enable or disable the packet mangle filtering if traffic is low. One of my scripts enable a mangle rule that accepts all packets, if i use "/ip firewall mangle enable numbers=1;" in console, it works correctly but if i use this same command in a script, it enable t...
by CristianDeluxe
Fri Oct 22, 2010 10:50 am
Forum: General
Topic: How do? Two separate connections on a single router
Replies: 4
Views: 1458

Re: How do? Two separate connections on a single router

I have not had time to test it, but I think it may be the solution.

As soon as I try, I will comment here the results

Thanks
by CristianDeluxe
Wed Oct 20, 2010 10:51 am
Forum: General
Topic: How do? Two separate connections on a single router
Replies: 4
Views: 1458

Re: How do? Two separate connections on a single router

I use two different VLANs for public area and local area.

You mean to queues on the same switch?

My switch is a cisco catalyst and not have those features, but thanks for your help!
by CristianDeluxe
Wed Oct 20, 2010 10:32 am
Forum: General
Topic: How do? Two separate connections on a single router
Replies: 4
Views: 1458

How do? Two separate connections on a single router

Hi, I have a RouterOS level 6 I'm using to prioritize traffic on a cable network. Until now I only had to prioritize one traffic flow to a single ISP (100Mbps connection). Now we have upgraded our network with a RB433H and we have a fiber connection to another ISP for WiFi connections (50Mbps connec...
by CristianDeluxe
Fri Jul 30, 2010 11:24 am
Forum: Scripting
Topic: Check if mangle rule is enabled?
Replies: 2
Views: 2275

Re: Check if mangle rule is enabled?

Ok i found the answer:
:local chkenabled

:set chkenabled [/ ip firewall mangle get number=1 disabled]
if($chkenabled) do={
# Rule is disabled
} else={
# Rule is enabled
}
by CristianDeluxe
Fri Jul 30, 2010 10:56 am
Forum: Scripting
Topic: Check if mangle rule is enabled?
Replies: 2
Views: 2275

Check if mangle rule is enabled?

Hi, how can i check if a mangle rule is enabled or disabled using scripting?
by CristianDeluxe
Mon Feb 15, 2010 2:00 pm
Forum: General
Topic: Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge
Replies: 5
Views: 6878

Re: Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge

I also could insert the proxy between my switch and the ros, and could limit the bandwidth used by the proxy. Is that correct?
by CristianDeluxe
Fri Feb 12, 2010 6:52 pm
Forum: General
Topic: Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge
Replies: 5
Views: 6878

Re: Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge

if I set it up as you tell me I could not prioritize traffic from the proxy, or control the download speed, no?
by CristianDeluxe
Fri Feb 12, 2010 12:40 pm
Forum: General
Topic: Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge
Replies: 5
Views: 6878

Squid Transparent Proxy + Mikrotik 4.5 Webproxy + Bridge

Hello, I have my RouterOS (version 4.5) configured in bridge mode, with traffic prioritization (mangle rules, queues) But now I'd like to insert a transparent squid proxy to cache the client traffic. This image explains how I configured my network proxy.PNG I already have a server running squid in t...
by CristianDeluxe
Mon Feb 08, 2010 11:54 am
Forum: General
Topic: ip routes are not working, ros freezes and not response
Replies: 7
Views: 1720

Re: ip routes are not working, ros freezes and not response

Tech support guys told me:

"[...]
Cause of the crash is frequent interface status changes. This bug is fixed in v4.6, wait for next RouterOS release.
[...]"

I'm waiting impatiently for this update, but it's good to know they have controlled this bug.
by CristianDeluxe
Fri Feb 05, 2010 12:20 pm
Forum: General
Topic: ip routes are not working, ros freezes and not response
Replies: 7
Views: 1720

Re: ip routes are not working, ros freezes and not response

ok, I got it, I will send to technical support.

Thanks for the help
by CristianDeluxe
Fri Feb 05, 2010 12:11 pm
Forum: General
Topic: ip routes are not working, ros freezes and not response
Replies: 7
Views: 1720

Re: ip routes are not working, ros freezes and not response

I can not create the supout.rif file, the router can not export the (ip route) settings correctly and stays "frozen".
by CristianDeluxe
Fri Feb 05, 2010 11:45 am
Forum: General
Topic: ip routes are not working, ros freezes and not response
Replies: 7
Views: 1720

ip routes are not working, ros freezes and not response

Hi, sorry for my bad English. I have 2 licenses Microtik (Level 6) installed on 2 pcs, and on both machines the same thing happens. Ips routes stop working and the router loses connectivity over IP, I can only access using the MAC. I have recorded a screencast that you may see exactly what is happen...
by CristianDeluxe
Thu Oct 29, 2009 1:01 pm
Forum: General
Topic: Problem reseting queues counters when i monit it with SNMP
Replies: 5
Views: 1684

Re: Problem reseting queues counters when i monit it with SNMP

I tried to make a graph of my router with another utility (rrdtool) without using cacti and the result is the same, when resetting the statistics, these traffic peaks appears, even occurs in ethernet and bridge interfaces. ejemplo_problemas_snmp.PNG Is there any solution available? (apart from not t...
by CristianDeluxe
Mon Oct 19, 2009 10:42 am
Forum: General
Topic: How to: Queue tree and limit Mb per subnet?
Replies: 2
Views: 2992

Re: How to: Queue tree and limit Mb per subnet?

Any idea how to implement this? a link, or whatever please!
by CristianDeluxe
Fri Oct 16, 2009 6:56 pm
Forum: General
Topic: How to: Queue tree and limit Mb per subnet?
Replies: 2
Views: 2992

How to: Queue tree and limit Mb per subnet?

Hello and sorry for my bad English I have a 100MB ATM circuit and I need to limit 30Mb, 30Mb and 25M per subnet, but is more complicated, I need all the traffic to be marked through the mangle rules and make a priority (QOS) for each subnet in the tree queue For example: Subnet 1) Ips: 1.2.0.0/28 Pa...
by CristianDeluxe
Mon Oct 05, 2009 9:26 pm
Forum: General
Topic: Better queues config
Replies: 4
Views: 1571

Re: Better queues config

Did you test your ATM speed ? if your are sure its 28Mbits Dedicated try to add a new queue type let say bfifo and set the bfifo-limit=9999999999. I noticed you have high P2P traffic is it normal to you to have p2P taraffic 4-5 mbit avg ? I make a queue type with bfifo-limit=9999999999 and assign i...
by CristianDeluxe
Mon Oct 05, 2009 7:57 pm
Forum: General
Topic: Better queues config
Replies: 4
Views: 1571

Better queues config

Hi, sorry for my bad English. I've got a Router OS v3.30 (level 6) working with a 28Mb ATM, i'm using ROS as a traffic shaper, I've setup all my mangle rules and every connection and packets is marked very well, but i have problems prioritizing this traffic. After read lot of documentation and posts...
by CristianDeluxe
Wed Sep 30, 2009 2:21 pm
Forum: General
Topic: Problem reseting queues counters when i monit it with SNMP
Replies: 5
Views: 1684

Re: Problem reseting queues counters when i monit it with SNMP

I'm using this template: http://forums.cacti.net/viewtopic.php?t ... sc&start=0

and a plugin "Aggregate" for draw all queues graphs together
by CristianDeluxe
Wed Sep 30, 2009 11:44 am
Forum: General
Topic: Problem reseting queues counters when i monit it with SNMP
Replies: 5
Views: 1684

Problem reseting queues counters when i monit it with SNMP

Hi, sorry for my bad English I'm currently graphing my queues data with cacti, and all works OK like you can see in this screenshot: queues.PNG But... when i reset all the queue counters in my winbox, graphs shows me more than 300 Mb of traffic!! (I have 2 Ethernet 10/100Mb PCI cards, so its suppose...
by CristianDeluxe
Fri Sep 18, 2009 4:30 pm
Forum: General
Topic: Show hidden connections?
Replies: 5
Views: 1216

Re: Show hidden connections?

Thanks for alternatives!!
by CristianDeluxe
Fri Sep 18, 2009 10:42 am
Forum: General
Topic: Show hidden connections?
Replies: 5
Views: 1216

Re: Show hidden connections?

Any response?
by CristianDeluxe
Tue Sep 15, 2009 7:17 pm
Forum: General
Topic: Show hidden connections?
Replies: 5
Views: 1216

Show hidden connections?

Hi, i use Winbox and " IP->Firewall->Connections " tool it's very useful for me. At the bottom of this window I can see: " 2057 items out of 15000 | Max Entries: 524288 " How can i see the others connections? or show only marked connections that i want? (ie: all p2p connections) ...
by CristianDeluxe
Wed Sep 09, 2009 11:38 am
Forum: General
Topic: Iprovements In WinBox I Would Like To See...
Replies: 17
Views: 6557

Re: Iprovements In WinBox I Would Like To See...

6. Auto-size all columns within each window I agree with this point. Others things that i like to see in winbox: 1) Ask for confirm the action when you press (accidentally) remove buttons :roll: 2) Ability to categorize mangle rules, lists works very well when you have fews rules but when rules sta...
by CristianDeluxe
Mon Jul 20, 2009 6:16 pm
Forum: RouterBOARD hardware
Topic: Hotspot DNS cache server
Replies: 3
Views: 3042

Re: Hotspot DNS cache server

When i set this rule to my Router: /ip firewall nat add action=redirect chain=dstnat dst-port=53 protocol=tcp to-ports=53 DNS cache are filled with DNS entries but in PC's i can't resolve DNS so i can't open any website. I try other rule from http://wiki.mikrotik.com/wiki/NetworkPro_on_firewalling :...
by CristianDeluxe
Mon Jun 22, 2009 8:48 pm
Forum: Beginner Basics
Topic: -
Replies: 0
Views: 681

-

-
Please erase this post