Community discussions

MikroTik App

Search found 32 matches

by divB
Wed Nov 10, 2021 8:49 am
Forum: General
Topic: Why does RouterOS send my ICMP Time Exceeded to the wrong interface and how can I avoid it?
Replies: 2
Views: 1431

Re: Why does RouterOS send my ICMP Time Exceeded to the wrong interface and how can I avoid it?

Thanks for responding. Ok, let me try: Interfaces: br-wan (=main uplink), gre-vultr (=second uplink, via GRE tunnel), br-lan (local RF1912 network). br-wan's address is 233.252.102.170 and has it's default gateway 233.252.102.169 (via NAT). /ip address add address=192.168.200.254/24 interface=br-lan...
by divB
Wed Nov 10, 2021 4:22 am
Forum: General
Topic: Why does RouterOS send my ICMP Time Exceeded to the wrong interface and how can I avoid it?
Replies: 2
Views: 1431

Why does RouterOS send my ICMP Time Exceeded to the wrong interface and how can I avoid it?

Hi, I have multiple uplinks on my router, say br-wan1 and br-wan2. br-wan1 is default gateway but I use source routing ("ip rule") to ensure a separate routing table is consulted for traffic with source for br-wan2. This works exactly as expected. However, RouterOS messes up my traceroute:...
by divB
Wed Oct 27, 2021 8:07 am
Forum: Forwarding Protocols
Topic: Debugging BGP session [SOLVED]
Replies: 1
Views: 4483

Re: Debugging BGP session [SOLVED]

I know this is not a solution but after days of debugging (and recording raw BGP packets and decoding OPEN message) I confirmed that the issue is the other endpoint. I was able to select a different endpoint and it hopped immediately to ESTABLISHED.
by divB
Mon Oct 25, 2021 7:54 am
Forum: Forwarding Protocols
Topic: What is the reason IPv4 prefixes over IPv6 BGP peer could not work?
Replies: 4
Views: 5260

What is the reason IPv4 prefixes over IPv6 BGP peer could not work?

Hi, Just to start, I have one BGP peer to which I can only talk via IPv6 but I need to announce both IPv6 and IPv4 prefixes over it. Sureley enough, only the IPv6 prefix is announced, although I ticked both "ip" and "ipv6" in the address families. The only thing I could find abou...
by divB
Mon Oct 25, 2021 7:41 am
Forum: Forwarding Protocols
Topic: How to do OSPF with pt(m)p over a /31 tunnel? [SOLVED]
Replies: 2
Views: 4223

Re: How to do OSPF with pt(m)p over a /31 tunnel? [SOLVED]

Thanks. I finally got it working with ptp. In the end, even with the /31. EDIT: Just for future reference: Check the other tunnel endpoint! Linux (and derived systems) have the inconvenient property of setting the tunnel ttl to "inherit". OSPF sets TTL=1 (since they should just go one hop)...
by divB
Sun Oct 24, 2021 7:54 am
Forum: Forwarding Protocols
Topic: Debugging BGP session [SOLVED]
Replies: 1
Views: 4483

Debugging BGP session [SOLVED]

Hello, I am setting up a BGP session via a GRE tunnel. In my opinion I have done everything correctly but the peer does not show up as "E - established". I think this should be the first step that should work, right? Then I started the packet sniffer on that GRE interface and I see that no...
by divB
Thu Oct 21, 2021 2:14 am
Forum: Forwarding Protocols
Topic: How can I simply announce a prefix on one interface?
Replies: 0
Views: 2615

How can I simply announce a prefix on one interface?

Hi, I currently have the following straight forward config in bird to announce a net 192.168.1.0/24 on a particular interface (via source address) from my AS65536 to the peering AS64496: router id 10.1.1.1; protocol device { scan time 5; } protocol kernel { scan time 60; import none; } protocol stat...
by divB
Tue Oct 19, 2021 10:39 am
Forum: General
Topic: GRE tunnel does not receive 224.0.0.5
Replies: 3
Views: 664

