source address for routes installed in routing table (on linux)
Hello, bird installs routes in kernel table without any source address, so for all connections initiated at that machine kernel chooses address from interface. I'm looking for a sane way to get routes installed with specific source address - basically an equivalent of "ip r a x.y.z.q/prefix via nexthop dev ethX src MYIP" command. I don't see such functionality in bird (so consider this to be a feature request). From irc I see that there are hacky way to get archieve that but these are just hacky (adding ipv4 address with scope link or preferred_lft 0 for ipv6). -- Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
On Thu, Mar 31, 2011 at 10:04:04PM +0200, Arkadiusz Miskiewicz wrote:
Hello,
bird installs routes in kernel table without any source address, so for all connections initiated at that machine kernel chooses address from interface.
I'm looking for a sane way to get routes installed with specific source address - basically an equivalent of "ip r a x.y.z.q/prefix via nexthop dev ethX src MYIP" command.
I don't see such functionality in bird (so consider this to be a feature request).
That is definitely a good idea. The question is what other kernel route attributes are worth setting from BIRD? i found source, realms/flows, perhaps priority, not sure about others (there are not many resources about that). Any suggestions? -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Friday 01 of April 2011, Ondrej Zajicek wrote:
On Thu, Mar 31, 2011 at 10:04:04PM +0200, Arkadiusz Miskiewicz wrote:
Hello,
bird installs routes in kernel table without any source address, so for all connections initiated at that machine kernel chooses address from interface.
I'm looking for a sane way to get routes installed with specific source address - basically an equivalent of "ip r a x.y.z.q/prefix via nexthop dev ethX src MYIP" command.
I don't see such functionality in bird (so consider this to be a feature request).
That is definitely a good idea. The question is what other kernel route attributes are worth setting from BIRD? i found source, realms/flows, perhaps priority, not sure about others (there are not many resources about that). Any suggestions?
realms look interesting, too: http://www.policyrouting.org/iproute2.doc.html#ss9.9 -- Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
participants (2)
-
Arkadiusz Miskiewicz -
Ondrej Zajicek