Repository navigation
Implement support for WireGuard - #1200
Conversation
|
Right now |
|
I can help you with Japanese translation. |
|
Awesome, thank you very much! @dnobori usually translates to Japanese for me, but he's very busy right now. |
|
I've just started to translate existing untranslated messages in the separate PR #1201. |
metalefty
left a comment
There was a problem hiding this comment.
It might be better to focus on reviewing the logic of new code in this PR. Translations can be done later.
So what about adding some markers around untranslated messages? Then, I and other contributors can easily find untranslated messages later.
# TODO: TO BE TRANSLATED
|
I agree, I'll do that in a separate pull request for all |
|
So umm is this going to get merged soon? This feature is super cool and it looks like you put a lot of work into it. I would love to see it in one of the next releases. |
|
I'm actually waiting for feedbacks. |
a3f2615 to
5698d19
Compare
|
BLAKE2's CMake project wrongly detects the available instruction sets: Program terminated with signal SIGILL, Illegal instruction.
#0 0x00007f14b3fd49b0 in blake2s_init_param () from /home/user/SoftEtherVPN/build/libcedar.so
[Current thread is 1 (Thread 0x7f14b26ec440 (LWP 12380))]
(gdb) bt
#0 0x00007f14b3fd49b0 in blake2s_init_param () from /home/user/SoftEtherVPN/build/libcedar.so
#1 0x00007f14b3fd4a5c in blake2s_init () from /home/user/SoftEtherVPN/build/libcedar.so
#2 0x00007f14b3fd4f6c in blake2s () from /home/user/SoftEtherVPN/build/libcedar.so
#3 0x00007f14b3f925aa in WgsInit () from /home/user/SoftEtherVPN/build/libcedar.so
#4 0x00007f14b3f72582 in ProtoSessionNew () from /home/user/SoftEtherVPN/build/libcedar.so
#5 0x00007f14b3f72916 in ProtoHandleDatagrams () from /home/user/SoftEtherVPN/build/libcedar.so
#6 0x00007f14b3e309d7 in UdpListenerThread () from /home/user/SoftEtherVPN/build/libmayaqua.so
#7 0x00007f14b3e16115 in ThreadPoolProc () from /home/user/SoftEtherVPN/build/libmayaqua.so
#8 0x00007f14b3e4e93c in UnixDefaultThreadProc () from /home/user/SoftEtherVPN/build/libmayaqua.so
#9 0x00007f14b3335fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f14b3ca74cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95For this CPU |
|
I'd like to test this. I cloned the Update: I am a noob but I just learned what |
|
So I am trying to get the public key for Wireguard but I do not know where to find it. Both WkgEnum and ProtoOptionsGet/ProtoOptionsSet are unsupported. How do I get WireGuard set up? |
|
You have to derive it from the private one (obtainable through |
|
@davidebeatrici |
|
The name of the protocol is SoftEtherVPN/src/Cedar/Proto.c Lines 60 to 73 in 5f12684 Are you sure the server you're running is compiled from my branch? |
|
Okay so I just had to restart the vpnserver service and it works now. Thanks! Edit: Also SSTP seems to have an error on this version as well with the "SSL Socket closed by remote side" error. So I guess I was using a different server version before now. |
5698d19 to
801df1b
Compare
|
I just rebased against If you pull from my branch and build the server again you should not see the issue anymore, assuming it doesn't show up in |
|
I think it does show up in master and I believe I mentioned that in issue #1241 So I just compiled and tested your updated branch and I am still getting the same error on SSTP By any chance could this be happening because I am importing a Let's Encrypt certificate? Should we open a new issue for this? Okay after importing a Self Signed certificate made by the vpncmd utility did not change anything. |
|
Sorry, you're right. |
801df1b to
8f8f5da
Compare
8f8f5da to
f1eb41a
Compare
|
I fixed the instruction set detection issue and restricted @andrewfer000 Have you encountered any issues with the WireGuard implementation so far? |
|
@davidebeatrici not at all. WireGuard has been working well. The only issue is I have encountered are the ones on my LG Android but that's it. Overall very stable. Edit: If you Build your branch against Master one more time I'll be glad to pull it down and test it. If all goes well you should be able to merge it into Master. |
|
Awesome! My branch is actually already rebased against As for your LG V30, is there perhaps something related to WireGuard in Android's logcat? |
WgkAdd command - Add a WireGuard key Help for command "WgkAdd" Purpose: Add a WireGuard key Description: This command can be used to add a WireGuard key to the allowed key list. To execute this command, you must have VPN Server administrator privileges. Usage: WgkAdd [key] [/HUB:hub] [/USER:user] Parameters: key - WireGuard key. Make sure it is the public one! /HUB - Hub the key will be associated to. /USER - User the key will be associated to, in the specified hub. ================================================================================ WgkDelete command - Delete a WireGuard key Help for command "WgkDelete" Purpose: Delete a WireGuard key Description: This command can be used to delete a WireGuard key from the allowed key list. To execute this command, you must have VPN Server administrator privileges. Usage: WgkDelete [key] Parameters: key - WireGuard key. ================================================================================ WgkEnum command - List the WireGuard keys Help for command "WgkEnum" Purpose: List the WireGuard keys Description: This command retrieves the WireGuard keys that are allowed to connect to the server, along with the associated Virtual Hub and user. You can add a key with the WgkAdd command. You can delete a key with the WgkDelete command. To execute this command, you must have VPN Server administrator privileges. Usage: WgkEnum
…rators This is in order to protect the WireGuard private key.
This commit: - Switches from Ubuntu 16.04 to 18.04 for all builds, mainly in order to use a more recent version of libsodium. - Installs libsodium, used by the WireGuard implementation.
f1eb41a to
2dab282
Compare
|
I downloaded the latest Azure artifacts from Azure for Windows and compiled the Linux sources and tried it on Windows and Linux. I am not able to connect to the server with WireGuard, neither on Win nor on Linux. I am seeing this in the server logs: The Windows client tells me that the handshake failed: I have added the client keys via the command line interface, they are listed properly and WireGuard protocol is enabled (as it is by default). The keys are mapped to users on a virtual hub. Is there something else to configure that I might have missed? |
|
Have you set the server's public key in the client? |
|
The keys were my first line of thinking as well, so I tripple checked all those. Is there any way to let SoftEther be a little bit more verbose so I can get down to the cause? |
|
|
|
To be clear: you imported the public keys in both client and server, right? |
|
Yes, I exported the config and set the PresharedKey (public) and PrivateKey (private) key which I did the same with the clients and edited the KeyList accordingly: Lastly I updated the WireGuard client config: I set up a vanilla WireGuard server on a different machine using Ubuntu 18.04 and used the same public and private keys for client and server. This works correctly. |
|
Here's the matching block for your current server settings: [Peer]
PublicKey = RjU8BHHngBKdNSJZIKx2+Xb0MleURvnM5ZxKmGDzpAw=
PresharedKey = RjU8BHHngBKdNSJZIKx2+Xb0MleURvnM5ZxKmGDzpAw=
AllowedIPs = 172.16.0.0/16
Endpoint = 192.168.31.195:5555 |
|
Thank you, that did it. I have mistaken the preshared with the public. |
|
You're welcome! We definitely need to document the configuration. |
|
@Gaulomatic, thank you for reporting this, but please create an issue for this the next time. |
|
Awesome, thank you very much! |
|
@davidebeatrici Is WireGuard available for Radius user? |
|
Yes, but you have to associate the public key to it. |
|
I only add user * with radius authentication to manage all user and password in a radius server so how to associate public key to specific radius user? |
|
Just the username and destination hub actually. We should eventually implement a way to check the public key against Radius. |
|
Simple question, |
|
How's your setup? |
|
Its a ubuntu 22.04 lxc container (on proxmox) with the default hub bridged to eth0 (Softether build from yesterdays gitlab-src ). |
|
You're not supposed to enable Virtual NAT with a local bridge, you can use Virtual DHCP though. |
|
When wiguard configurable via JSON-RPC API? |










Reviews are welcome!