edgevpn icon indicating copy to clipboard operation
edgevpn copied to clipboard

Failed to run edgevpn on Macos as a vpn

Open figureair opened this issue 2 years ago • 1 comments

I tried to use edgevpn on Macos with the command "edgevpn --address 10.0.1.11/24 --interface utun3", but it told me "not implemented"

figureair avatar Aug 01 '22 20:08 figureair

Hi, thanks for filing an issue!

I don't have a macOS environment to test this up, could you provide the full log?

mudler avatar Aug 21 '22 12:08 mudler

Same issue, log is the same as on Linux: "no warranty", version, " Starting EdgeVPN network", Node ID, Node Addresses, and last log entries are:

{"level":"INFO","time":"2023-03-09T23:33:31.279+0100","caller":"discovery/dht.go:104","message":" Bootstrapping DHT"}
error while starting network service: 'not implemented'

slntopp avatar Mar 09 '23 22:03 slntopp

Same issue, and after some debug, I notice it's because the code in interface_darwin.go, in prepareInterface, it set mtu/address and set interface status up, but as I know netlink is a linux package which doesn't support macos, so need some macos way to set these info.

image

springhack avatar May 29 '23 11:05 springhack

With the latest release, you can run something like

sudo edgevpn --token="$TOKEN" --address="10.1.0.12/24" --interface=utun9

And your macos node will be connected to the network.

image

mauromorales avatar Mar 14 '24 09:03 mauromorales