{"id":18100229,"url":"https://github.com/infertux/chef-wireguard","last_synced_at":"2026-05-02T03:31:43.407Z","repository":{"id":245034543,"uuid":"817066935","full_name":"infertux/chef-wireguard","owner":"infertux","description":"Chef cookbook for Wireguard","archived":false,"fork":false,"pushed_at":"2024-06-19T00:52:45.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T04:45:33.784Z","etag":null,"topics":["chef","chef-cookbook","ruby","wireguard"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/wireguard","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infertux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"infertux","liberapay":"infertux","patreon":"infertux"}},"created_at":"2024-06-19T00:40:25.000Z","updated_at":"2024-06-26T02:12:58.000Z","dependencies_parsed_at":"2024-06-19T07:30:50.719Z","dependency_job_id":"d55dfbbd-9145-418c-a71c-7976add7ae24","html_url":"https://github.com/infertux/chef-wireguard","commit_stats":null,"previous_names":["infertux/chef-wireguard"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/infertux/chef-wireguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fchef-wireguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fchef-wireguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fchef-wireguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fchef-wireguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infertux","download_url":"https://codeload.github.com/infertux/chef-wireguard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fchef-wireguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chef","chef-cookbook","ruby","wireguard"],"created_at":"2024-10-31T21:13:24.270Z","updated_at":"2026-05-02T03:31:43.279Z","avatar_url":"https://github.com/infertux.png","language":"Ruby","funding_links":["https://github.com/sponsors/infertux","https://liberapay.com/infertux","https://patreon.com/infertux","https://liberapay.com/infertux/donate"],"categories":[],"sub_categories":[],"readme":"# Wireguard Chef cookbook\n\n[![Funding](https://img.shields.io/liberapay/patrons/infertux.svg?logo=liberapay)](https://liberapay.com/infertux/donate)\n[![Cookbook](https://img.shields.io/cookbook/v/wireguard.svg)](https://supermarket.getchef.com/cookbooks/wireguard)\n[![Build Status](https://github.com/infertux/chef-wireguard/actions/workflows/test.yml/badge.svg)](https://github.com/infertux/chef-wireguard/actions)\n\n## Example usage\n\nLet's assume a server listening on a static public address [2001:1:2:3::cafe] on UDP port 51820\nand with a Wireguard private address [fc00::42:1].\n\nLet's assume a client assigned with a dynamic public IP address\nand with a Wireguard private address [fc00::42:2].\n\n### Server\n\nAdd `wireguard::server` to the run list with the following attributes:\n\n```ruby\ndefault['wireguard']['server'] = {\n  address: %w(fc00::42:1/112),\n  port: 51820,\n  public_key: 'SERVER_PUB_KEY',\n  private_key: 'SERVER_PRIV_KEY',\n  peers: { 'fc00::42:2/128': 'CLIENT_PUB_KEY' },\n}\n```\n\n### Client\n\nAdd `wireguard::client` to the run list with the following attributes:\n\n```ruby\ndefault['wireguard']['client'] = {\n  public_key: 'CLIENT_PUB_KEY',\n  private_key: 'CLIENT_PRIV_KEY',\n  endpoint: '[2001:1:2:3::cafe]:51820',\n  address: %w(fc00::42:2/128),\n}\n\ndefault['wireguard']['server'] = {\n  address: %w(fc00::42:1/128),\n  public_key: 'SERVER_PUB_KEY',\n}\n```\n\nOnce server and client are both converged, you can inspect the Wireguard connection with the `wg` command and ping machines using the [fc00::42:x] addresses.\n\nBandwidth test using `socat`:\n  - server: `dd if=/dev/zero bs=1M count=100 | socat - tcp6-listen:1234,reuseport`\n  - client: `socat - tcp6:[fc00::42:1]:1234`\n\n## License\n\nAGPLv3+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfertux%2Fchef-wireguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfertux%2Fchef-wireguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfertux%2Fchef-wireguard/lists"}