Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for openbsd #812

Merged
merged 3 commits into from Jul 27, 2023
Merged

Build for openbsd #812

merged 3 commits into from Jul 27, 2023

Conversation

nbrownus
Copy link
Collaborator

Adds a build for openbsd and restructures a few things to make supporting bsd family of OS easier.

We should think about this change in relation to #808

openbsd was requested in #806

@johnmaguire
Copy link
Collaborator

johnmaguire commented May 10, 2023

Rebased on master in order to pull in changes from #808

Would be nice to get this merged. We have a user on Nebula OSS Slack who'd like to try running on OpenBSD: https://nebulaoss.slack.com/archives/CS01XE0KZ/p1683756250949619?thread_ts=1683753436.867029&cid=CS01XE0KZ

@johnmaguire
Copy link
Collaborator

@wadey did a little bit of work towards this goal in https://github.com/wadey/nebula/tree/smoke-openbsd

To run it with Virtualbox and Vagrant, use make smoke-vagrant/openbsd-amd64

It's currently failing with:

time="2023-01-23T21:48:50Z" level=fatal msg="failed to run 'route add': exit status 1"

@wadey thinks the following may solve the issue: sudo /sbin/route -n add -inet 192.168.100.3/24 192.168.100.3

[vagrant@openbsd7 ~]$ route get 192.168.100.1
   route to: 192.168.100.1
destination: 192.168.100.0
       mask: 255.255.255.0
    gateway: 192.168.100.3
  interface: tun0
 if address: 192.168.100.3
   priority: 8 (static)
      flags: <UP,GATEWAY,DONE,STATIC>
     use       mtu    expire
       1         0         0

@6167656e74323431
Copy link

I think the command you probably want here is /sbin/route -n add -net 192.168.100.3/24 -link -iface tun0.

@nbrownus nbrownus force-pushed the openbsd branch 2 times, most recently from b88fa55 to 2ece931 Compare July 26, 2023 20:23
@wadey
Copy link
Member

wadey commented Jul 27, 2023

We should add release-openbsd to the Makefile and add it to the release workflow as well here:

@wadey wadey added this to the v1.8.0 milestone Jul 27, 2023
@nbrownus nbrownus merged commit 0bffa76 into master Jul 27, 2023
7 checks passed
@nbrownus nbrownus deleted the openbsd branch July 27, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants