Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upluci-proto-wireguard: missing input fields #854
Comments
This comment has been minimized.
This comment has been minimized.
|
Hi Kalin, have you created a static addressing on top of the Wireguard interface? Please see this article: https://www.danrl.com/2016/11/16/openwrt-luci-proto-wireguard.html Let me know if there are any remaining issues. Dan
|
This comment has been minimized.
This comment has been minimized.
|
Hello Dan, Thank you for the quick reply! I guess I was misunderstanding the naming of "Interface" in luci then. Is there any place your blog or relevant documentation can be found inside luci? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Yep, that is even better! |
This comment has been minimized.
This comment has been minimized.
|
Reading this blog post:
I'm sort of curious what exactly you have in mind. How do you envision WireGuard working when it doesn't have a statically assigned IP address? |
This comment has been minimized.
This comment has been minimized.
No worries, common mistake. Not a fan of "interface" either in this context. |
This comment has been minimized.
This comment has been minimized.
Have not tried it yet, but unicast DHCPv6 may work. Not yet thought through and also off-topic here I guess. |
This comment has been minimized.
This comment has been minimized.
|
@thinrope Not your fault, the documentation is only two days old :) I am happy to see the code already being used. |
This comment has been minimized.
This comment has been minimized.
How do you imagine this will work with AllowedIPs? The DHCP server dynamically fiddles with peers' entries? That'd be interesting. I mention this here, because maybe there's some reason for adding back the static addressing to the script itself. But I can also understand why you prefer the abstraction. |
This comment has been minimized.
This comment has been minimized.
|
The static address support was rudimentary and did not reflect all of OpenWrts capabilities. Also, it would mean re-implementing what is already in OpenWrt. However, convince me it is worth the effort and I will dig into it. |
thinrope commentedNov 18, 2016
I just saw pull request #852 by @danrl and tested it out.
Unfortunately couldn't make it work :-|
At least one reason being that it lacks input fields to specify interface (local) IP address.
After configuration, one needs to give local IP address to the interface (and bring it up).
ip addr add 192.168.xx.yyy/24 dev wg0See https://www.wireguard.io/quickstart/
(I am also new to wireguard, apologize, if there is some magic that is supposed to work)
I have successfully configured a new interface from the shell with the following, where this(=OpenWRT box) has 192.168.6.113/24 address and the other (=Gentoo box) has 192.168.6.12/24 address:
then configure the other host (use
wg show wg0 public-keyto get the public key needed to setup the other host).So the minimum config for a wireguard interface should include local IP address and (peer OR mask), IMHO.
I had a look at the Lua, but am not sure how it works, sorry :-(