NLnetLabs / unbound

Unbound is a validating, recursive, and caching DNS resolver.
https://nlnetlabs.nl/unbound
BSD 3-Clause "New" or "Revised" License
3.11k stars 357 forks source link

outgoing-port-avoid errors #1122

Open markster1700 opened 2 months ago

markster1700 commented 2 months ago

Issue: Explicitly listing port number in "outgoing-port-avoid" will error out the unbound will not start. It is expecting port range instead.

Port rage works. I had to replace my config with the rage rather than using port listing separated by commas.

Unbound version 1.21rc1

wcawijngaards commented 2 months ago

The notation for a port listing separated by commas is not supported. It is possible to repeat individual port numbers with new lines with outgoing-port-avoid: 13234 and outgoing-port-avoid: 13235 for example. It is also possible to list new lines of outgoing-port-avoid and use a port range "low-high" and with that set several ranges.

Statements of outgoing-port-permit: "low-high" can be mixed in, the lines apply in order, removing and adding port numbers to the total.