mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-13 21:34:42 +00:00
[PR #48] awg genconf command to generate random config parameters #60
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-tools#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-tools/pull/48
Author: @vgrebenschikov
Created: 5/21/2026
Status: 🔄 Open
Base:
master← Head:feature/genconf📝 Commits (2)
e4c36f0Add wg genconf cli command to generate random interface parameters2a77977feat: generate AmneziaWG 1/2/3.1 configs from genconf📊 Changes
8 files changed (+471 additions, -60 deletions)
View changed files
📝
src/completion/wg.bash-completion(+5 -1)➕
src/genconf.c(+368 -0)📝
src/genkey.c(+1 -59)📝
src/man/wg.8(+11 -0)➕
src/random.c(+69 -0)➕
src/random.h(+15 -0)📝
src/subcommands.h(+1 -0)📝
src/wg.c(+1 -0)📄 Description
Generate a base AmneziaWG interface config with random PrivateKey,
ListenPort, junk packet settings, packet junk sizes, and magic headers.
Reuse the existing secure random implementation from genkey, avoid
overlapping magic header ranges, and skip UDP ports that are already bound.
Example of use:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.