Hi, On Mon, May 27, 2013 at 12:36:39AM +0200, Samuel Thibault wrote: > Gert Doering, le Sat 25 May 2013 13:58:19 +0200, a écrit : > > > To make it short: yes, the ipv6 pool environment variables are useful, > > > for user-defined scripts to be run at connection for instance to > > > propagate routes, do accounting, etc. The patch below adds them. > > > > You keep claiming that "yes it's useful". The lack of feedback on the > > list is partly due to the "To make it short" part of your mail... > > Ok. I was simply wondering whether it had perhaps got somehow dropped > without reason. > > As I mentioned too briefly, the reason we need it is the same as for the > IPv4 case: to announce the route to our bird daemon on connection, and > drop it on disconnection.
Mmmmh. Trying to understand this: so you're not using a common /64 for the tun addresses (= the ifconfig-ipv6-pool), but each client gets some other address, which is then announced on-demand by bird? I can see that this is useful, but the naming of the environment variables in this case is more confusing, as it's not really related to the *pool*. Have you looked at the learn-address script? I use something similar at a customer (adding and removing proxy-arp entries on client connect) and learn-address does all I need just fine... > > So the only thing that I couldn't see right away > > in the environment is "what IPv6 address did the remote receive?" and > > that one *is* available as parameter to the "learn-address" script already > > today... > > But we need it from the disconnect script too, to remove the route > announcement. It is available for IPv4, I don't see why things should > be different between IPv6 and IPv4 here. It would make our script way > more obscure for sure (having to record the route somewhere, re-read on > disconnect). Well, learn-address is run on disconnect, but not "right away" - true, so having it in disconnect is useful. I wonder whether we should also export iroute-ipv6 settings, as that would enable on-demand routing of more than a single IPv6 address. ... need to think more about this. But thanks anyway for explaining your use case. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de
pgpiQrSTfDDr5.pgp
Description: PGP signature