amnezia-vpn / amneziawg-tools

Tools for configuring Amnezia-WG
https://www.wireguard.com
GNU General Public License v2.0
66 stars 23 forks source link

wg-tools does not seem to understand new parameters #5

Open valerius2k opened 9 months ago

valerius2k commented 9 months ago

Hi. Tried to build this repo and use it with "wg" and "wg-quick" and "wg-quick@" systemd unit.

wg-quick up wg10

[#] ip link add wg10 type wireguard [#] wg setconf wg10 /dev/fd/63 Unable to modify interface: Invalid argument [#] ip link delete dev wg10

I have the following wg10.conf:

`[Interface] PrivateKey = censored Address = 10.78.77.2/32,fd42:43:42::2/128 DNS = 1.1.1.1,9.9.9.9 PostUp = ip rule add from 10.77.77.248/29 table 128; ip route add table 128 defa PostDown = ip rule del from 10.77.77.248/29 table 128; ip route del table 128 de Table = off S1 = 9 S2 = 11 Jc = 12 Jmin = 120 Jmax = 220

[Peer] PublicKey = censored PresharedKey = censored Endpoint = 192.162.241.137:443 AllowedIPs = 0.0.0.0/0,::/0 `

"wg" does not seem to understand the new parameters S1, S2, Jc, Jmin, Jmax. Though, I see them present in config.c source file. What I'm doing wrong? Maybe, I need to build other branch than "master"?

valerius2k commented 9 months ago

Ah, It seems, I'm missing the awg-linux-kernel-module file.