DefGuard / deployment

Deployment files (docker, kubernetes, installer) for defguard enterprise VPN with MFA
Other
15 stars 9 forks source link

Cannot Install OPNsense Gateway Package #31

Open emielpopla opened 10 months ago

emielpopla commented 10 months ago

I tried to install the gateway on my OPNsense router but it gives me the following error.

fetch https://github.com/DefGuard/gateway/releases/download/v0.5.6/defguard-gateway_0.5.6_x86_64-unknown-opnsense.pkg
pkg add defguard-gateway_0.5.6_x86_64-unknown-opnsense.pkg
Installing defguard-gateway-0.5.6...
pkg: wrong architecture: Linux:5:x86:64 instead of FreeBSD:13:amd64

I could force install it but that may bring more unknown problems with it.

moubctez commented 10 months ago

It's a problem with fpm cross-building - see https://github.com/jordansissel/fpm/issues/1880.

My work-around:

mkdir -p pp zz
tar Jxf defguard-gateway.pkg -C zz
sed -e 's,Linux:5,FreeBSD:13,' zz/+MANIFEST > MANIFEST
rm zz/+COMPACT_MANIFEST zz/+MANIFEST
pkg create -M MANIFEST -o pp -r zz
teon commented 10 months ago

@moubctez that should be in our CI then during packaging - since we have a workaround. Adding to backlog.

moubctez commented 10 months ago

@teon The work-around only works on FreeBSD.

teon commented 10 months ago

@moubctez and thats what I mean - to do this workaround for opnsesne/freebsd package during CI since it has errors.

teon commented 10 months ago

@moubctez we need FreeBSD runner / a way to reliably build FreeBSD + OPNSense package.

teon commented 3 months ago

@moubctez please release gateway 0.7.1 with freebsd & opnsense packages. 🙏