Jump to content
  • 0
Sign in to follow this  
Михаил Лукьянов

Policy based routing для IPv6

Question

Не работает PBR для IPv6, проверялось правда только на 6to4. Что хочется:

ip -6 route add local default dev lo table 99
ip -6 rule add from all fwmark 0x9 lookup 99

Что получаю:

~ # ip -6 route add local default dev lo table 99
ip: RTNETLINK answers: File exists
~ # ip -6 rule add from all fwmark 0x9 lookup 99
ip: RTNETLINK answers: Address family not supported by protocol

Вывод ip -6 a, ip -6 ru, ip -6 ro sh ta all:

Скрытый текст

~ # ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
8: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UNKNOWN qlen 2000
    inet6 fe80::52ff:20ff:fe11:6dfb/64 scope link 
       valid_lft forever preferred_lft forever
9: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UNKNOWN qlen 2000
    inet6 fe80::52ff:20ff:fe11:6dfc/64 scope link 
       valid_lft forever preferred_lft forever
11: rai0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::52ff:20ff:fe11:6dfd/64 scope link 
       valid_lft forever preferred_lft forever
20: eth2.1@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP 
    inet6 fe80::52ff:20ff:fe11:6dfb/64 scope link 
       valid_lft forever preferred_lft forever
21: eth2.3@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP 
    inet6 fe80::52ff:20ff:fe11:6dfb/64 scope link 
       valid_lft forever preferred_lft forever
22: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP 
    inet6 2002:6dab:11aa:0:52ff:20ff:fe11:6dfb/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::52ff:20ff:fe11:6dfb/64 scope link 
       valid_lft forever preferred_lft forever
23: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP 
    inet6 fe80::52ff:20ff:fe11:6dfb/64 scope link 
       valid_lft forever preferred_lft forever
24: tun6to4_1@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 state UNKNOWN qlen 1
    inet6 2002:6dab:11aa::6dab:11aa/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::a01:1e01/64 scope link 
       valid_lft forever preferred_lft forever
    inet6 fe80::c0a8:101/64 scope link 
       valid_lft forever preferred_lft forever
    inet6 fe80::4e2f:7db4/64 scope link 
       valid_lft forever preferred_lft forever
~ # ip -6 ru
~ # ip -6 ro sh ta al
Error: argument "al" is wrong: table id value is invalid

~ # ip -6 ro sh ta all
local ::1 dev lo  proto none  metric 0  pref medium
local 2002:6dab:11aa::6dab:11aa dev lo  proto none  metric 0  pref medium
2002:6dab:11aa::6dab:11aa dev tun6to4_1  proto kernel  metric 256  pref medium
local 2002:6dab:11aa:0:52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
2002:6dab:11aa:0:52ff:20ff:fe11:6dfb dev br0  proto kernel  metric 256  pref medium
2002:6dab:11aa::/64 dev br0  metric 1024  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80:: dev lo  proto none  metric 0  pref medium
local fe80::a01:1e01 dev lo  proto none  metric 0  pref medium
local fe80::4e2f:7db4 dev lo  proto none  metric 0  pref medium
local fe80::c0a8:101 dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfb dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfc dev lo  proto none  metric 0  pref medium
local fe80::52ff:20ff:fe11:6dfd dev lo  proto none  metric 0  pref medium
fe80::/64 dev eth2  proto kernel  metric 256  pref medium
fe80::/64 dev eth2.1  proto kernel  metric 256  pref medium
fe80::/64 dev eth2.3  proto kernel  metric 256  pref medium
fe80::/64 dev eth3  proto kernel  metric 256  pref medium
fe80::/64 dev br0  proto kernel  metric 256  pref medium
fe80::/64 dev br1  proto kernel  metric 256  pref medium
fe80::/64 dev tun6to4_1  proto kernel  metric 256  pref medium
fe80::/64 dev rai0  proto kernel  metric 256  pref medium
ff00::/8 dev eth2  metric 256  pref medium
ff00::/8 dev eth2.1  metric 256  pref medium
ff00::/8 dev eth2.3  metric 256  pref medium
ff00::/8 dev eth3  metric 256  pref medium
ff00::/8 dev br0  metric 256  pref medium
ff00::/8 dev br1  metric 256  pref medium
ff00::/8 dev tun6to4_1  metric 256  pref medium
ff00::/8 dev rai0  metric 256  pref medium
default dev tun6to4_1  metric 1024  pref medium
unreachable default dev lo  proto kernel  metric 4294967295  error -128 pref medium

Подробности тут: https://forum.keenetic.net/topic/3078-обход-блокировок-на-роутере/?do=findComment&comment=75555

 

Edited by Михаил Лукьянов
очепятка

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Да, пока не реализовано.

Можно в разделе предложений создать тему с голосованием.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...