README 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. odhcpd - Embedded DHCP/DHCPv6/RA Server & Relay
  2. ** Abstract **
  3. odhcpd is a daemon for serving and relaying IP management protocols to
  4. configure clients and downstream routers. It tries to follow the RFC 6204
  5. requirements for IPv6 home routers.
  6. odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
  7. prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
  8. (non-bridged) interfaces in case no delegated prefixes are available.
  9. ** Features **
  10. 1. Router Discovery support (solicitations and advertisements) with 2 modes
  11. server: RD server for slave interfaces
  12. a) automatic detection of prefixes, delegated prefix and default routes, MTU
  13. b) automatic reannouncement when changes to prefixes or routes occur
  14. relay: RD relay between master and slave interfaces
  15. a) support for rewriting announced DNS-server addresses in relay mode
  16. 3. DHCPv6-support with 2 modes of operation
  17. server: minimalistic server mode
  18. a) stateless and stateful address assignment
  19. b) prefix delegation support
  20. c) dynamic reconfiguration in case prefixes change
  21. d) hostname detection and hosts-file creation
  22. relay: mostly standards-compliant DHCPv6-relay
  23. a) support for rewriting announced DNS-server addresses
  24. 4. Proxy for Neighbor Discovery messages (solicitations and advertisments)
  25. a) support for auto-learning routes to the local routing table
  26. b) support for marking interfaces "external" not proxying NDP for them
  27. and only serving NDP for DAD and for traffic to the router itself
  28. [Warning: you should provide additional firewall rules for security]
  29. ** Compiling **
  30. odhcpd uses cmake:
  31. * To prepare a Makefile use: "cmake ."
  32. * To build / install use: "make" / "make install" afterwards.
  33. * To build DEB or RPM packages use: "make package" afterwards.
  34. ** Server Mode **
  35. 0. Server mode is used as a minimalistic alternative for full-blown servers
  36. like radvd or ISC DHCP if simplicity or a small footprint matter.
  37. Note: The master interface is unused in this mode. It should be set to '.'.
  38. 1. If there are non-local addresses assigned to the slave interface when a
  39. router solicitation is received, said prefixes are announced automatically
  40. for stateless autoconfiguration and also offered via stateful DHCPv6.
  41. If all prefixes are bigger than /64 all but the first /64 of these prefixes
  42. is offered via DHCPv6-PD to downstream routers.
  43. 2. If DNS servers should be announced (DHCPv6 server-mode) then a local DNS-
  44. proxy (e.g. dnsmasq) needs to be run on the router itself because 6relayd
  45. will always announce a local address as DNS-server (if not otherwise
  46. configured).
  47. 3. odhcpd is run with the appropriate configuration.
  48. ** Relay Mode **
  49. 0. Relay mode is used when a /64-bit IPv6-Prefix should be distributed over
  50. several links / isolated layer 2 domains (e.g. if no prefix delegation
  51. is available). In this mode NDP (namely Router Discovery and Neighbor
  52. Discovery) messages and DHCPv6-messages are proxied. For DHCPv6 also
  53. server mode can be used instead of relaying if desired.
  54. 1. When starting 6relayd it is required that the master interface - where
  55. IPv6-service is already provided - is configured and usable.
  56. 2. If the upstream router doesn't provide or announce a DNS-service that is
  57. reachable in an at least site-local scope, a local DNS proxy (e.g. dnsmasq)
  58. needs to be run and configued on the same router where 6relayd is running.
  59. (This step can most likely be skipped in most environments.)
  60. 3. odhcpd is run with the appropriate configuration.