Coder Social home page Coder Social logo

Support for *BSD? about edgevpn HOT 10 CLOSED

mudler avatar mudler commented on August 16, 2024
Support for *BSD?

from edgevpn.

Comments (10)

anoduck avatar anoduck commented on August 16, 2024 2

@mudler I know for sure there is some support for tunnels, after all OpenBSD is famous for it's routing and firewall, but as for the specific library in question, I do not know. I can look it up on my system if you know offhand the names of the library files in question.

If it is any help whatsoever: The FAQ Networking page

and a good source for discovering what extra libraries are available is Open Ports

from edgevpn.

anoduck avatar anoduck commented on August 16, 2024 2

@mudler Will do. Awesome, I am so excited! Happy dance time!

from edgevpn.

mudler avatar mudler commented on August 16, 2024 1

Seems someone patched the underlying lib used for tun/tap for FreeBSD: https://github.com/derrick658/water/commit/7dd4a78ba9451ac28603cdff8ed682d0ba69f311, so this sounds definitely doable.

from edgevpn.

anoduck avatar anoduck commented on August 16, 2024 1

Seems someone patched the underlying lib used for tun/tap for openBSD: derrick658/water@7dd4a78, so this sounds definitely doable.

Sweetness!

from edgevpn.

anoduck avatar anoduck commented on August 16, 2024 1

@mudler No worries, from everything I can gather you are a polite and very busy individual. There is no rush, things are crazy in my corner of the pond as well.

from edgevpn.

mudler avatar mudler commented on August 16, 2024

Good point!

I didn't checked if the underlaying tun libs supports it, if it does should be working.
I'll have a look at that, thanks for bring this up!

from edgevpn.

mudler avatar mudler commented on August 16, 2024

I'll give it a shot in the weekend, at least we can get something to build against and try out :)

from edgevpn.

mudler avatar mudler commented on August 16, 2024

@anoduck ok, this builds: 7adff52 however the netlink part which sets up the interface is not available for FreeBSD so I have tossed some commands which probably are wrong - but as I'm not a FreeBSD expert I'd appreciate some help if you can play with that part!

from edgevpn.

anoduck avatar anoduck commented on August 16, 2024

@mudler And, so it begins...

Got these two errors during build:

pkg/vpn/interface.go:27:56: unknown field 'Persist' in struct literal of type water.PlatformSpecificParams
pkg/vpn/interface.go:29:9: config.Name undefined (type water.Config has no field or method Name)

Of course, the use of persist leads to the failure of water.config. I attempted to swap out interface.go with interface_darwin.go, but then both createInterface and prepareInterface became undefined.

I am going to have to look more deeply into water's process of creating a new interface OpenBSD's means of network interface configuration is more eccentric than FreeBSD's. If I remember correctly, FreeBSD's interface configuration is almost Linux-ish. It has been a while since I installed a fresh FreeBSD system, and after programming for a few hours, my mental faculties are spent.

Looking on the bright side, at least we are not working on HURD's network stack. It was completely foreign from my experience.

from edgevpn.

mudler avatar mudler commented on August 16, 2024

apologize to get back at you late! I'll try to play with it in the weekend and see. I'm not a *BSD user, so will take a bit from my side, I'll check if at least we can get away from compiler errors

from edgevpn.

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.