Re: GRE tunnel does not receive 224.0.0.5

Thanks, I have checked this already. GRE tunnel MTU is 1476 on both sides (Linux and Mikrotik). I have tried setting to a smaller value, like MTU=1200. No changes. Is there a configuration/mtu with which I can exclude all MTU related issues? Any more suggestions? EDIT: I also tried ping to the multi...
by divB
Tue Oct 19, 2021 10:09 am
Forum: Forwarding Protocols
Topic: Why is Mikrotik sending multicast with ptmp? Bug? [SOLVED]
Replies: 1
Views: 3956

Why is Mikrotik sending multicast with ptmp? Bug? [SOLVED]

I need to connect Mikrotik OSPF with bird over a non-multicast connection. I have tried nbma but the neighbors are just not recognized, despite identical configuration. When I try ptmp, Mikrotik is still sending multicast. Here is what arrives at the Linux box: 07:04:47.192109 IP (tos 0xc0, ttl 1, i...
by divB
Tue Oct 19, 2021 9:03 am
Forum: Forwarding Protocols
Topic: How to do OSPF with pt(m)p over a /31 tunnel? [SOLVED]
Replies: 2
Views: 4223

How to do OSPF with pt(m)p over a /31 tunnel? [SOLVED]

How can I properly add neighbors for ptp and ptmp? There is only an "NBMA Neighbors" tab and "Neighbors" is readonly. Also, what is the proper way to configure OSPF over a point-to-point link (IPIP or GRE) with a /31 network? Say the tunnel endpoint has 192.168.1.254/31 and the M...
by divB
Tue Oct 19, 2021 7:47 am
Forum: General
Topic: GRE tunnel does not receive 224.0.0.5
Replies: 3
Views: 664

GRE tunnel does not receive 224.0.0.5

Hi, So I know IPIP does not support multicast but GRE does. I created a GRE tunnel between a Linux machine and my Mikrotik router. From the linux end I send packets addressed to 244.0.0.5 (a multicast address). With tcpdump I can clearly see these packets being transmitted. However, on the Mikrotik ...
by divB
Sun Oct 17, 2021 9:56 am
Forum: General
Topic: How can I change the default route for a packet (or put routes into multiple tables)?
Replies: 8
Views: 2256

Re: How can I change the default route for a packet (or put routes into multiple tables)?

Ok for the rest of the world, after banging my head on this for the last two days I finally got it working. There can be multiple rules and multiple rules can jump to different tables. Key observation is (and unfortunately Mikrotiks documentation is totally lacking here) that if a rule is applied an...
by divB
Sat Oct 16, 2021 9:15 am
Forum: Forwarding Protocols
Topic: How can I leak my routes from main table into another (VRF?) table?
Replies: 1
Views: 3259

How can I leak my routes from main table into another (VRF?) table?

What am I doing wrong? I have a normal main routing table: https://snipboard.io/IpZxKO.jpg This table contains (a) dynamic routes from all kinds of connected interfaces, (b) static routes, (c) will soon include OSPF or BGP routes. It also includes a default gateway. What I want to achieve is to crea...
by divB
Fri Oct 15, 2021 8:59 pm
Forum: General
Topic: How can I change the default route for a packet (or put routes into multiple tables)?
Replies: 8
Views: 2256

Re: How can I change the default route for a packet (or put routes into multiple tables)?

On future keep one eye on VRF... I have briefly looked into this but I have trouble understanding. I also played around briefly but lost connection to the router. Gave up because I am not on-site (Safe Mode to the rescue!!) Would you be willing to give a brief example using the numbers above? Inter...
by divB
Fri Oct 15, 2021 12:56 pm
Forum: General
Topic: How can I change the default route for a packet (or put routes into multiple tables)?
Replies: 8
Views: 2256

Re: How can I change the default route for a packet (or put routes into multiple tables)?

Yes, the routes on main table are set manually or by BGP? Right now manually as well as automatically (the automatic ones are for the various interfaces. Turns out without these not even simple forwarding from one interface to the other works). There are a few tens of entries right now. However, I ...
by divB
Fri Oct 15, 2021 12:39 pm
Forum: General
Topic: How can I change the default route for a packet (or put routes into multiple tables)?
Replies: 8
Views: 2256

Re: How can I change the default route for a packet (or put routes into multiple tables)?

Hi, I think this was pretty much what I was saying (" either via "ip route rule "). My problem is a different one: I want to replace the default route only . Currently my main routing table is big...and it has a default route, say via 193.0.0.169. If the source address is from net 233...
by divB
Fri Oct 15, 2021 9:11 am
Forum: General
Topic: How can I change the default route for a packet (or put routes into multiple tables)?
Replies: 8
Views: 2256

How can I change the default route for a packet (or put routes into multiple tables)?

Hello, How can I make routes to appear in multiple tables? Or, alternatively, how can I make sure that a newly created table contains all the routes from the main table? What I actually want is to override the existing default route if and only if a package has source address from 233.252.0.0/24. If...
by divB
Wed Feb 24, 2021 3:27 am
Forum: RouterBOARD hardware
Topic: Redundancy for RB750G ... best approach?
Replies: 0
Views: 932

Redundancy for RB750G ... best approach?

I have a RouterBoard 750G which I housed in a 19" rack using the dual 19" rackmount case (the right slot is empty). I installed it 4 years ago and so far it works nicely. However, it is in a remote spot. There is someone who can do basic things but it is very hard for myself to get there. ...
by divB
Thu Feb 18, 2021 4:16 pm
Forum: General
Topic: Why does 6.38 to 6.48.1 upgrade destroy my router and how can I avoid it?
Replies: 4
Views: 935

Re: Why does 6.38 to 6.48.1 upgrade destroy my router and how can I avoid it?

The problem is that from version v6.41.0 onward there was the introduction of new bridge concept that removed the master/slave on ethernet ports. This was documented in the release notes https://mikrotik.com/download/changelogs for v6.41.0. At that point a script was made available to migrate old c...
by divB
Thu Feb 18, 2021 4:06 am
Forum: General
Topic: Why does 6.38 to 6.48.1 upgrade destroy my router and how can I avoid it?
Replies: 4
Views: 935

Why does 6.38 to 6.48.1 upgrade destroy my router and how can I avoid it?

Hi, It just took me about 4 hours to recover from my upgrade to 6.48 on my RouterBoard 450G. I have a configuration in which my WAN is connected via ether1, an adm net via ether2, the lan via ether3 and ether4 and ether5 is a VLAN tagged port for all of them. So I have VLANs, bridges and stuff. This...
by divB
Tue Feb 14, 2017 11:53 pm
Forum: Virtualization
Topic: Metarouter unreliable
Replies: 7
Views: 4470

Re: Metarouter unreliable

Thanks sricci. That's a sad reply.

I think at the very least, a force-reboot and force-stop of the meta routers should be implemented so that they can't hang. A metarouter should not be able to crash the whole host system :-(
by divB
Sun Jan 15, 2017 10:56 pm
Forum: Virtualization
Topic: Metarouter unreliable
Replies: 7
Views: 4470

Re: Metarouter unreliable

According to "/system resource print" it is version: 6.38 (stable).

It's really frustrating. Sometimes the meta router just crashes and the only way to get it back is to reboot the entire system.
by divB
Sun Jan 15, 2017 7:36 pm
Forum: Virtualization
Topic: Metarouter unreliable
Replies: 7
Views: 4470

Metarouter unreliable

Hi, I am using metarouter (with OpenWRT) on RB450G with 3.24 and metarouter (not OpenWRT!) seems to be pretty unreliable: Very often, when rebooting/shutting down, the router just hangs with Status "rebooting" or "shutting-down". There is no way no force a clean restart of a meta...
by divB
Sun Jan 15, 2017 2:55 am
Forum: General
Topic: DNS forwarding
Replies: 2
Views: 3735

Re: DNS forwarding

Thank you, this is a nice hack.
I'll implement it but this should really be a functionality of RouterOS :-/
by divB
Sun Jan 15, 2017 2:54 am
Forum: General
Topic: Feature request: per-domain forwarding in DNS
Replies: 21
Views: 25012

Re: Feature request: per-domain forwarding in DNS

I have two questions: 1.) Is there any chance to make it work for TCP? I guess the reason is that the actual content is in the packets after SYN, SYN-ACK, ACK so that the first three packages of the connection cannot be marked? 2.) I now have this setting: [admin@ugate] /ip firewall layer7-protocol>...
by divB
Sun Jan 15, 2017 2:12 am
Forum: General
Topic: Making forwarded ports available from internal
Replies: 2
Views: 1327

