nginx use of UDP ports?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

nginx use of UDP ports?

nginx mailing list
Hello,

After setting up nginx to run, I've noticed that 'lsof' shows all nginx processes (master + workers) listening on an ephemeral UDP port.
nginx 25142   vgrinshp    4u  IPv4 422450236      0t0  UDP 127.0.0.1:33226
nginx 25144   vgrinshp    4u  IPv4 422450236      0t0  UDP 127.0.0.1:33226
nginx 25145   vgrinshp    4u  IPv4 422450236      0t0  UDP 127.0.0.1:33226
nginx 25146   vgrinshp    4u  IPv4 422450236      0t0  UDP 127.0.0.1:33226
nginx 25147   vgrinshp    4u  IPv4 422450236      0t0  UDP 127.0.0.1:33226

I did not explicitly configure anything that (AFAIK) uses UDP, and I could not find anything in the doc that mentions any use of UDP ports by nginx.
The ports seem to be used by nginx even with the most minimal nginx.conf.

Does anyone here know how/why these ports are used?

Thanks for any info!
-Vadim




_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx use of UDP ports?

Maxim Dounin
Hello!

On Mon, Jun 10, 2019 at 03:59:46PM -0400, Vadim Grinshpun via nginx wrote:

> After setting up nginx to run, I've noticed that 'lsof' shows all nginx
> processes (master + workers) listening on an ephemeral UDP port.
>
>     nginx 25142   vgrinshp    4u  IPv4 422450236      0t0  UDP
>     127.0.0.1:33226
>     nginx 25144   vgrinshp    4u  IPv4 422450236      0t0  UDP
>     127.0.0.1:33226
>     nginx 25145   vgrinshp    4u  IPv4 422450236      0t0  UDP
>     127.0.0.1:33226
>     nginx 25146   vgrinshp    4u  IPv4 422450236      0t0  UDP
>     127.0.0.1:33226
>     nginx 25147   vgrinshp    4u  IPv4 422450236      0t0  UDP
>     127.0.0.1:33226
>
>
> I did not explicitly configure anything that (AFAIK) uses UDP, and I
> could not find anything in the doc that mentions any use of UDP ports by
> nginx.
> The ports seem to be used by nginx even with the most minimal nginx.conf.
>
> Does anyone here know how/why these ports are used?

By default nginx doesn't use any UDP ports.  What's in your
config?

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx use of UDP ports?

nginx mailing list
On 6/12/19 4:31 AM, Maxim Dounin wrote:
> Hello!
Hi! Thanks for responding.

> On Mon, Jun 10, 2019 at 03:59:46PM -0400, Vadim Grinshpun via nginx wrote:
>
>> After setting up nginx to run, I've noticed that 'lsof' shows all nginx
>> processes (master + workers) listening on an ephemeral UDP port.
>>
>>      nginx 25142   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25144   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25145   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25146   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25147   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>
>>
>> I did not explicitly configure anything that (AFAIK) uses UDP, and I
>> could not find anything in the doc that mentions any use of UDP ports by
>> nginx.
>> The ports seem to be used by nginx even with the most minimal nginx.conf.
>>
>> Does anyone here know how/why these ports are used?
> By default nginx doesn't use any UDP ports.  What's in your
> config?
>
Thanks for confirming this.

I was able to find the culprit on my end (a custom module that uses a
library that, as it turns out, listens on a UDP port for tracing purposes).

-Vadim

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx use of UDP ports?

lists@lazygranch.com
Tracing or interprocess communication?



          Original Message  



From: [hidden email]
Sent: June 14, 2019 2:17 PM
To: [hidden email]; [hidden email]
Reply-to: [hidden email]
Cc: [hidden email]
Subject: Re: nginx use of UDP ports?


On 6/12/19 4:31 AM, Maxim Dounin wrote:
> Hello!
Hi! Thanks for responding.

> On Mon, Jun 10, 2019 at 03:59:46PM -0400, Vadim Grinshpun via nginx wrote:
>
>> After setting up nginx to run, I've noticed that 'lsof' shows all nginx
>> processes (master + workers) listening on an ephemeral UDP port.
>>
>>      nginx 25142   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25144   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25145   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25146   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>      nginx 25147   vgrinshp    4u  IPv4 422450236      0t0  UDP
>>      127.0.0.1:33226
>>
>>
>> I did not explicitly configure anything that (AFAIK) uses UDP, and I
>> could not find anything in the doc that mentions any use of UDP ports by
>> nginx.
>> The ports seem to be used by nginx even with the most minimal nginx.conf.
>>
>> Does anyone here know how/why these ports are used?
> By default nginx doesn't use any UDP ports.  What's in your
> config?
>
Thanks for confirming this.

I was able to find the culprit on my end (a custom module that uses a
library that, as it turns out, listens on a UDP port for tracing purposes).

-Vadim

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx