Page MenuHomeVyOS Platform

Validation fails when entering port range with upper port 65535
Closed, ResolvedPublicBUG


In a change was introduced to the way port validation works.
It does this by implemeting the Python range function to check if the specified port is within a specific range. However, the Python range function is defined as follows:

boundary value up to which (excluding this value) the range or sequence is to be returned

This means that if you define a firewall rule with a port range with an upper port of 65535, the validation will fail, because currently the highest allowed port is actually 65534.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

bjw-s created this object in space S1 VyOS Public.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
Viacheslav changed the subtype of this task from "Task" to "Bug".