dtaht / babeld-hacking

The Babel routing daemon
http://www.pps.univ-paris-diderot.fr/~jch/software/babel/
MIT License
1 stars 0 forks source link

redistribute local deny not working #32

Closed dtaht closed 6 years ago

dtaht commented 6 years ago

This used to, prior to me putting out the latest release, just basically export my dynamic ip's and a covering route.

local-port 33123 ipv6-subtrees true default enable-timestamps true interface eth0.2 interface eth0.1 interface eth0.3 interface eth0.4 interface eth0.5 redistribute local eq 62
redistribute local src-eq 62
redistribute src-eq 62
redistribute proto 48 redistribute local deny redistribute deny

But, nope, they are escaping now.

Have to revert

default via 172.22.0.2 dev eno1 50.197.142.144/29 via 172.22.0.1 dev eno1 proto babel onlink 169.254.0.0/16 dev eno1 scope link metric 1000 172.20.0.0/14 via 172.22.0.1 dev eno1 proto babel onlink 172.22.0.0/24 dev eno1 scope link 172.22.0.2 via 172.22.0.2 dev eno1 proto babel onlink 172.22.0.91 via 172.22.0.91 dev eno1 proto babel onlink 172.22.0.172 via 172.22.0.172 dev eno1 proto babel onlink 172.22.0.193 via 172.22.0.193 dev eno1 proto babel onlink 172.22.0.215 via 172.22.0.215 dev eno1 proto babel onlink 172.22.192.0/22 via 172.22.0.193 dev eno1 proto babel onlink 172.22.193.1 via 172.22.0.193 dev eno1 proto babel onlink 172.22.220.0/22 via 172.22.0.91 dev eno1 proto babel onlink 172.22.221.1 via 172.22.0.91 dev eno1 proto babel onlink 172.22.222.1 via 172.22.0.91 dev eno1 proto babel onlink 172.22.223.1 via 172.22.0.91 dev eno1 proto babel onlink 172.23.252.2 via 172.22.0.2 dev eno1 proto babel onlink 192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.2 192.168.122.1 via 172.22.0.215 dev eno1 proto babel onlink

dtaht commented 6 years ago

confirmed to be a problem in my branch only.

BEFORE:

default via 172.22.0.2 dev eno1 
50.197.142.144/29 via 172.22.0.1 dev eno1 proto babel onlink 
169.254.0.0/16 dev eno1 scope link metric 1000 
172.20.0.0/14 via 172.22.0.1 dev eno1 proto babel onlink 
172.22.0.0/24 dev eno1 scope link 
172.22.0.2 via 172.22.0.2 dev eno1 proto babel onlink 
172.22.0.172 via 172.22.0.172 dev eno1 proto babel onlink 
172.22.0.193 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.0.215 via 172.22.0.215 dev eno1 proto babel onlink 
172.22.192.0/22 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.193.1 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.220.0/22 via 172.22.0.91 dev eno1 proto babel onlink 
(just the covering route)
172.23.252.2 via 172.22.0.2 dev eno1 proto babel onlink 
192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.2 
192.168.122.1 via 172.22.0.215 dev eno1 proto babel onlink 

after:

default via 172.22.0.2 dev eno1 
50.197.142.144/29 via 172.22.0.1 dev eno1 proto babel onlink 
169.254.0.0/16 dev eno1 scope link metric 1000 
172.20.0.0/14 via 172.22.0.1 dev eno1 proto babel onlink 
172.22.0.0/24 dev eno1 scope link 
172.22.0.2 via 172.22.0.2 dev eno1 proto babel onlink 
172.22.0.91 via 172.22.0.91 dev eno1 proto babel onlink 
172.22.0.172 via 172.22.0.172 dev eno1 proto babel onlink 
172.22.0.193 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.0.215 via 172.22.0.215 dev eno1 proto babel onlink 
172.22.192.0/22 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.193.1 via 172.22.0.193 dev eno1 proto babel onlink 
172.22.220.0/22 via 172.22.0.91 dev eno1 proto babel onlink 
172.22.221.1 via 172.22.0.91 dev eno1 proto babel onlink 
172.22.222.1 via 172.22.0.91 dev eno1 proto babel onlink 
172.22.223.1 via 172.22.0.91 dev eno1 proto babel onlink 
172.23.252.2 via 172.22.0.2 dev eno1 proto babel onlink 
192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.2 
192.168.122.1 via 172.22.0.215 dev eno1 proto babel onlink 

But this is broken in my branch, not the others

dtaht commented 6 years ago

fixed in head