Giter Site home page Giter Site logo

rdiscd's People

Contributors

agwa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

resourceofhs

rdiscd's Issues

Somehow share secret with host when using VM

Ideally when using a tap device with a VM, I'd like to run rdiscd in the VM and also know on the host what the secret is. Then I can write an ip6tables rule to ensure only packets with the expected address can get in or out.

Any ideas on how to achieve this? I do have control of router (and neighbour) advertisements but I'm not sure if that's the right place to do it: https://github.com/davedoesdev/nfdhcpd

(I'd like to stay away from running DHCPv6)

Use IFA_F_NOPREFIXROUTE to avoid configuring a /128 address

rdiscd currently configures addresses with a /128 prefix length rather than the prefix length advertised by the router (e.g. /64). Since rdiscd also explicitly adds a route to the prefix, the /128 address should be functionally equivalent to an address with the advertised prefix length. Nevertheless, this is unexpected and may cause confusion as well as functional problems that have not yet been discovered.

The reason why rdiscd does this is because the kernel automatically adds a route to the prefix if you configure an address with a prefix length besides /128, but rdiscd needs to be in charge of adding that route. Recent versions of the kernel (3.14+) have a flag, IFA_F_NOPREFIXROUTE, to prevent the automatic addition of the prefix route, and recent versions of iproute2 have an option to ip-address, noprefixroute, to use this flag.

rdiscd should use this flag if the kernel and iproute2 provide it, and then configure the address with the true prefix length instead of /128.

Pick up interface ID (literal IPv6 address) from file

Thanks for #1 - I can generate stable privacy addresses outside my VMs.
What I realised now though is I don't need the secret key inside the guest: I just need to tell it what suffix it should be using.
I'm putting the suffix in a file on a tiny disk which is attached to the VM.
It'd be great if I could specify a file location for picking up suffices, just like you can for rdiscd-stable-privacy-key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.