Making forwarded ports available from internal

I have set a public IP with masquerding and some IP forwardings: [admin@ugate] /ip firewall nat> print Flags: X - disabled, I - invalid, D - dynamic 0 ;;; default configuration chain=srcnat action=masquerade out-interface=br-wan log=no log-prefix="" 1 ;;; SSH chain=dstnat action=dst-nat to...
by divB
Thu Jan 12, 2017 11:57 pm
Forum: General
Topic: DNS forwarding
Replies: 2
Views: 3735

DNS forwarding

Hi, Is it possible to have RouterOS act as a DNS server, pointing to DNS servers for the queries but forward certain zones to a separate DNS server? With dnsmasq this can be done with: server=/localhost/127.in-addr.arpa/0.in-addr.arpa/255.in-addr.arpa/intra.mydomain.net/1.168.192.in-addr.arpa/1.7.10...
by divB
Tue Jan 10, 2017 2:34 pm
Forum: Virtualization
Topic: OpenWRT on MetaRouter and opkg
Replies: 1
Views: 3447

OpenWRT on MetaRouter and opkg

Hi, I got OpenWRT for my METAROUTER (RB450) according to the Wiki from: http://www.mikrotik.com/download/metarouter/openwrt-mr-mips-rootfs.tgz However, does anyone know where I can find an opkg repository? I would like to install packages such as openvpn, ... Currently it is set to http://openwrt.pa...
by divB
Thu Aug 27, 2015 6:03 pm
Forum: Virtualization
Topic: OpenVPN with OpenWRT
Replies: 1
Views: 4098

