netmaker icon indicating copy to clipboard operation
netmaker copied to clipboard

[Bug]: junk routes left behind when 2nd network is removed from a client

Open skandragon opened this issue 1 year ago • 2 comments

Contact Details

No response

What happened?

I added a host to a network called "flame" which uses IPv4 space 10.30.0.0/20, and the "netmaker" interface gets a 10.30.0.2 address. I later added it to one called "colo" with IPv4 space 10.31.0.0/20, and the "netmaker" interface changes to 10.31.0.2.

When I remove the "colo" network through the UI from this host, I am left with a junk route:

root@iot:~# ip route
10.30.0.0/20 dev netmaker proto kernel scope link src 10.30.0.2
10.31.0.1 dev netmaker
10.31.0.2 dev netmaker

Version

v0.18.5

What OS are you using?

Linux

Relevant log output

No response

Contributing guidelines

  • [X] Yes, I did.

skandragon avatar Apr 19 '23 03:04 skandragon

can you verify the versions of netmaker and netclient you are using. Cannot duplicate behaviour on v.0.18.5

mattkasun avatar Apr 20 '23 14:04 mattkasun

I'm seeing the same on Linux and Windows while testing v18. I have loads of junk routes from various networks I have tried and later deleted still showing and causing a lot of connection issues. I didn't notice this until I added a second egress gateway to another site. All clients are 18.6

bpmarine avatar Apr 20 '23 14:04 bpmarine