-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Kernel routes missed in case of no gateway IP address #9185
Comments
This is day 1 behavior :( ( I am not saying this is correct )
looking at it real quick to see if there is a way I can tell what kind of route it is |
Yes, and that is wrong, IMHO, In fact - connected routes (assigned on interfaces) arrived with other RTM messages, not RTM_ADD Idea to propagate routes across network once client connected to VPN (wireguard/openvpn/etc) |
A bit more information:
|
Some initial fix provided in PR above, but worth to not install kernel routes that was already added as Connected. after fix:
|
Probably, a bit related #3937 |
This issue is stale because it has been open 180 days with no activity. Comment or remove the |
This issue will be automatically closed in the specified period unless there is further activity. |
After recent update to FRR8 I can confirm that, |
Not sure how to properly reopen it |
problem still here in FRR8 (and master now) - a place where such routes skipped in code: |
Describe the bug
[x] Did you check if this is a duplicate issue?
[x] Did you test it on the latest FRRouting/frr master branch?
To Reproduce
Kernel routes are not added into zebra list if route has device as gateway:
before:
Then add route (in fact it is as wireguard scripts add it):
And it is pretty usual for ptp/tunnel interfaces to add route just to interface, not on gateway IP
After that - nothing changed, route did not appeared:
While that route monitor shows route message:
One can notice that interface name (wg0) is sent in GATEWAY part of message
If we take a look at https://github.com/FRRouting/frr/blob/master/zebra/kernel_socket.c#L778
It is clear that for gateway we expect here only IP address, not interface name
Expected behavior
Route appeared as kernel and then available for redistribution
Versions
Additional context
Pretty basic PR which fixes the problem in Quagga
Quagga/quagga#5
The text was updated successfully, but these errors were encountered: