-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS & disconnect #10
Comments
I second that to be actually set "allowed IP addresses". There is allowed_ip in the code, but I don't see a clean way to set that. |
According to the lwIP implementation, traffics are routed based on the interface netmask by default. Forwarding via a gateway in the non-default interface is not supported by lwIP, since the lwIP does not have any routing table. I think a "disconnection" could be implemented by restoring the default interface to the default one and shutdown the Wire Guard interface. https://github.com/ciniml/WireGuard-ESP32-Arduino/blob/main/src/WireGuard.cpp#L100 To restore the default interface before Wire Guard connection, we must save the default interface before updating it by calling |
I've implemented https://github.com/ciniml/WireGuard-ESP32-Arduino/blob/10-disconnect/src/WireGuard.cpp#L122 There is an example of the |
I've released WireGuard for ESP32 Arduino Library 0.1.5. This version supports shutting down the WireGuard interface by calling |
Hi, thanks for WireGuard Implementation on esp32.
I am trying and it runs well.
I noticed that all traffic goes through the VPN. It would be helpful if at least DNS requests used the local STA connection.
Also a "disconnect" function would be useful.
Thanks
MaxT
The text was updated successfully, but these errors were encountered: