[GH-ISSUE #141] [question, edited] kernel module rejects explicit nulls for I2-I5 parameters, tools resist to recognize empty lines #89

Open
opened 2026-10-13 21:06:26 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @renatica on GitHub (Feb 21, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/141

version of the kernel module: current master, built against kernel version 6.18.12
version of the tools: current master

error message with empty strings (the intact awg config by the amnezia-client):

Feb 21 23:58:51 nixos awg-quick-awg0-start[45970]: Line unrecognized: `I2='
Feb 21 23:58:51 nixos awg-quick-awg0-start[45970]: Configuration parsing error

error message with explicit null args:

[#] ip link add awg0 type amneziawg
[#] awg setconf awg0 /dev/fd/63
Unable to modify interface: Invalid argument
[#] ip link delete dev awg0

the conditions to reproduce: I2 to I5 empty in config generated by amnezia-client.
the amnezia-client generates those and leaves those empty. the solution is commenting that out.

the question is the following: should i make a quick commit to the parsing (probably in junk.c?), or is it alright and going to be documented somewhere?


oops. the line unrecognized error is from tools, in their config.c in amneziawg-tools. sorry. gotta make the issue there. though the nulls as invalid arguments is puzzling: what is the intended behavior?

Originally created by @renatica on GitHub (Feb 21, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/141 version of the kernel module: current master, built against kernel version 6.18.12 version of the tools: current master error message with empty strings (the intact awg config by the amnezia-client): ``` Feb 21 23:58:51 nixos awg-quick-awg0-start[45970]: Line unrecognized: `I2=' Feb 21 23:58:51 nixos awg-quick-awg0-start[45970]: Configuration parsing error ``` error message with explicit null args: ``` [#] ip link add awg0 type amneziawg [#] awg setconf awg0 /dev/fd/63 Unable to modify interface: Invalid argument [#] ip link delete dev awg0 ``` the conditions to reproduce: I2 to I5 empty in config generated by amnezia-client. the amnezia-client generates those and leaves those empty. the solution is commenting that out. the question is the following: should i make a quick commit to the parsing (probably in `junk.c`?), or is it alright and going to be documented somewhere? --- oops. the line unrecognized error is from tools, in their `config.c` in amneziawg-tools. sorry. gotta make the issue there. though the nulls as invalid arguments is puzzling: what is the intended behavior?
Author
Owner

@includedrocky commented on GitHub (Apr 23, 2026):

commenting them out (empty strings) worked for me. Not sure if this is correct, but connection is stable and I can verify having new ip from the network I was trying to get

<!-- gh-comment-id:4303694256 --> @includedrocky commented on GitHub (Apr 23, 2026): commenting them out (empty strings) worked for me. Not sure if this is correct, but connection is stable and I can verify having new ip from the network I was trying to get
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#89
No description provided.