ciniml / WireGuard-ESP32-Arduino

WireGuard implementation for ESP32 Arduino
Other
804 stars 64 forks source link

Added HTTP over Wireguard example #14

Open ulikoehler opened 2 years ago

ulikoehler commented 2 years ago

Based on my blogpost. https://techoverflow.net/2021/12/31/esp32-wireguard-example-with-http-access-over-wireguard-platformio/

This example does not use or connect to SORACOM so IMO it will be easier to understand what it does for applications like MQTT or HTTP.

ciniml commented 2 years ago

Sorry for late response.

Nice work!

Could you add README (a link to your blogpost with some description) to the example directory?

I will add link from the top README to this example after that.

ulikoehler commented 2 years ago

@ciniml Sure, will do that ASAP :-)

brummbaer commented 1 year ago

Hello, may I ask if you can try your example adapted to autoConnect? I can't get this to work unfortunately. On its own your example works but autoConnect does something different. Thank you very much https://hieromon.github.io/AutoConnect/index.html

distancerunner commented 1 year ago

I'm a little bit confused. I get a bad handshake error: my config looks a little bit different

[Interface]
PrivateKey = ABC=
Address = 10.6.0.18/24
DNS = 9.9.9.9, 149.112.112.112

[Peer]
PublicKey = ABC=
PresharedKey = F6DkH6QzU2+om3blmYTUq6Eefq7rw1v037rzhl/areE=
Endpoint = abc.abc.de:1194
AllowedIPs = 0.0.0.0/0, ::0/0

You added allowed IPs Ip to the config of the ESP. I added Address = 10.6.0.18/24. Was there a change in wireguard configs after an update?