gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.36k stars 544 forks source link

[Bug]: error installing client on opnsense #1459

Closed lndlw closed 3 months ago

lndlw commented 2 years ago

What happened?

After successfully installing the client using the code below on opnsense (OPNsense 22.7.1-amd64 FreeBSD 13.1-RELEASE). I tried joining my node which is running on a vps. It throws the below mentioned error.

curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/netclient-install.sh | VERSION="0.14.6" sh -

Version

v0.14.6

What OS are you using?

FreeBSD

Relevant log output

ifconfig nm-netmaker mtu 1280 [#] ifconfig nm-netmaker up [#] route -q -n add -inet 10.101.255.254/32 -interface nm-netmaker [#] route -q -n add -inet 10.101.0.2/32 -interface nm-netmaker [#] route -q -n add -inet 10.101.0.1/32 -interface nm-netmaker [#] ifconfig nm-netmaker destroy [netclient] 2022-08-16 10:02:48 error running command: wg-quick up /etc/netclient/config/nm-netmaker.conf [netclient] 2022-08-16 10:02:48 [#] ifconfig wg create name nm-netmaker [#] wg setconf nm-netmaker /dev/stdin [#] ifconfig nm-netmaker inet 10.101.0.3 alias ifconfig: WARNING: setting interface address without mask is deprecated, default mask may not be correct. [#] ifconfig nm-netmaker m

Contributing guidelines

afeiszli commented 2 years ago

I do not see an error in your logs, just a Warning. What is the error?

lndlw commented 2 years ago

I do not see an error in your logs, just a Warning. What is the error?

netclient] 2022-08-27 11:41:38 deleted node opnsensein on network netmaker [netclient] 2022-08-27 11:41:38 error running command: wg-quick down /etc/netclient/config/nm-netmaker.conf [netclient] 2022-08-27 11:41:38 wg-quick:nm-netmaker' is not a WireGuard interface [netclient] 2022-08-27 11:41:39 error running command: service netclient stop [netclient] 2022-08-27 11:41:39`

abhishek9686 commented 3 months ago

we no longer support netclient on FreeBSD, instead, you can generate wireguard VPN configuration for your netmaker network and connect your FreeBSD machine to the VPN. https://docs.netmaker.io/external-clients.html