ZeroTierOne
ZeroTierOne copied to clipboard
Improve ephemeral port restriction handling
This change makes it easier to control when ephemeral ports can be used via local.conf (See issue https://github.com/zerotier/ZeroTierOne/issues/915)
New behavior:
- The
allowSecondaryPortoption inlocal.confis replaced byallowEphemeralPorts allowEphemeralPortsis a toggle that controls all non-9993 ports (e.g.secondaryPortto get around buggy NATs andtertieraryPortfor uPnP/NAT-PMP)
Why this change is needed:
- There does not exist a single option switch to control all non-9993 ports. One would have to set
allowSecondaryPort:falseandallowPortMapping:false.
Open questions:
- Should this change replace
allowSecondaryPortcausing a breaking change or should we leave that switch for backwards compatibility (introducing possibly confusing redundancy)? - Is there a situation where people would want to disable the secondary port but leave the tertiary port?