can't bind socket: Permission denied for IPv6 (port bellow 1024)

W.C.A. Wijngaards wouter at nlnetlabs.nl
Tue Jul 3 07:54:02 UTC 2018


Hi Nusenu,

On 02/07/18 20:58, nusenu via Unbound-users wrote:
> 
> 
> W.C.A. Wijngaards via Unbound-users:
>>> Will this be included in future unbound releases?
>>
>> Yes, sure.  I'll keep it in.  Perhaps something similar is happening and
>> is what I need to do to fix it, somehow.  That would be a failure where
>> the socket structure is reused with the addr and port reset, and somehow
>> the reused socket structure is not the same as a fresh malloced structure.
> 
> 
> I guess we know why it gets permission denied now:
> 
> can't bind socket: Permission denied for <IPv6> port <some-port-bellow-1024>

I want to ask to make sure.  Do you have other config with
outgoing-port-permit or outgoing-port-avoid in the file?  They are
processed in order they appear.

An inspection of the code and some debug says that <1024 should really
not be in the list of possibilities, but apparantly it is for you,
perhaps due to config?

Best regards, Wouter

> 
> my config has:
> 	outgoing-port-permit: 32768-65535
> 	outgoing-port-avoid: 0-32767
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20180703/912700ec/attachment.bin>


More information about the Unbound-users mailing list