gravitl / netmaker

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

[Bug]: RTNETLINK answers: File exists on server within egress_range #1732

Closed shan100github closed 1 year ago

shan100github commented 2 years ago

Contact Details

No response

What happened?

Version

Netmaker: 0.16.3 Netclient: 0.16.3

I have a private network 192.168.0.0/24 with 2 servers to be connected through Netclient. 1st - 192.168.0.2 - Ingress + Egress(192.168.0.0/24) 2nd- 192.168.0.4 - failing to create Netclient configure upon execution of netclient join command, but how ever it shows in Netmaker server as already joined and reflects wireguard config to 192.168.0.2

Similar setup I was using with 0.14.6 version and able to successfully setup.

Screen Shot 2022-11-11 at 17 04 09

Might be relevant to https://github.com/gravitl/netmaker/issues/1243

Version

Not listed

What OS are you using?

No response

Relevant log output

netclient join output in `192.168.0.4` 

[netclient] 2022-11-11 08:00:27 network: netmake-16-3-net UDP hole punching enabled for node Server-4
[netclient] 2022-11-11 08:00:27 starting wireguard
[netclient] 2022-11-11 08:00:29 error running command: wg-quick up /etc/netclient/config/nm-netmake-16-3-net.conf
[netclient] 2022-11-11 08:00:29 [#] ip link add nm-netmake-16-3-net type wireguard
[#] wg setconf nm-netmake-16-3-net /dev/fd/63
[#] ip -4 address add 10.49.24.5 dev nm-netmake-16-3-net
[#] ip link set mtu 1280 up dev nm-netmake-16-3-net
[#] ip -4 route add 10.49.24.4/32 dev nm-netmake-16-3-net
[#] ip -4 route add 10.49.24.3/32 dev nm-netmake-16-3-net
[#] ip -4 route add 10.49.24.254/32 dev nm-netmake-16-3-net
[#] ip -4 route add 10.49.24.2/32 dev nm-netmake-16-3-net
[#] ip -4 route add 10.49.24.1/32 dev nm-netmake-16-3-net
[#] ip -4 route add 192.168.0.0/24 dev nm-netmake-16-3-net
RTNETLINK answers: File exists
[#] ip link delete dev nm-netmake-16-3-net
RTNETLINK answers: File exists
[#] ip link delete dev nm-netmake-16-3-net
file does not exist
[netclient] 2022-11-11 08:27:37 error installing:  could not reliably create interface, please check wg installation and retry
[netclient] 2022-11-11 08:27:37 error running command: wg-quick down /etc/netclient/config/nm-netmake-16-3-net.conf
[netclient] 2022-11-11 08:27:37 wg-quick: `nm-netmake-16-3-net' is not a WireGuard interface
[netclient] 2022-11-11 08:27:37 removed systemd remnants if any existed


### Contributing guidelines

- [X] Yes, I did.
mattkasun commented 2 years ago

create both nodes (192.168.0.2 and 192.168.0.4) before creating the egress

shan100github commented 1 year ago

yes, got it done.