{"id":27958429,"url":"https://github.com/determinatesystems/dhcpv6macd","last_synced_at":"2025-05-07T18:23:50.777Z","repository":{"id":65783877,"uuid":"563946998","full_name":"DeterminateSystems/dhcpv6macd","owner":"DeterminateSystems","description":"A DHCPv6 service which assigns IPv6 addresses strictly on MAC address only. Potentially violates RFCs and specs.","archived":false,"fork":false,"pushed_at":"2025-04-24T21:01:40.000Z","size":68,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T21:42:08.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeterminateSystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-09T17:06:38.000Z","updated_at":"2025-04-24T21:12:55.000Z","dependencies_parsed_at":"2025-01-08T17:48:27.158Z","dependency_job_id":"0433f39e-03f8-40fd-a01f-32b237f2d80b","html_url":"https://github.com/DeterminateSystems/dhcpv6macd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeterminateSystems%2Fdhcpv6macd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeterminateSystems%2Fdhcpv6macd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeterminateSystems%2Fdhcpv6macd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeterminateSystems%2Fdhcpv6macd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeterminateSystems","download_url":"https://codeload.github.com/DeterminateSystems/dhcpv6macd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252932370,"owners_count":21827285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T18:23:50.003Z","updated_at":"2025-05-07T18:23:50.763Z","avatar_url":"https://github.com/DeterminateSystems.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHCPv6 server for difficult clients\n\nThis is a probably not RFC-compliant DHCPv6 server for a very narrow use case: assigning fixed IPv6 addresses based entirely on the client's MAC address.\nNote that this DHCPv6 server does not respect or account for leases.\n\nYou should only use this if:\n\n- You have clients you can't configure to use regular SLAAC with addresses following the usual EUI-64 scheme\n\n- You still need these clients to have stable IP addresses, even if they don't keep any state (frequent OS wipes!)\n\n\nWe use this for macs where reprovisioning isn't 100% reliable, so we want them to get the same IP address even if _none of the scripts have run_.\nThis is why we wrote this horrible hack.\n\n\n## Usage\n\n```\ngo build .\nsudo ./dhcpv6macd -interface enp2s0 -base-address 2001:db8:0123:4567::\n```\n\nThere is also a NixOS module in the flake.nix.\n\nSee the `flake.nix` for a NixOS test involving router and a client.\n\n## Address allocation scheme\n\nThe prefix is assumed to be at least a /80.\nThe MAC address is simply concatenated onto the prefix.\n\n## What's not inside\n\nThis does not provide:\n\n- Router advertisements (we use systemd-networkd for this)\n- DHCPv4 (we use systemd-networkd for this)\n- Options for DNS, NTP, etc\n\n## License\n\nThis code is GPL-3, and based on Adguard's AdGuardHome DHCPv6 server: https://github.com/AdguardTeam/AdGuardHome/blob/167b1125113c86e6304471d80d983c17f0f707e3/internal/dhcpd/v6_unix.go.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeterminatesystems%2Fdhcpv6macd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeterminatesystems%2Fdhcpv6macd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeterminatesystems%2Fdhcpv6macd/lists"}