Eigenes Testsetup:
root@33332-Test-VM-S07-11c9:~# batctl gwl
[B.A.T.M.A.N. adv openwrt-2018.1-13, MainIF/MAC: primary0/c2:df:96:d6:f1:4b (bat0/02:00:27:3e:11:c9 BATMAN_IV)]
Router ( TQ) Next Hop [outgoingIf] Bandwidth
02:ca:ff:ee:01:04 (225) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
* 02:ca:ff:ee:01:10 (225) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
02:ca:ff:ee:01:02 (255) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
root@33332-Test-VM-S07-11c9:~#
root@debian-test-vm:~# ip -4 route show
default via 10.234.128.10 dev eth1
10.234.128.0/20 dev eth1 proto kernel scope link src 10.234.142.248
192.168.5.0/24 via 192.168.175.1 dev eth0
192.168.175.0/24 dev eth0 proto kernel scope link src 192.168.175.233
root@debian-test-vm:~# ip -6 route show
::1 dev lo proto kernel metric 256 pref medium
2001:bf7:1310:128::/64 dev eth1 proto kernel metric 256 expires 86389sec pref medium
fd10:ca1:1::/64 dev eth1 proto kernel metric 256 expires 86270sec pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
default via fe80::f0be:efff:fe00:102 dev eth1 proto ra metric 1024 expires 49sec hoplimit 64 pref medium
root@debian-test-vm:~# traceroute -4 one.one.one.one
traceroute to one.one.one.one (1.0.0.1), 30 hops max, 60 byte packets
1 10.234.128.10 (10.234.128.10) 30.824 ms 37.459 ms 37.449 ms
2 brick.4830.org (193.26.120.225) 38.205 ms 38.188 ms 38.160 ms
3 meerfarbig.w19.community-ix.de (185.1.74.60) 38.564 ms 38.518 ms 38.504 ms
4 ae0.300.mx240.fra1.meerfarbig.net (80.77.16.114) 38.958 ms 38.935 ms 38.904 ms
5 de-cix-frankfurt.as13335.net (80.81.194.180) 48.190 ms 48.166 ms 48.130 ms
6 172.70.240.3 (172.70.240.3) 48.070 ms 172.70.244.3 (172.70.244.3) 42.290 ms *
7 one.one.one.one (1.0.0.1) 47.739 ms 44.429 ms 44.375 ms
root@debian-test-vm:~# traceroute -6 one.one.one.one
traceroute to one.one.one.one (2606:4700:4700::1001), 30 hops max, 80 byte packets
1 2001:bf7:1310:128:0:27ff:fe3e:11ca (2001:bf7:1310:128:0:27ff:fe3e:11ca) 1006.930 ms !H 1006.909 ms !H 1006.893 ms !H
Der L2TP-Tunnel geht nach l2tp-ham01, Default-GW ist aber l2tp-fra01; was ist das eigentlich für ein Mist, warum wählt Batman nicht den direktesten Weg‽ Meh.
Hmm, wo kommt denn default via fe80::f0be:efff:fe00:102
her?
Ach guck:
root@l2tp-ham01 ~ # ip addr show | grep -B6 fe80::f0be:efff:fe00:102
3: bat01: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-unifi state UNKNOWN group default qlen 1000
link/ether f2:be:ef:00:01:02 brd ff:ff:ff:ff:ff:ff
inet 10.234.128.2/20 brd 10.234.143.255 scope global bat01
valid_lft forever preferred_lft forever
inet6 2001:bf7:1310:128::2/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f0be:efff:fe00:102/64 scope link
Das riecht doch nach … ebtables aka gluon-radv-filterd
. Aber auch ohne gluon-radv-filterd
tut’s nicht wirklich. Reboot ohne gluon-radv-filterd
:
root@33332-Test-VM-S07-11c9:~# batctl gwl
[B.A.T.M.A.N. adv openwrt-2018.1-13, MainIF/MAC: primary0/c2:df:96:d6:f1:4b (bat0/02:00:27:3e:11:c9 BATMAN_IV)]
Router ( TQ) Next Hop [outgoingIf] Bandwidth
02:ca:ff:ee:01:04 (225) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
02:ca:ff:ee:01:10 (225) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
* 02:ca:ff:ee:01:02 (255) 02:ca:ff:ee:01:02 [ mesh-vpn]: 1024.0/1024.0 MBit
root@debian-test-vm:~# ip -6 route show
::1 dev lo proto kernel metric 256 pref medium
2001:bf7:1310:128::/64 dev eth1 proto kernel metric 256 expires 86399sec pref medium
fd10:ca1:1::/64 dev eth1 proto kernel metric 256 expires 86295sec pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
default via fe80::f0be:efff:fe00:104 dev eth1 proto ra metric 1024 expires 54sec hoplimit 64 pref medium
default via fe80::f0be:efff:fe00:110 dev eth1 proto ra metric 1024 expires 59sec hoplimit 64 pref medium
default via fe80::f0be:efff:fe00:102 dev eth1 proto ra metric 1024 expires 51sec hoplimit 64 pref medium
root@debian-test-vm:~# ping6 -c 3 fe80::f0be:efff:fe00:104%eth1
PING fe80::f0be:efff:fe00:104%eth1(fe80::f0be:efff:fe00:104%eth1) 56 data bytes
64 bytes from fe80::f0be:efff:fe00:104%eth1: icmp_seq=1 ttl=64 time=29.0 ms
64 bytes from fe80::f0be:efff:fe00:104%eth1: icmp_seq=2 ttl=64 time=60.7 ms
64 bytes from fe80::f0be:efff:fe00:104%eth1: icmp_seq=3 ttl=64 time=29.6 ms
--- fe80::f0be:efff:fe00:104%eth1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 28.953/39.746/60.679/14.805 ms
root@debian-test-vm:~# ping6 -c 3 fe80::f0be:efff:fe00:110%eth1
PING fe80::f0be:efff:fe00:110%eth1(fe80::f0be:efff:fe00:110%eth1) 56 data bytes
64 bytes from fe80::f0be:efff:fe00:110%eth1: icmp_seq=1 ttl=64 time=36.4 ms
64 bytes from fe80::f0be:efff:fe00:110%eth1: icmp_seq=2 ttl=64 time=36.1 ms
64 bytes from fe80::f0be:efff:fe00:110%eth1: icmp_seq=3 ttl=64 time=32.6 ms
--- fe80::f0be:efff:fe00:110%eth1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 32.570/35.024/36.371/1.751 ms
root@debian-test-vm:~# ping6 -c 3 fe80::f0be:efff:fe00:102%eth1
PING fe80::f0be:efff:fe00:102%eth1(fe80::f0be:efff:fe00:102%eth1) 56 data bytes
From fe80::27ff:fe3e:11ca%eth1: icmp_seq=1 Destination unreachable: Address unreachable
From fe80::27ff:fe3e:11ca%eth1: icmp_seq=2 Destination unreachable: Address unreachable
From fe80::27ff:fe3e:11ca%eth1: icmp_seq=3 Destination unreachable: Address unreachable
--- fe80::f0be:efff:fe00:102%eth1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 47ms
pipe 3
root@debian-test-vm:~#
Hmm. gluon-radv-filterd
ist’s nicht (uff), trägt aber durch das Rausfiltern von RAs dazu bei, daß das Problem stärker zu Tage tritt. Nur: warum is l2tp-ham01 IP(v6)-technisch abgeschnitten, wenngleich doch auf Layer 2 es erreichbar ist?
root@l2tp-ham01 ~ # ip addr show bat01 | grep ether
link/ether f2:be:ef:00:01:02 brd ff:ff:ff:ff:ff:ff
root@l2tp-ber01 ~ # ip addr show bat01 | grep ether
link/ether f2:be:ef:00:01:04 brd ff:ff:ff:ff:ff:ff
root@l2tp-fra01 ~ # ip addr show bat01 | grep ether
link/ether f2:be:ef:00:01:10 brd ff:ff:ff:ff:ff:ff
root@33332-Test-VM-S07-11c9:~# batctl tr f2:be:ef:00:01:02
traceroute to f2:be:ef:00:01:02 (02:ca:ff:ee:01:02), 50 hops max, 20 byte packets
1: 02:ca:ff:ee:01:02 22.650 ms 22.923 ms 27.787 ms
root@33332-Test-VM-S07-11c9:~# batctl tr f2:be:ef:00:01:04
traceroute to f2:be:ef:00:01:04 (02:ca:ff:ee:01:04), 50 hops max, 20 byte packets
1: 02:ca:ff:ee:01:02 24.743 ms 23.037 ms 20.923 ms
2: 02:ca:ff:ee:01:04 33.230 ms 28.164 ms 27.751 ms
root@33332-Test-VM-S07-11c9:~# batctl tr f2:be:ef:00:01:10
traceroute to f2:be:ef:00:01:10 (02:ca:ff:ee:01:10), 50 hops max, 20 byte packets
1: 02:ca:ff:ee:01:02 23.944 ms 24.244 ms 23.264 ms
2: 02:ca:ff:ee:01:10 31.174 ms 31.201 ms 31.893 ms
Hingegen:
root@l2tp-ham01 ~ # ip addr show bat01 | grep fe80
inet6 fe80::f0be:efff:fe00:102/64 scope link
root@l2tp-ber01 ~ # ip addr show bat01 | grep fe80
inet6 fe80::f0be:efff:fe00:104/64 scope link
root@l2tp-fra01 ~ # ip addr show bat01 | grep fe80
inet6 fe80::f0be:efff:fe00:110/64 scope link
root@33332-Test-VM-S07-11c9:~# ping6 -c 3 fe80::f0be:efff:fe00:102%br-client
PING fe80::f0be:efff:fe00:102%br-client (fe80::f0be:efff:fe00:102%6): 56 data bytes
--- fe80::f0be:efff:fe00:102%br-client ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@33332-Test-VM-S07-11c9:~# ping6 -c 3 fe80::f0be:efff:fe00:104%br-client
PING fe80::f0be:efff:fe00:104%br-client (fe80::f0be:efff:fe00:104%6): 56 data bytes
64 bytes from fe80::f0be:efff:fe00:104: seq=0 ttl=64 time=28.514 ms
64 bytes from fe80::f0be:efff:fe00:104: seq=1 ttl=64 time=28.365 ms
64 bytes from fe80::f0be:efff:fe00:104: seq=2 ttl=64 time=28.068 ms
--- fe80::f0be:efff:fe00:104%br-client ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 28.068/28.315/28.514 ms
root@33332-Test-VM-S07-11c9:~# ping6 -c 3 fe80::f0be:efff:fe00:110%br-client
PING fe80::f0be:efff:fe00:110%br-client (fe80::f0be:efff:fe00:110%6): 56 data bytes
64 bytes from fe80::f0be:efff:fe00:110: seq=0 ttl=64 time=31.563 ms
64 bytes from fe80::f0be:efff:fe00:110: seq=1 ttl=64 time=31.579 ms
64 bytes from fe80::f0be:efff:fe00:110: seq=2 ttl=64 time=32.052 ms
--- fe80::f0be:efff:fe00:110%br-client ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 31.563/31.731/32.052 ms
Würde ja auf ebtables tippen, aber da stehen überall die gleichen Regeln drin:
root@l2tp-ham01 ~ # ebtables -L
Bridge table: filter
Bridge chain: INPUT, entries: 0, policy: ACCEPT
Bridge chain: FORWARD, entries: 4, policy: ACCEPT
--logical-in br01 -j DROP
--logical-in br02 -j DROP
--logical-in br03 -j DROP
--logical-in br04 -j DROP
Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
root@l2tp-ham01 ~ #
root@l2tp-ber01 ~ # ebtables -L
Bridge table: filter
Bridge chain: INPUT, entries: 0, policy: ACCEPT
Bridge chain: FORWARD, entries: 7, policy: ACCEPT
--logical-in br01 -j DROP
--logical-in br02 -j DROP
--logical-in br03 -j DROP
--logical-in br04 -j DROP
--logical-in br05 -j DROP
--logical-in br06 -j DROP
--logical-in br09 -j DROP
Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
root@l2tp-ber01 ~ #
root@l2tp-fra01 ~ # ebtables -L
Bridge table: filter
Bridge chain: INPUT, entries: 0, policy: ACCEPT
Bridge chain: FORWARD, entries: 6, policy: ACCEPT
--logical-in br01 -j DROP
--logical-in br02 -j DROP
--logical-in br03 -j DROP
--logical-in br04 -j DROP
--logical-in br05 -j DROP
--logical-in br06 -j DROP
Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
root@l2tp-fra01 ~ #
Bin gerade echt etwas ratlos