Comments (18)
Comparing to the previous config you just give more options when initializing:
yep, cause of using another version of WireGuard library
from xzg.
https://github.com/Tinkerforge/WireGuard-ESP32-Arduino
from xzg.
I think is was 20240504. But I will do new tests in a few days and try to find out the problem.
from xzg.
Ok, I'll look in a few days, thanks.
from xzg.
It works for me in version 20240612:
"vpn-config": {
"wgEnable": true,
"wgLocalIP": “10.100.0.4”, //Peer address
"wgLocalSubnet": "255.255.255.0", //Peer netmask
"wgLocalPort": 33333,
"wgLocalGateway": "0.0.0.0",
"wgLocalPrivKey": “xxxx+xxxxx=",
"wgEndAddr": “xxxxx”, //Server address
"wgEndPubKey": “xxxxx”,
"wgEndPort": 51820,
"wgAllowedIP": “0.0.0.0”, //What IPs are allowed to connect to this peer
"wgAllowedMask": "0.0.0.0", //Subnet for ^
"wgMakeDefault": true,
"wgPreSharedKey": "",
},
from xzg.
wgEndAddr is IP or hostname ? Could you try using IP ?
from xzg.
It is an IP.
from xzg.
It looks like it never worked after upgrading to XZG.
Looking at this function: https://github.com/xyzroe/XZG/blob/main/src/etc.cpp#L828
The configuration should be OK.
Comparing to the previous config you just give more options when initializing: https://github.com/mercenaruss/uzg-firmware/blob/main/src/main.cpp#L91C6-L91C13
from xzg.
@xyzroe
In this example: https://github.com/ciniml/WireGuard-ESP32-Arduino/blob/main/examples/uptime_post/uptime_post.ino
there are only 5 variables for wg.Begin
. Maybe the extra config is creating issues?
from xzg.
It looks like it never worked after upgrading to XZG.
no you're wrong. I made some tests and get stable working connection
from xzg.
The test you mention, which version did you test?
from xzg.
Need to check when additional config options added. That way we can found tested version
from xzg.
Hi,
Maybe I am configuring it wrongly.
In the previous version of the library, there wasn't a variable called Local Gateway
. I managed to connect (once, somehow) when this was set to nothing, but there was no comunnication via the wireguard interface.
What should I enter into this field? The gateway of the local network the device is connected to?
I tried to find the variable meaning in repo https://github.com/Tinkerforge/WireGuard-ESP32-Arduino, but I just can see the basic vars which were used in the UZG.
Edit: Found the header file with some comments about variables:
https://github.com/Tinkerforge/WireGuard-ESP32-Arduino/blob/main/src/WireGuard-ESP32.h
vpnCfg.wgLocalGateway translates to:
// Gateway of the WireGuard network
const IPAddress& Gateway,
from xzg.
Have you tried with default Local gateway = 0.0.0.0 ?
from xzg.
Yes. "Worked" once. Handshake with my router was completed, but non of the communucation worked. Ping did not work.
Now I am trying to manually enter the gateway from the wifi network that the UZG is connected to.
from xzg.
BTW. There are two more commits in the library after linked commit [WireGuard @ 58de5da](https://github.com/Tinkerforge/WireGuard-ESP32-Arduino/tree/58de5da725bf11720439306496d8962dcb26af61)
https://github.com/Tinkerforge/WireGuard-ESP32-Arduino/activity
I am honestly not that much fluent to be able to asses if they would make the difference...
from xzg.
Thanks 👍
from xzg.
I just opened a pull request #86 with a quick VPN runthrough :)
from xzg.
Related Issues (20)
- UZG-01 - Low LQI on all Zigbee devices HOT 3
- zh:zstack:znp: Skip bootloader for CC2652/CC1352 [2024-05-30 21:52:09] error: z2m: Error while starting zigbee-herdsman [2024-05-30 21:52:09] error: z2m: Failed to start zigbee [2024-05-30 21:52:09] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions [2024-05-30 21:52:09] error: z2m: Exiting... [2024-05-30 21:52:09] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:101:27) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29) at Zigbee.start (/app/lib/zigbee.ts:62:27) at Controller.start (/app/lib/controller.ts:109:27) at start (/app/index.js:107:5) HOT 1
- Zigbee Firmware value set to "0" after reboot ESP32 HOT 6
- Unable to connect to WIFI
- Connect Wifi to strongest AP
- SLZB-06M can't leave access point mode HOT 24
- Socket connection and MQTT need to be stoped while Zigbee flash HOT 15
- Hostname setting is ignored for WebUI HOT 1
- После установки прошивки 20240609 на шлюзы, программа ZigstarGW-MT перестала видеть шлюзы. Их у меня 5 шт. HOT 1
- tubeszb-efr32-mgm210-poe-2022 failed to load after flashing to XZG from ESPHome HOT 2
- Home Assistant - Update Notifications HOT 1
- SLZB-06 - No network, no ZIGBEE HOT 22
- The Delete-button in File Browser is to easy to misinterpret HOT 2
- Scan request failed or was not answered HOT 1
- Zigbee connected, but socket saying "No connection" HOT 1
- Export Zigbee traffic counters to MQTT
- Unexpected reboot of esp32 HOT 3
- Ita translate error HOT 10
- uzg-01 zigstar wireguard vpn client not working HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xzg.