openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.37k stars 2.53k forks source link

luci-app-wireguard: import account like glinet #4747

Closed predators46 closed 1 year ago

predators46 commented 3 years ago

when does openwrt have a wireguard luci that can import accounts like glinet

feckert commented 3 years ago

So far, there are no plans to do so. Besides, you need to give us more information about what it is. Best with pictures and a link where we can look at it, what this exactly is

predators46 commented 3 years ago

So far, there are no plans to do so. Besides, you need to give us more information about what it is. Best with pictures and a link where we can look at it, what this exactly is

https://docs.gl-inet.com/en/3/app/wireguard/

predators46 commented 3 years ago

WGC1

images images windscribe_06

predators46 commented 3 years ago

I use glinet and use glinet firmware I really like the wireguard account import feature I hope the openwrt devoloper can make it like that

Neustradamus commented 3 years ago

@systemcrash: For information ;)

systemcrash commented 3 years ago

How about this?

If I paste in the following example, the GUI autofills everything:

[Peer]
PublicKey = AzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzA=
AllowedIPs = 192.168.0.0/16, 0.0.0.0/0, ::/0
Endpoint = testcorp.tld:12345
PersistentKeepalive = 25
PresharedKey = ABzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzA=

like so: Screenshot 2021-10-20 at 17 34 29

@jow- - is 192.168.0.0/16, 0.0.0.0/0, ::/0 a valid entry for a single row Allowed IPs in the pic? o.datatype = 'ipaddr'; Error checker thinks its OK.

Edit: A 'paste' helper could similarly be done for [Interface] entries - but DNS entries would get discarded.

jow- commented 1 year ago

Current master provides import and export facilities for WireGuard configs.