OpenVPN with OpenWRT

Hi, I just configured a meta router with the provided OpenWRT package. This is really great! However, there are not many packages and using opkg does not work because the referenced repository in opkg.conf results in a 404. How can I install OpenVPN within this OpenWRT instance as easily as possible...
by divB
Wed Aug 26, 2015 12:03 am
Forum: Beginner Basics
Topic: Confusion about interface, switch, bridge, VLAN
Replies: 3
Views: 2287

Re: Confusion about interface, switch, bridge, VLAN

This is a great explanation - thank you! Do I understand correctly that 1.) For a physical port 5 that has vlan1,vlan2,vlan3 tagged I would need to create three interfaces and bridge them together? 2.) For example, vlan1_eth2 in your example - is this really needed? Because eth2 is an untagged port ...
by divB
Mon Jul 06, 2015 8:31 pm
Forum: Beginner Basics
Topic: Confusion about interface, switch, bridge, VLAN
Replies: 3
Views: 2287

Confusion about interface, switch, bridge, VLAN

I am new to RouterOS and just trying to replace my router based on WRT54GL/OpenWRT with RouterBoard 750. I am confused with the architectural way Mikrotik handles VLANs (and interfaces, switches etc). What I want: - Interface 1: WAN (static IP), VLAN3, untagged - Interface 2: VLAN1, untagged - Inter...