Giter Site home page Giter Site logo

Add support for Freebsd about boringtun HOT 9 OPEN

cloudflare avatar cloudflare commented on May 30, 2024 11
Add support for Freebsd

from boringtun.

Comments (9)

decke avatar decke commented on May 30, 2024 1

I've created a FreeBSD Port for boringtun and included the patch from PR #35 - seems to build fine on FreeBSD 11.2 and 12.0 but I haven't done any runtime testing yet.

https://code.bluelife.at/decke/ports/src/branch/master/net/boringtun

from boringtun.

vkrasnov avatar vkrasnov commented on May 30, 2024 1

Cool. Yes it builds but we need to make it work with the CI to have official support. Also I wan to land sendmmsg and recvmmsg before FreeBSD as it provides significant performance benefits there.

from boringtun.

decke avatar decke commented on May 30, 2024

Don't know if it is an option but cirrus-ci.org has FreeBSD support and is free for open source projects.

from boringtun.

vkrasnov avatar vkrasnov commented on May 30, 2024

The problem is that there are interop tests that interact with wireguard-go in a container, and although there is experimental docker support on FreeBSD, wireguard refuses to work there. But maybe I just need to use a native container.

from boringtun.

lwhsu avatar lwhsu commented on May 30, 2024

We also have wireguard-go on FreeBSD, although there is no container, it might still be possible to run those test scripts on Cirrus-CI's FreeBSD instance.

from boringtun.

BlameOmar avatar BlameOmar commented on May 30, 2024

It looks like #35 has stalled for nearly a year and has merge conflicts now. I'm interested in getting this working, but I don't know what's blocking it.

from boringtun.

vkrasnov avatar vkrasnov commented on May 30, 2024

The only thing blocking it is lack of CI server for FreeBSD

from boringtun.

BlameOmar avatar BlameOmar commented on May 30, 2024

From what I can tell, that's because:

  • The integration tests depend on Docker. Specifically, two methods on Peer execute docker.
  • Docker is not supported on FreeBSD. It's not clear if it ever will be.

Perhaps a path forward would be to assume Docker will never be supported on FreeBSD and factor out the Docker dependency from Peer, using jails on FreeBSD and Docker everywhere else.

If this is fine, I can file a bug for factoring out the Docker dependency and then take a look at a jails implementation ~Saturday. Otherwise, I suppose I can just run a tiny linux VM for kernel-space wireguard.

from boringtun.

vkrasnov avatar vkrasnov commented on May 30, 2024

@BlameOmar it would be awesome to have a jails based test suite

from boringtun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.