Code Monkey home page Code Monkey logo

Comments (18)

xyzroe avatar xyzroe commented on July 22, 2024 1

Comparing to the previous config you just give more options when initializing:

yep, cause of using another version of WireGuard library

from xzg.

xyzroe avatar xyzroe commented on July 22, 2024 1

https://github.com/Tinkerforge/WireGuard-ESP32-Arduino

from xzg.

xyzroe avatar xyzroe commented on July 22, 2024 1

I think is was 20240504. But I will do new tests in a few days and try to find out the problem.

from xzg.

xyzroe avatar xyzroe commented on July 22, 2024 1

Ok, I'll look in a few days, thanks.

from xzg.

gztproject avatar gztproject commented on July 22, 2024 1

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.

xyzroe avatar xyzroe commented on July 22, 2024

wgEndAddr is IP or hostname ? Could you try using IP ?

from xzg.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

It is an IP.

from xzg.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

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.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

@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.

xyzroe avatar xyzroe commented on July 22, 2024

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.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

The test you mention, which version did you test?

from xzg.

xyzroe avatar xyzroe commented on July 22, 2024

Need to check when additional config options added. That way we can found tested version

from xzg.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

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.

xyzroe avatar xyzroe commented on July 22, 2024

Have you tried with default Local gateway = 0.0.0.0 ?

from xzg.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

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.

Oliviakrkk avatar Oliviakrkk commented on July 22, 2024

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.

xyzroe avatar xyzroe commented on July 22, 2024

Thanks 👍

from xzg.

gztproject avatar gztproject commented on July 22, 2024

I just opened a pull request #86 with a quick VPN runthrough :)

from xzg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.