Static route destination sanity check

Started by GaardenZwerch, April 19, 2021, 08:21:53 AM

Previous topic - Next topic
Hi,
I have just found out that OPNsense let's me enter nonsensical destinations in the static routes dialogue.
It let me put

10.204.71.0/16

in the destination field (even overriding my larger 10.204.0.0/16 route)
Maybe a check could prevent dummies like me from sabotaging their network ;-)

Thanks

I guess the mask must put it back to 10.204.0.0, but takes precedence because it is still more specific than the original 10.204.0.0.