Closed maurice-w closed 3 years ago
@maurice-w https://github.com/opnsense/core/commit/aa167350b27557bab1a816bdc0a80febeb712a0c should fix it, it seems I forgot to test with ipv6
Thanks, that fixed it!
But I noticed another limitation: You can't remove routes which are directly assigned to an interface (no gateway).
I noticed this when doing some tests with the Tayga plugin, which creates routes like this:
route -6 add 2001:db8::/96 -interface nat64
route -4 add 192.0.2.0/24 -interface nat64
These routes show up in 'System: Routes: Status', but neither of them can be removed using the GUI.
They can be removed via shell like this:
route -6 delete 2001:db8::/96
route -4 delete 192.0.2.0/24
This is kind of an edge case, I leave it up to you whether it's considered unsupported or fix-worthy.
@maurice-w https://github.com/opnsense/core/commit/219e63fe651b785d3e0f49f94af8b39c6db9948c should remove the limitation.
Thanks for the effort @AdSchellevis, but tunnel interfaces don't have a MAC address.
The netstat -rWn
output for such routes looks like this:
Destination Gateway Flags Use Mtu Netif Expire
2001:db8:1:2::a wg0 UHS 8 1420 wg0
2001:db8:64::/96 nat64 US 0 1500 nat64
@maurice-w I should reverse it indeed, check for a valid ip address and omit if it's not. will do so in the next commit
Did a quick test and it works. Thanks a lot!
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
IPv6 routes don't get removed when using the 'remove route' feature in the web GUI.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Route gets removed.
Describe alternatives you considered
Remove the route manually via shell command.
Environment
OPNsense 21.7.a_6 (amd64, OpenSSL). Hyper-V Server 2019