ciniml / WireGuard-ESP32-Arduino

WireGuard implementation for ESP32 Arduino
Other
813 stars 68 forks source link

PSK #23

Open psxde opened 2 years ago

psxde commented 2 years ago

Is there an option to include a Preshared Key to the ESP Wireguard Tunnel?

tkndrm commented 2 years ago

hi, i guess shouldn't be that difficult to implement. Seems like there just no way to define it with begin().

https://github.com/ciniml/WireGuard-ESP32-Arduino/search?q=preshared

zjonesz commented 1 year ago

Did you @psxde manage to get it working with PSK?

brummbaer commented 1 year ago

Hi, I am now passing the preSharedKey to the "begin" and have adjusted the code to do so. However, I can't get it to work in general. I am using autoConnect. Has anyone ever gotten this to work with ESP32? Could use some help. Thanks

tkndrm commented 1 year ago

Hi, I am now passing the preSharedKey to the "begin" and have adjusted the code to do so.

nice, can you pls share the code and adjustments?

kienvu58 commented 1 year ago

Hi, I am now passing the preSharedKey to the "begin" and have adjusted the code to do so.

nice, can you pls share the code and adjustments?

I've adjusted the code to allow to specify a preshared key. Check out my fork: https://github.com/kienvu58/WireGuard-ESP32-Arduino.git

absemetov commented 1 year ago

@kienvu58 Thanks code work! Please add to wireguardif.c


//#include "tcpip_adapter.h"
#include "esp_netif.h"