Community discussions

MikroTik App
anon1224
刚刚加入了
Topic Author
Posts: 9
加入: 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 byanon1224on Thu Feb 16, 2023 7:36 am, edited 2 times in total.
Top
anon1224
刚刚加入了
Topic Author
Posts: 9
加入: 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)
Top
Sob
Forum Guru
Forum Guru
Posts: 9185
加入: 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.
Top
anon1224
刚刚加入了
Topic Author
Posts: 9
加入: 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 aswww.cloudflare.com) use ISP_1 and others use ISP_2

here is my config:

Code:Select all
/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
Top
Florian
Member Candidate
Member Candidate
Posts: 117
加入: 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.
Top
onion83
刚刚加入了
Posts: 2
加入: 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 rc3still 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.
Top
用户头像
anav
Forum Guru
Forum Guru
Posts: 16846
加入: 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
Top
用户头像
eworm
Forum Guru
Forum Guru
Posts: 1028
加入: 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?

我想有更多的规则。你给任何机会your complete firewall ruleset? Chance are that they interact in a way you do not expect.
Top
anon1224
刚刚加入了
Topic Author
Posts: 9
加入: 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?

我想有更多的规则。你给任何机会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
Top
用户头像
eworm
Forum Guru
Forum Guru
Posts: 1028
加入: 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...
Code:Select all
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:
Code:Select all
[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:
Code:Select all
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:
Code:Select all
/routing/rule/add action=lookup-only-in-table routing-mark=via-vpn table=via-vpn
Perhaps you need to adopt that for your case?
Top
anon1224
刚刚加入了
Topic Author
Posts: 9
加入: 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:
Code:Select all
/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!
Top
用户头像
eworm
Forum Guru
Forum Guru
Posts: 1028
加入: 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.
Top
Florian
Member Candidate
Member Candidate
Posts: 117
加入: 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.
Top
pe1chl
Forum Guru
Forum Guru
Posts: 9596
加入: 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.
Top
用户头像
osc86
Member Candidate
Member Candidate
Posts: 194
加入: 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.
Top
pe1chl
Forum Guru
Forum Guru
Posts: 9596
加入: 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.
我明白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)
Top

Who is online

Users browsing this forum:Ahrefs [Bot],medvmand 29 guests