Wireguard VPN integration in Luci

to build it:
(put the contents of the previous post in a file called Dockerfile)
docker build -t turris.luci.wg .
docker run --rm -v /tmp:/tmp turris.luci.wg

the following files will now appear in /tmp/ipk on the host system:

luci-app-wireguard_git-17.009.29435-7d19852-1_all.ipk
luci-proto-wireguard_git-17.009.29435-7d19852-1_all.ipk

**in turris-os, you’ll need to replace /usr/lib/lua/luci/cbi/datatypes.lua with the version found here:
(needed for base64 datatype)
**I know it’s a bit hacky, but it’s the better option vs compiling the luci-base package and potentially breaking something

**see this post for instructions on how to build the wireguard packages

1 Like