Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUnbreak building for FreeBSD #103
Conversation
This comment has been minimized.
This comment has been minimized.
claassistantio
commented
Dec 17, 2019
•
This comment has been minimized.
This comment has been minimized.
|
I can likely spin a VM up shortly and push this along. My initial thoughts are that this is pushing ethernet frames ( |
This comment has been minimized.
This comment has been minimized.
|
@nbrownus that's great! I'm happy to help if any assistance is needed. :-) |
This comment has been minimized.
This comment has been minimized.
dch
commented
Dec 17, 2019
|
@mateuszkwiatkowski neat keep me posted on progress! |
This comment has been minimized.
This comment has been minimized.
|
@nbrownus Did you have a chance to take a look into this? |
This comment has been minimized.
This comment has been minimized.
|
Sorry, I got pulled in another direction. I'll re-review this PR and merge as a stop gap. |
This comment has been minimized.
This comment has been minimized.
|
Mind rebasing on master? |
eb43467
to
3f42be1
This comment has been minimized.
This comment has been minimized.
|
@nbrownus rebased and force-pushed. :-) |
| c.Device = c.Interface.Name() | ||
|
|
||
| // TODO use syscalls instead of exec.Command | ||
| fmt.Println("command: ifconfig", c.Device, c.Cidr.String(), c.Cidr.IP.String()) |
This comment has been minimized.
This comment has been minimized.
wadey
Feb 4, 2020
Member
remove this fmt.Println and the one below, or change it to use the logger that the rest of Nebula uses (search the repository for l.Debug(…) etc). Debug level would be correct here I believe.
mateuszkwiatkowski commentedDec 17, 2019
•
edited
I naively copied darwin files to unbreak building FreeBSD binaries. The other thing is that upstream version of water library doesn't support FreeBSD. There is a fork with added FreeBSD support https://github.com/yggdrasil-network/water and work in progress pull request to upstream: songgao/water#37
After these dirty hacks I'm able to start nebula on FreeBSD hosts but no traffic is passed between them:
tap0 interface is configured correctly:
There's no response for who-has requests:
Dropping it here with hope that someone would be willing to pick-up and continue this effort.
I was testing on few weeks old CURRENT:
FreeBSD monster-1 13.0-CURRENT FreeBSD 13.0-CURRENT #5 1b501770dd3-c264495(master): Wed Nov 27 01:35:34 CET 2019 root@monster-1:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64