{"id":18601961,"url":"https://github.com/coonrad/wgconfig","last_synced_at":"2026-04-28T18:03:29.468Z","repository":{"id":245637218,"uuid":"818827273","full_name":"coonrad/wgconfig","owner":"coonrad","description":"A simple bash script to output wireguard configurations with public and private key.","archived":false,"fork":false,"pushed_at":"2024-06-27T07:06:09.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T01:37:10.733Z","etag":null,"topics":["bash","configuration","script","vpn","wiregaurd"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/coonrad.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}},"created_at":"2024-06-23T01:45:04.000Z","updated_at":"2024-06-27T07:06:13.000Z","dependencies_parsed_at":"2025-02-18T01:45:38.878Z","dependency_job_id":null,"html_url":"https://github.com/coonrad/wgconfig","commit_stats":null,"previous_names":["coonrad/wgconfig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coonrad%2Fwgconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coonrad%2Fwgconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coonrad%2Fwgconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coonrad%2Fwgconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coonrad","download_url":"https://codeload.github.com/coonrad/wgconfig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576746,"owners_count":22094446,"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":["bash","configuration","script","vpn","wiregaurd"],"created_at":"2024-11-07T02:09:50.937Z","updated_at":"2026-04-28T18:03:24.428Z","avatar_url":"https://github.com/coonrad.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wgconfig\nA simple bash script to output wireguard configurations with public and private key.\n\n```bash\n[vpnuser@mypc]~$ wgconfig\n\nEnter values for any or all fields or none to generate keypair only\n\nFilename (example client01) =\nAddress (example: 10.0.0.2/30) =\nListenPort (return for dynamic endpoint) =\nDNS servers separated by comma (return for none) =\nPresharedKey (return for none) =\nRemote peer PublicKey =\nAllowedIPs (separated by comma, 0.0.0.0/0 for default) =\nEndpoint (hostname or IP address) =\nEndpoint listenport =\n\n### configuration saved as wireguard.conf\n```\n\n## Configuration output template\n\n```ini\n# Name = wireguard.conf\n\n# Configuration format is INI.\n# There are two top level sections: Interface and Peer\n[Interface]\n\n# Private key generated by wg genkey\nPrivateKey =\n\n# Public key derived from private key with wg pubkey\n# Provide to remote peer\n# Publickey =\n\n# Comma separated list of addresses, CIDR notation optional\n# Multiple addresses allowed\nAddress =\n\n# Optional 16-bit listen port\n# Don't set if this peer has a dynamic IP address\n# ListenPort =\n\n# Comma separated list of addresses for DNS service\n# Or hostnames to be set as search domains\n# DNS =\n\n# Manually specify MTU\n# MTU = 1420\n\n# Multiple peer configurations allowed\n[Peer]\n\n# Public key provided by remote peer\nPublicKey =\n\n# Optional preshared key generated by wg genpsk\n# Adds addtional layer of cryptography for post-quantum resistance\n# PresharedKey =\n\n# Comma separated list of IPv4 or IPv6 addresses with CIDR masks\n# For incoming traffic allowed and outgoing traffic directed\n# Use 0.0.0.0/0 and/or ::/0 for default route\nAllowedIPs =\n\n# IP or hostname followed by colon and port number\n# Don't set if remote peers have dynamic addresses\n# Endpoint =\n\n# Keepalive interval between 1 and 65535\n# Useful for keeping NAT or stateful firewall connections active\n# PersistentKeepalive = 25\n```\n\n## Installation and usage\n\nClone the repo or copy the script.\u003cbr\u003e\nMake the script executable `chmod +x wgconfig`.\u003cbr\u003e\nPlace it somewhere in your path `~/bin` `~/.local/bin` `/usr/local/bin`.\u003cbr\u003e\n\nThere are no command line flags or options, just execute the script and follow the prompts.\n\n## Requirements\n\n- wireguard-tools\n  - Linux (debian based)\n    - `apt install wireguard-tools`\n  - macOS Macports and Homebrew\n    - `port install wireguard-tools`\n    - `brew install wireguard-tools`\n  - FreeBSD\n    - `pkg install wireguard-tools`\n\nFor additional operating systems: [Wireguard Installation](https://www.wireguard.com/install/)\n\n## Further Information\n\n- [WireGuard](https://www.wireguard.com/)\n- [Unofficial WireGuard Documentation](https://github.com/pirate/wireguard-docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoonrad%2Fwgconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoonrad%2Fwgconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoonrad%2Fwgconfig/lists"}