Community discussions

MikroTik App
 
anon1224
just joined
Topic Author
Posts: 9
Joined: Fri Dec 24, 2021 5:26 pm

"Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Sat Oct 15, 2022 4:00 pm

"Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)
detail see #4
Last edited by anon1224 on Thu Feb 16, 2023 7:36 am, edited 2 times in total.
 
anon1224
just joined
Topic Author
Posts: 9
Joined: Fri Dec 24, 2021 5:26 pm

Re: "Routing Table" Parameter for IPv6 Not in Effect (v7.5)

Wed Feb 15, 2023 9:12 am

still not fixed (v7.7)
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Wed Feb 15, 2023 7:53 pm

If something doesn't work for you, it's usually good idea to post more details. Someone might want to try to reproduce it. Or they might point some possible mistake of yours. In any case, if you're looking for any useful feedback, it can't hurt.
 
anon1224
just joined
Topic Author
Posts: 9
Joined: Fri Dec 24, 2021 5:26 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Thu Feb 16, 2023 7:33 am

I have dual ISP, both NAT6 configed, I want specific website(such as www.cloudflare.com) use ISP_1 and others use ISP_2

here is my config:

/routing/table add name=test fib

/ipv6/firewall/address-list add list=ISP_1_Out address=www.cloudflare.com

/ipv6/firewall/mangle add chain=prerouting dst-address-list=ISP_1_Out action=mark-routing new-routing-mark=test passthrough=yes

/ipv6/route add dst-address=::/0 gateway=PPPoE_ISP_1 distance=1 routing-table=test

/ipv6/route add dst-address=::/0 gateway=PPPoE_ISP_2 distance=2 routing-table=main

but all traffic go out by PPPoE_ISP_2

same config works fine for ipv4
 
Florian
Member Candidate
Member Candidate
Posts: 117
Joined: Sun Mar 13, 2016 9:45 am
Location: France

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Wed Mar 22, 2023 1:44 pm

Hi,

7.8, not corrected. Same use case as the OP. Work great in ipv4, but ipv6 doesn't use a custom route table, just the main one.
 
onion83
just joined
Posts: 4
Joined: Thu Apr 19, 2018 5:54 am

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Tue Apr 18, 2023 6:27 pm

7.9 rc3 still not work. :(


Hi,

7.8, not corrected. Same use case as the OP. Work great in ipv4, but ipv6 doesn't use a custom route table, just the main one.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Tue Apr 18, 2023 6:36 pm

Works great on ipv4............... just sayin
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Tue Apr 18, 2023 7:34 pm

A very similar setup works for me on IPv6... Are the rules hit, so do the counters increase?

I guess there are more rules. Any chance your give your complete firewall ruleset? Chance are that they interact in a way you do not expect.
 
anon1224
just joined
Topic Author
Posts: 9
Joined: Fri Dec 24, 2021 5:26 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Wed Apr 19, 2023 9:06 am

A very similar setup works for me on IPv6... Are the rules hit, so do the counters increase?

I guess there are more rules. Any chance your give your complete firewall ruleset? Chance are that they interact in a way you do not expect.
yes, i can see counters increase
my filter rules is very simple, accept all
and no other rule in mangle table
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)  [SOLVED]

Wed Apr 19, 2023 10:56 am

Ok, let me test to verify...
root@io ~ # curl -6 https://eworm.de/ip/
2003:cf:2f25:4200:3b07:7ea4:e853:5924
That is an address from from provider's prefix. Now we want to route via another gateway:
[admin@jupiter] > /ipv6/firewall/address-list/add address=eworm.de list=via-vpn
[admin@jupiter] > /ipv6/firewall/address-list/print where list=via-vpn
Flags: D - DYNAMIC
Columns: LIST, ADDRESS
 #   LIST     ADDRESS                  
16   via-vpn  2606:4700:4700::1001/128 
17   via-vpn  2001:4860:4860::8844/128 
22   via-vpn  eworm.de                 
;;; eworm.de
23 D via-vpn  2a01:4f8:222:1e83::80/128
... and test again:
root@io ~ # curl -6 https://eworm.de/ip/   
2a03:1b20:6:f011::a02e
So it does work and something is missing or wrong with your configuration. I have this:
/routing/rule/add action=lookup-only-in-table routing-mark=via-vpn table=via-vpn
Perhaps you need to adopt that for your case?
 
anon1224
just joined
Topic Author
Posts: 9
Joined: Fri Dec 24, 2021 5:26 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Wed Apr 19, 2023 12:27 pm


So it does work and something is missing or wrong with your configuration. I have this:
/routing/rule/add action=lookup-only-in-table routing-mark=via-vpn table=via-vpn
Perhaps you need to adopt that for your case?
This one make my config works!
Thank you so much for your help!
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Wed Apr 19, 2023 2:26 pm

Great, so have fun! 😊

Wondering why this is required for IPv6 though, but IPv4 works without.
 
Florian
Member Candidate
Member Candidate
Posts: 117
Joined: Sun Mar 13, 2016 9:45 am
Location: France

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Thu Apr 20, 2023 11:23 am

Great, so have fun! 😊

Wondering why this is required for IPv6 though, but IPv4 works without.
Thx you, I had the same problem.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Thu Apr 20, 2023 12:53 pm

It would be better when this was the same in IPv4 as it is now in IPv6. You can then put the rule at a desired place in a list of rules, so you can define the priority of routing marks.
 
User avatar
osc86
Member Candidate
Member Candidate
Posts: 197
Joined: Wed Aug 09, 2017 1:15 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Mon May 22, 2023 7:10 pm

I'm not sure if this thread should be marked as solved yet. The routing rule works, yes, but it's at best a workaround.
ipv6 policy routing should be configured exactly the way it is done with v4, without the need of adding any additional rules.
Since this is still not fixed in 7.10betaX, has anyone reported this problem using the official channels?
btw, thanks eworm for sharing how to get it working! In my case, I additionally needed to add all source networks to the custom routing table for it to work.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Tue May 23, 2023 12:49 am

Well, routing rules are always a bit troublesome. One would want either a "destination is connected route" matcher in routing rules (so one can lookup in main table) or even better some feature to "automatically copy connected routes to this table" in routing tables.
I understand that using the "VRF" feature provides this, but as a whole it is too inflexible for me to use. I do not want services to be available in only a single VRF.
When the behavior of routing mark is the same for IPv4 and IPv6 (which it should be), I prefer the behavior as it is now for IPv6. But of course that will have to be clearly announced when implemented.
(well, there already are several changes in this area so anyone using the policy routing feature and is tracking v7 releases already is well aware that they have to be careful when upgrading)
 
RomikB
just joined
Posts: 14
Joined: Tue May 08, 2018 5:16 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Thu Feb 01, 2024 9:44 am

7.13.3 Not fixed.
Still need different rules for ipv4 and ipv6
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: "Routing Table" Parameter for IPv6 Routes Not in Effect (v7.5)

Thu Feb 01, 2024 11:44 am

You need to explain what you mean or start a new topic. There was a problem but the methods explained above do work.

Who is online

Users browsing this forum: Bing [Bot], joshnielsen, phascogale and 60 guests