{"id":27945165,"url":"https://github.com/metal-stack/go-dhcp-relay","last_synced_at":"2025-05-07T12:56:14.929Z","repository":{"id":284779839,"uuid":"955849000","full_name":"metal-stack/go-dhcp-relay","owner":"metal-stack","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T08:59:27.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-07T12:56:06.654Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metal-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-27T09:46:21.000Z","updated_at":"2025-04-16T08:59:28.000Z","dependencies_parsed_at":"2025-03-27T16:44:54.404Z","dependency_job_id":"1ec008b3-3fc4-4263-a5d6-071a7e73176b","html_url":"https://github.com/metal-stack/go-dhcp-relay","commit_stats":null,"previous_names":["metal-stack/go-dhcp-relay"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fgo-dhcp-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fgo-dhcp-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fgo-dhcp-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fgo-dhcp-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metal-stack","download_url":"https://codeload.github.com/metal-stack/go-dhcp-relay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252883221,"owners_count":21819157,"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-07T12:56:14.474Z","updated_at":"2025-05-07T12:56:14.922Z","avatar_url":"https://github.com/metal-stack.png","language":"Go","readme":"# go-dhcp-relay\n\nA simple DHCP relay implementation.\n\n## Usage\n\n```bash\ngo-dhcp-relay -i interface -s server1 [... -s serverN]\n```\n\n## Test Locally\n\n### Requirements\n\n- [docker](https://docs.docker.com/)\n- [docker compose](https://docs.docker.com/compose/)\n- [containerlab](https://containerlab.dev/)\n\n### Starting Lab\n\nRun `make lab-up` to deploy containerlab topology with one relay, two DHCP servers and three clients.\nThe relay contains two VLANs, Vlan4000 and Vlan1000, and is configured to listen for DHCP requests on the Vlan4000.\nTwo of the clients are connected to Vlan4000 on the relay, the third one is connected to Vlan1000.\nThe expected behavior is that the first two clients' requests are forwarded by the the relay, while the third client's requests are dropped.\n\nInspect the container logs to observe what is happening.\nAs soon as a client has acquired a lease or if it failed to do so it will sleep for 5 seconds and start another exchange.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fgo-dhcp-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetal-stack%2Fgo-dhcp-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fgo-dhcp-relay/lists"}