feat(wireguard): amneziawg implementation#3150
Conversation
|
Related PR in wiki - qdm12/gluetun-wiki#179 |
There was a problem hiding this comment.
Pretty good code 💯 Thanks for that!
A good few questions and comments 😉
I'll also later have a look at deduplicating setupUserSpace and setupAmnezia in the internal/wireguard code, although it may not be that possible unfortunately, but I do have some weird Go experience in doing hoops for such things 😄
Also what VPN provider are you using? Any clue what providers built-in Gluetun do support this implementation?
|
The only provider I know is AmneziaWG themselves. I tried with selfhosted version, but more testing needed |
|
Oooo interesting, maybe another PR to add them as provider would be cool. I've read apparently also Red Shield VPN and NymVPN support it, but they're not part of Gluetun yet. Out of scope for now 😉 |
Hmm that's a tough question. I'm very tempted, but also this means we depend on amnaziawg not being evil, miss some commits from wireguard-go, and risk a big issue in case they decide to diverge from wireguard-go in terms of retro-compatibility. I would say let's keep it separate as it is! |
Ok, I'll add that |
448ebd2 to
5d029ec
Compare
|
Refactored some parts so it looks a bit better now |
a191256 to
575561f
Compare
575561f to
234be01
Compare
|
ℹ️ apologies but I think the git history was all messed up, possibly due to me force pushing like an idiot on the master branch... I took the liberty to force push to your branch to fix the history, and rebased it on the tip of the master branch. You can get the changes with git checkout feature-add-amnezia-wg
git fetch origin
git reset --hard origin/feature-add-amnezia-wgI also made a backup of the current branch in case you need it let me know! |
234be01 to
1a07b0d
Compare
|
dbf4a50 to
9d287fe
Compare
9d287fe to
2f4e192
Compare
Description
Edit by qdm12
Build it with docker + git at:
And then define parameters in your wireguard config or use new options such as
WIREGUARD_J1(see Dockerfile)For me this is basically the only working protocol and I saw some issues where people were asking for it
Maybe it would be correct to migrate all wireguard logic to amnezia fork. As far as I understand it's backwards compatible with vanilla wireguard but have some commits behind.
Anyways looking for suggestions!
Issue
#2365
Assertions