Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"He don't know me vewy well, DO he?" -- Bugs Bunny


devel / comp.unix.shell / Multiple processes listening on the same port.

SubjectAuthor
* Multiple processes listening on the same port.hongy...@gmail.com
+* Re: Multiple processes listening on the same port.Kees Nuyt
|`* Re: Multiple processes listening on the same port.hongy...@gmail.com
| `* Re: Multiple processes listening on the same port.Kees Nuyt
|  `- Re: Multiple processes listening on the same port.hongy...@gmail.com
+* Re: Multiple processes listening on the same port.gerg
|`* Re: Multiple processes listening on the same port.hongy...@gmail.com
| `* Re: Multiple processes listening on the same port.Kees Nuyt
|  +- Re: Multiple processes listening on the same port.hongy...@gmail.com
|  `- Re: Multiple processes listening on the same port.hongy...@gmail.com
`* Re: Multiple processes listening on the same port.Marco Moock
 `* Re: Multiple processes listening on the same port.hongy...@gmail.com
  +* Re: Multiple processes listening on the same port.Kees Nuyt
  |`* Re: Multiple processes listening on the same port.hongy...@gmail.com
  | `* Re: Multiple processes listening on the same port.Kees Nuyt
  |  `* Re: Multiple processes listening on the same port.hongy...@gmail.com
  |   `* Re: Multiple processes listening on the same port.Kees Nuyt
  |    `- Re: Multiple processes listening on the same port.Jalen Q
  `- Re: Multiple processes listening on the same port.Grant Taylor

1
Multiple processes listening on the same port.

<7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6021&group=comp.unix.shell#6021

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ad4:5502:0:b0:56b:ee5a:89f0 with SMTP id pz2-20020ad45502000000b0056bee5a89f0mr3824755qvb.7.1677401221940;
Sun, 26 Feb 2023 00:47:01 -0800 (PST)
X-Received: by 2002:a81:ae57:0:b0:52e:b235:cd22 with SMTP id
g23-20020a81ae57000000b0052eb235cd22mr7844926ywk.8.1677401221654; Sun, 26 Feb
2023 00:47:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sun, 26 Feb 2023 00:47:01 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=60.249.28.132; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 60.249.28.132
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
Subject: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sun, 26 Feb 2023 08:47:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1753
 by: hongy...@gmail.com - Sun, 26 Feb 2023 08:47 UTC

On my computer, I noticed the following processes information:

$ pgrep -af f4f4a488c740adc8
3423257 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014
3423263 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014

As you can see, there are two processes listening on the same port. On the other hand, if I kill one of them, both will be terminated. Why do these processes work this way? Why are they listening on the same port at the same time? Any tips for this behavior will be appreciated.

Regards,
Zhao

Re: Multiple processes listening on the same port.

<ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6023&group=comp.unix.shell#6023

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Sun, 26 Feb 2023 16:14:13 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 29
Injection-Date: Sun, 26 Feb 2023 16:14:14 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1792
 by: Kees Nuyt - Sun, 26 Feb 2023 15:14 UTC

On Sun, 26 Feb 2023 00:47:01 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

>On my computer, I noticed the following processes information:
>
> $ pgrep -af f4f4a488c740adc8
> 3423257 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014
> 3423263 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014
>
> As you can see, there are two processes listening
> on the same port. On the other hand, if I kill
> one of them, both will be terminated.

This pgrep output does not prove these sslocal processes are
listening on the same port. It just says they are started with
the same -l parameter.

Two processes _can_ listen on the same portnumber on _different
interfaces_.

> Why do these processes work this way?
> Why are they listening on the same port at the same time?

You'll have to study the documentation of sslocal, and/or ask
the author(s).

--
Kees Nuyt

Re: Multiple processes listening on the same port.

<814a06db-b225-4ae5-9624-7dafd099d7cfn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6024&group=comp.unix.shell#6024

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:40c1:0:b0:3bf:c407:28c8 with SMTP id f1-20020ac840c1000000b003bfc40728c8mr1310785qtm.11.1677426381041;
Sun, 26 Feb 2023 07:46:21 -0800 (PST)
X-Received: by 2002:a25:f90f:0:b0:914:fc5e:bbec with SMTP id
q15-20020a25f90f000000b00914fc5ebbecmr6027975ybe.13.1677426380780; Sun, 26
Feb 2023 07:46:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sun, 26 Feb 2023 07:46:20 -0800 (PST)
In-Reply-To: <ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=60.249.28.132; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 60.249.28.132
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <814a06db-b225-4ae5-9624-7dafd099d7cfn@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sun, 26 Feb 2023 15:46:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2600
 by: hongy...@gmail.com - Sun, 26 Feb 2023 15:46 UTC

On Sunday, February 26, 2023 at 11:14:21 PM UTC+8, Kees Nuyt wrote:
> On Sun, 26 Feb 2023 00:47:01 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> >On my computer, I noticed the following processes information:
> >
> > $ pgrep -af f4f4a488c740adc8
> > 3423257 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014
> > 3423263 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1487_f4f4a488c740adc80e1e4c43d81a14da.json -l 10014
> >
> > As you can see, there are two processes listening
> > on the same port. On the other hand, if I kill
> > one of them, both will be terminated.
> This pgrep output does not prove these sslocal processes are
> listening on the same port. It just says they are started with
> the same -l parameter.
>
> Two processes _can_ listen on the same portnumber on _different
> interfaces_.

What might be the purpose of this? Can you give some similar examples?

> > Why do these processes work this way?
> > Why are they listening on the same port at the same time?
> You'll have to study the documentation of sslocal, and/or ask
> the author(s).
>
> --
> Kees Nuyt

Best,
Zhao

Re: Multiple processes listening on the same port.

<rq3ovhl5gt9qak3n6hd5m2vk3aqlemf8nb@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6025&group=comp.unix.shell#6025

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Mon, 27 Feb 2023 03:10:24 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <rq3ovhl5gt9qak3n6hd5m2vk3aqlemf8nb@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl> <814a06db-b225-4ae5-9624-7dafd099d7cfn@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 16
Injection-Date: Mon, 27 Feb 2023 03:10:25 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1240
 by: Kees Nuyt - Mon, 27 Feb 2023 02:10 UTC

On Sun, 26 Feb 2023 07:46:20 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

> Kees Nuyt wrote:
>> Two processes _can_ listen on the same portnumber on _different
>> interfaces_.
>
> What might be the purpose of this? Can you give some similar examples?

I have no idea, but it is possible.
Check with
sudo netstat -lntp
what your sslocal processes are actually doing.
--
Kees Nuyt

Re: Multiple processes listening on the same port.

<3ec39754-35f0-4c97-8ff4-4eae73ec181dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6026&group=comp.unix.shell#6026

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:405b:0:b0:3bd:142a:cb21 with SMTP id j27-20020ac8405b000000b003bd142acb21mr4729928qtl.0.1677485748472;
Mon, 27 Feb 2023 00:15:48 -0800 (PST)
X-Received: by 2002:a05:690c:681:b0:533:a15a:d33e with SMTP id
bp1-20020a05690c068100b00533a15ad33emr7347707ywb.5.1677485748253; Mon, 27 Feb
2023 00:15:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Mon, 27 Feb 2023 00:15:48 -0800 (PST)
In-Reply-To: <rq3ovhl5gt9qak3n6hd5m2vk3aqlemf8nb@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ectmvh1v21dkje3sfh9ua38p0i4qova2n1@dim53.demon.nl> <814a06db-b225-4ae5-9624-7dafd099d7cfn@googlegroups.com>
<rq3ovhl5gt9qak3n6hd5m2vk3aqlemf8nb@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3ec39754-35f0-4c97-8ff4-4eae73ec181dn@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Mon, 27 Feb 2023 08:15:48 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2219
 by: hongy...@gmail.com - Mon, 27 Feb 2023 08:15 UTC

On Monday, February 27, 2023 at 10:10:31 AM UTC+8, Kees Nuyt wrote:
> On Sun, 26 Feb 2023 07:46:20 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
> > Kees Nuyt wrote:
> >> Two processes _can_ listen on the same portnumber on _different
> >> interfaces_.
> >
> > What might be the purpose of this? Can you give some similar examples?
> I have no idea, but it is possible.
> Check with
> sudo netstat -lntp
> what your sslocal processes are actually doing.

See the following:

werner@X10DAi:~$ sudo apt install net-tools
werner@X10DAi:~$ sudo netstat -lntp |grep 10014
tcp 0 0 0.0.0.0:10014 0.0.0.0:* LISTEN 239621/sslocal

In this way, only one process on each port returns in the command result.

> --
> Kees Nuyt

Regards,
Zhao

Re: Multiple processes listening on the same port.

<ttpg80$hna$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6027&group=comp.unix.shell#6027

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!not-for-mail
From: gerg@panix.com (gerg)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Thu, 2 Mar 2023 06:37:52 -0000 (UTC)
Organization: Public Access Networks Corp.
Message-ID: <ttpg80$hna$1@reader2.panix.com>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
Injection-Date: Thu, 2 Mar 2023 06:37:52 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="18154"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
 by: gerg - Thu, 2 Mar 2023 06:37 UTC

hongy...@gmail.com <hongyi.zhao@gmail.com> wrote:
>
>As you can see, there are two processes listening on the same port. On the other hand,
>if I kill one of them, both will be terminated. Why do these processes work this way?
>Why are they listening on the same port at the same time? Any tips for this behavior
>will be appreciated.
>

When you examine these two process ids and take into account each one's ppid
(parent process id), does it perhaps reveal these are a parent and child process?

--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright

Re: Multiple processes listening on the same port.

<c297cf8a-21e3-42ad-b7c6-d1ffb93a0aa5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6028&group=comp.unix.shell#6028

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:910:b0:56e:fbc3:2b86 with SMTP id dj16-20020a056214091000b0056efbc32b86mr182968qvb.6.1677822171213;
Thu, 02 Mar 2023 21:42:51 -0800 (PST)
X-Received: by 2002:a81:4424:0:b0:536:3c2c:bf5e with SMTP id
r36-20020a814424000000b005363c2cbf5emr180940ywa.8.1677822170852; Thu, 02 Mar
2023 21:42:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Thu, 2 Mar 2023 21:42:50 -0800 (PST)
In-Reply-To: <ttpg80$hna$1@reader2.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.42; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.42
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttpg80$hna$1@reader2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c297cf8a-21e3-42ad-b7c6-d1ffb93a0aa5n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Fri, 03 Mar 2023 05:42:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: hongy...@gmail.com - Fri, 3 Mar 2023 05:42 UTC

On Thursday, March 2, 2023 at 2:37:58 PM UTC+8, gerg wrote:
> hongy...@gmail.com <hongy...@gmail.com> wrote:
> >
> >As you can see, there are two processes listening on the same port. On the other hand,
> >if I kill one of them, both will be terminated. Why do these processes work this way?
> >Why are they listening on the same port at the same time? Any tips for this behavior
> >will be appreciated.
> >
> When you examine these two process ids and take into account each one's ppid
> (parent process id), does it perhaps reveal these are a parent and child process?

They have the same pgid, sid, and sgid, as shown below:

werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
68311 67948 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
68318 68311 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014


> --
> ::::::::::::: Greg Andrews ::::: ge...@panix.com :::::::::::::
> I have a map of the United States that's actual size.
> -- Steven Wright

Zhao

Re: Multiple processes listening on the same port.

<ttsce4$j9c9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6029&group=comp.unix.shell#6029

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Fri, 3 Mar 2023 09:51:16 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ttsce4$j9c9$1@dont-email.me>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Mar 2023 08:51:16 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="580403d0c84a61c752296c7000a08af7";
logging-data="632201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aUoGG+WURnT/SR0nCzuip"
Cancel-Lock: sha1:gm/lxpxx2xncEJGJjMwqVl8l9cg=
 by: Marco Moock - Fri, 3 Mar 2023 08:51 UTC

Am 26.02.2023 schrieb "hongy...@gmail.com" <hongyi.zhao@gmail.com>:

> As you can see, there are two processes listening on the same port.

That is possible if they don't use the same IP.
So 2 different processes can listen on TCP [2001:db::123]:80 and TCP
[2001:db::4444]:80.

Use ss -ltun to find more information.

Re: Multiple processes listening on the same port.

<9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6030&group=comp.unix.shell#6030

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ad4:5a0e:0:b0:571:e9d3:24a9 with SMTP id ei14-20020ad45a0e000000b00571e9d324a9mr1206425qvb.10.1677930701109;
Sat, 04 Mar 2023 03:51:41 -0800 (PST)
X-Received: by 2002:a05:6808:288:b0:37f:a6c0:108f with SMTP id
z8-20020a056808028800b0037fa6c0108fmr1598025oic.6.1677930700848; Sat, 04 Mar
2023 03:51:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 4 Mar 2023 03:51:40 -0800 (PST)
In-Reply-To: <ttsce4$j9c9$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttsce4$j9c9$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 04 Mar 2023 11:51:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1935
 by: hongy...@gmail.com - Sat, 4 Mar 2023 11:51 UTC

On Friday, March 3, 2023 at 4:51:22 PM UTC+8, Marco Moock wrote:
> Am 26.02.2023 schrieb "hongy...@gmail.com" <hongy...@gmail.com>:
>
> > As you can see, there are two processes listening on the same port.
> That is possible if they don't use the same IP.
> So 2 different processes can listen on TCP [2001:db::123]:80 and TCP
> [2001:db::4444]:80.
>
> Use ss -ltun to find more information.

See the following for more details:

werner@X10DAi:~$ ss -ltun | grep '10014'
udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:*
tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:*

Regards,
Zhao

Re: Multiple processes listening on the same port.

<hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6031&group=comp.unix.shell#6031

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Sat, 04 Mar 2023 13:29:01 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttpg80$hna$1@reader2.panix.com> <c297cf8a-21e3-42ad-b7c6-d1ffb93a0aa5n@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 29
Injection-Date: Sat, 04 Mar 2023 13:29:01 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2111
 by: Kees Nuyt - Sat, 4 Mar 2023 12:29 UTC

On Thu, 2 Mar 2023 21:42:50 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

>
>They have the same pgid, sid, and sgid, as shown below:
>
>werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> 68311 67948 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> 68318 68311 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014

So, process 68318 was started by 68311.

This is a common construct:
The parent process (68311 in this case) does not handle
anything, it just spawns a child process (68318). That child
does the heavy lifting. If the child crashes, the parent spawns
a new one. In that case the child listens on the port.

There are other constructs, where the parent listens on the port
and spawns one or more child ("worker") processes to handle
incomin requests. The parent just mamages the request queue.

I don't know what happens here. As I said before, you have to
consult the sslocal documentation.
Ok, enough keywords there for you to search for mor elaborate
descriptions.
--
Kees Nuyt

Re: Multiple processes listening on the same port.

<uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6032&group=comp.unix.shell#6032

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Sat, 04 Mar 2023 13:36:04 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 17
Injection-Date: Sat, 04 Mar 2023 13:36:04 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1344
 by: Kees Nuyt - Sat, 4 Mar 2023 12:36 UTC

On Sat, 4 Mar 2023 03:51:40 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

>> Use ss -ltun to find more information.
>
> See the following for more details:
>
> werner@X10DAi:~$ ss -ltun | grep '10014'
> udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:*
> tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:*

Now, add the -p option to see if udp and tcp are served by the
same process:
sudo ss -ltunp
--
Kees Nuyt

Re: Multiple processes listening on the same port.

<d0c3b5c8-d010-4233-94a7-9bf406fa7589n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6033&group=comp.unix.shell#6033

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:162c:b0:56f:8e7:86de with SMTP id e12-20020a056214162c00b0056f08e786demr1313820qvw.4.1677933848290;
Sat, 04 Mar 2023 04:44:08 -0800 (PST)
X-Received: by 2002:a05:6870:5a91:b0:16e:93b3:207c with SMTP id
dt17-20020a0568705a9100b0016e93b3207cmr1635786oab.3.1677933848068; Sat, 04
Mar 2023 04:44:08 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 4 Mar 2023 04:44:07 -0800 (PST)
In-Reply-To: <hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttpg80$hna$1@reader2.panix.com> <c297cf8a-21e3-42ad-b7c6-d1ffb93a0aa5n@googlegroups.com>
<hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d0c3b5c8-d010-4233-94a7-9bf406fa7589n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 04 Mar 2023 12:44:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2904
 by: hongy...@gmail.com - Sat, 4 Mar 2023 12:44 UTC

On Saturday, March 4, 2023 at 8:29:07 PM UTC+8, Kees Nuyt wrote:
> On Thu, 2 Mar 2023 21:42:50 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> >
> >They have the same pgid, sid, and sgid, as shown below:
> >
> >werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> > 68311 67948 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> > 68318 68311 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> So, process 68318 was started by 68311.
>
> This is a common construct:
> The parent process (68311 in this case) does not handle
> anything, it just spawns a child process (68318). That child
> does the heavy lifting. If the child crashes, the parent spawns
> a new one. In that case the child listens on the port.
>
> There are other constructs, where the parent listens on the port
> and spawns one or more child ("worker") processes to handle
> incomin requests. The parent just mamages the request queue.
>
> I don't know what happens here. As I said before, you have to
> consult the sslocal documentation.
> Ok, enough keywords there for you to search for mor elaborate
> descriptions.

Nice comments and explanations. Thank you very much.

> --
> Kees Nuyt

Zhao

Re: Multiple processes listening on the same port.

<055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6034&group=comp.unix.shell#6034

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:1e98:0:b0:3bf:ba0f:dfdf with SMTP id c24-20020ac81e98000000b003bfba0fdfdfmr1331872qtm.4.1677933924858;
Sat, 04 Mar 2023 04:45:24 -0800 (PST)
X-Received: by 2002:a05:6830:2468:b0:68b:cd1e:1ef1 with SMTP id
x40-20020a056830246800b0068bcd1e1ef1mr1479744otr.7.1677933924639; Sat, 04 Mar
2023 04:45:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 4 Mar 2023 04:45:24 -0800 (PST)
In-Reply-To: <uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
<uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 04 Mar 2023 12:45:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2736
 by: hongy...@gmail.com - Sat, 4 Mar 2023 12:45 UTC

On Saturday, March 4, 2023 at 8:36:09 PM UTC+8, Kees Nuyt wrote:
> On Sat, 4 Mar 2023 03:51:40 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> >> Use ss -ltun to find more information.
> >
> > See the following for more details:
> >
> > werner@X10DAi:~$ ss -ltun | grep '10014'
> > udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:*
> > tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:*
> Now, add the -p option to see if udp and tcp are served by the
> same process:
> sudo ss -ltunp

See the following:

werner@X10DAi:~$ ss -ltunp | grep '10014'
udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=4))
tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=3))
werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
3123709 3123347 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
3123715 3123709 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014

> --
> Kees Nuyt

Best,
Zhao

Re: Multiple processes listening on the same port.

<e431def8-8387-4ddd-8431-138fd1d2ba59n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6035&group=comp.unix.shell#6035

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ae9:f109:0:b0:742:76a6:8e90 with SMTP id k9-20020ae9f109000000b0074276a68e90mr1331724qkg.14.1677934382196;
Sat, 04 Mar 2023 04:53:02 -0800 (PST)
X-Received: by 2002:a9d:6115:0:b0:693:e03f:a027 with SMTP id
i21-20020a9d6115000000b00693e03fa027mr1445159otj.0.1677934382019; Sat, 04 Mar
2023 04:53:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 4 Mar 2023 04:53:01 -0800 (PST)
In-Reply-To: <hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttpg80$hna$1@reader2.panix.com> <c297cf8a-21e3-42ad-b7c6-d1ffb93a0aa5n@googlegroups.com>
<hjb60i984u1f5eff3et8u6djit0uvonpv2@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e431def8-8387-4ddd-8431-138fd1d2ba59n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 04 Mar 2023 12:53:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3008
 by: hongy...@gmail.com - Sat, 4 Mar 2023 12:53 UTC

On Saturday, March 4, 2023 at 8:29:07 PM UTC+8, Kees Nuyt wrote:
> On Thu, 2 Mar 2023 21:42:50 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> >
> >They have the same pgid, sid, and sgid, as shown below:
> >
> >werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> > 68311 67948 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> > 68318 68311 67948 64750 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> So, process 68318 was started by 68311.
>
> This is a common construct:
> The parent process (68311 in this case) does not handle
> anything, it just spawns a child process (68318). That child
> does the heavy lifting. If the child crashes, the parent spawns
> a new one. In that case the child listens on the port.

I noticed that if I killed the child process (68318 in this case), both processes will be terminated. I'm not sure whether this is consistent with your above analysis.
> There are other constructs, where the parent listens on the port
> and spawns one or more child ("worker") processes to handle
> incomin requests. The parent just mamages the request queue.
>
> I don't know what happens here. As I said before, you have to
> consult the sslocal documentation.
> Ok, enough keywords there for you to search for mor elaborate
> descriptions.
> --
> Kees Nuyt

Re: Multiple processes listening on the same port.

<a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6039&group=comp.unix.shell#6039

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Sun, 05 Mar 2023 19:01:13 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com> <uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl> <055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 21
Injection-Date: Sun, 05 Mar 2023 19:01:14 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1931
 by: Kees Nuyt - Sun, 5 Mar 2023 18:01 UTC

On Sat, 4 Mar 2023 04:45:24 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

>> Now, add the -p option to see if udp and tcp are served by the
>> same process:
>> sudo ss -ltunp
>
>See the following:
>
> werner@X10DAi:~$ ss -ltunp | grep '10014'
> udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=4))
> tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=3))
> werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> 3123709 3123347 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> 3123715 3123709 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014

Ok, there you are, that's clear. And what does the sslocal docs
tell you?
--
Kees Nuyt

Re: Multiple processes listening on the same port.

<tu2og8$1dobo$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6041&group=comp.unix.shell#6041

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Sun, 5 Mar 2023 11:53:36 -0700
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <tu2og8$1dobo$1@dont-email.me>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttsce4$j9c9$1@dont-email.me>
<9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Mar 2023 18:54:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="1025ad9c932a19a95e23aa7dd71a2ce4";
logging-data="1499512"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uziKbKO90Jt+xcj2lpFcImbZjilYMMow="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:yXqENCtqAWtX6p3K1MvH4QtXso4=
Content-Language: en-US
In-Reply-To: <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
 by: Grant Taylor - Sun, 5 Mar 2023 18:53 UTC

Port numbers are not the same thing as sockets.

You can easily have different processes listen to the same port number
on different protocols (UDP vs TCP) and / or different IPs.

On 3/4/23 4:51 AM, hongy...@gmail.com wrote:
> werner@X10DAi:~$ ss -ltun | grep '10014'
> udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:*
> tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:*

This shows two different sockets. Both are listening on port 10014 on
all IPs. However one is on UDP and the other is on TCP.

It is also possible for a process to listen to multiple sockets.

There are also some provisions to pass a connection on a socket from a
parent process to a child process.

I think that there are some VERY SPECIAL things that can be done to have
two separate processes listen to the same socket (protocol / address /
port) but it requires VERY SPECIAL provisions including both processes
have to explicitly support it and I believe that the kernel has to
support it. -- I can't think of an example where I've seen two
different and unrelated processes listening on the same socket.

N.B. that things like `sslh` don't violate this precept because sslh is
the process listening on the socket and passing / proxying traffic to
the other processes listening on different sockets.

--
Grant. . . .
unix || die

Re: Multiple processes listening on the same port.

<57e60ad6-2c14-411b-af35-b8c31a33a2a0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6050&group=comp.unix.shell#6050

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:7006:0:b0:3bf:e265:9bf with SMTP id x6-20020ac87006000000b003bfe26509bfmr2999270qtm.5.1678089939345;
Mon, 06 Mar 2023 00:05:39 -0800 (PST)
X-Received: by 2002:a05:6808:9a4:b0:383:e27a:34ca with SMTP id
e4-20020a05680809a400b00383e27a34camr3136488oig.4.1678089939044; Mon, 06 Mar
2023 00:05:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Mon, 6 Mar 2023 00:05:38 -0800 (PST)
In-Reply-To: <a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=62.192.153.49; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 62.192.153.49
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
<uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl> <055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com>
<a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <57e60ad6-2c14-411b-af35-b8c31a33a2a0n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Mon, 06 Mar 2023 08:05:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2730
 by: hongy...@gmail.com - Mon, 6 Mar 2023 08:05 UTC

On Monday, March 6, 2023 at 2:01:36 AM UTC+8, Kees Nuyt wrote:
> On Sat, 4 Mar 2023 04:45:24 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> >> Now, add the -p option to see if udp and tcp are served by the
> >> same process:
> >> sudo ss -ltunp
> >
> >See the following:
> >
> > werner@X10DAi:~$ ss -ltunp | grep '10014'
> > udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=4))
> > tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=3))
> > werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> > 3123709 3123347 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> > 3123715 3123709 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> Ok, there you are, that's clear. And what does the sslocal docs
> tell you?

TBF, I don't know. This is a program that stopped developing many years ago, and its documentation is not friendly.

> --
> Kees Nuyt

Zhao

Re: Multiple processes listening on the same port.

<qq3c0ip4p97l5p7uc2kid35qguvqt610ui@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6051&group=comp.unix.shell#6051

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Multiple processes listening on the same port.
Date: Mon, 06 Mar 2023 17:14:39 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <qq3c0ip4p97l5p7uc2kid35qguvqt610ui@dim53.demon.nl>
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com> <ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com> <uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl> <055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com> <a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl> <57e60ad6-2c14-411b-af35-b8c31a33a2a0n@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 30
Injection-Date: Mon, 06 Mar 2023 17:14:40 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2460
 by: Kees Nuyt - Mon, 6 Mar 2023 16:14 UTC

On Mon, 6 Mar 2023 00:05:38 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

>On Monday, March 6, 2023 at 2:01:36?AM UTC+8, Kees Nuyt wrote:
>> On Sat, 4 Mar 2023 04:45:24 -0800 (PST), "hongy...@gmail.com"
>> <hongy...@gmail.com> wrote:
>>
>> >> Now, add the -p option to see if udp and tcp are served by the
>> >> same process:
>> >> sudo ss -ltunp
>> >
>> >See the following:
>> >
>> > werner@X10DAi:~$ ss -ltunp | grep '10014'
>> > udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=4))
>> > tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=3))
>> > werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
>> > 3123709 3123347 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
>> > 3123715 3123709 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
>> Ok, there you are, that's clear. And what does the sslocal docs
>> tell you?
>
> TBF, I don't know. This is a program that stopped developing
> many years ago, and its documentation is not friendly.

It was brought to my attention that this subject is off-topic in
comp.unix.shell , so I declare this END-OF-THREAD
--
Kees Nuyt

Re: Multiple processes listening on the same port.

<99cef216-2466-4aef-b1ad-4fe64d01e1d4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=6073&group=comp.unix.shell#6073

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:8d5:b0:746:7b53:ff08 with SMTP id z21-20020a05620a08d500b007467b53ff08mr8384069qkz.1.1680403983714;
Sat, 01 Apr 2023 19:53:03 -0700 (PDT)
X-Received: by 2002:a05:6870:1294:b0:17a:b31c:9e1e with SMTP id
20-20020a056870129400b0017ab31c9e1emr10283808oal.1.1680403983419; Sat, 01 Apr
2023 19:53:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 1 Apr 2023 19:53:03 -0700 (PDT)
In-Reply-To: <qq3c0ip4p97l5p7uc2kid35qguvqt610ui@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:e82:d400:f0cd:3e94:3be2:6c56;
posting-account=rR5tnAoAAAC2kIBHWh0n6frMCTGowyvE
NNTP-Posting-Host: 2600:1700:e82:d400:f0cd:3e94:3be2:6c56
References: <7b74f051-3c94-42eb-87d9-a5960504b268n@googlegroups.com>
<ttsce4$j9c9$1@dont-email.me> <9d1f47cc-8f7a-46d6-8635-7815da24b72fn@googlegroups.com>
<uje60i9jrjdp3likrhuo17aiqhikr6j2k9@dim53.demon.nl> <055eb1b6-9ec0-49e8-ae23-32afa0a403c5n@googlegroups.com>
<a4m90ihqmottafdmvnt6epoicns81g5tq4@dim53.demon.nl> <57e60ad6-2c14-411b-af35-b8c31a33a2a0n@googlegroups.com>
<qq3c0ip4p97l5p7uc2kid35qguvqt610ui@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <99cef216-2466-4aef-b1ad-4fe64d01e1d4n@googlegroups.com>
Subject: Re: Multiple processes listening on the same port.
From: jalenq81@gmail.com (Jalen Q)
Injection-Date: Sun, 02 Apr 2023 02:53:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 35
 by: Jalen Q - Sun, 2 Apr 2023 02:53 UTC

On Monday, March 6, 2023 at 10:14:46 AM UTC-6, Kees Nuyt wrote:
> On Mon, 6 Mar 2023 00:05:38 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
> >On Monday, March 6, 2023 at 2:01:36?AM UTC+8, Kees Nuyt wrote:
> >> On Sat, 4 Mar 2023 04:45:24 -0800 (PST), "hongy...@gmail.com"
> >> <hongy...@gmail.com> wrote:
> >>
> >> >> Now, add the -p option to see if udp and tcp are served by the
> >> >> same process:
> >> >> sudo ss -ltunp
> >> >
> >> >See the following:
> >> >
> >> > werner@X10DAi:~$ ss -ltunp | grep '10014'
> >> > udp UNCONN 0 0 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=4))
> >> > tcp LISTEN 0 1024 0.0.0.0:10014 0.0.0.0:* users:(("sslocal",pid=3123715,fd=3))
> >> > werner@X10DAi:~$ ps xao pid,ppid,pgid,sid,sgid,command | grep ' -l 10014' |grep -v grep
> >> > 3123709 3123347 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> >> > 3123715 3123709 3123347 3119533 1000 sslocal -c /home/werner/Public/anti-gfw/conf/ssr2json/ssr/US_ssr_eebzkdao.nodelist.xyz_1381_1421cc147ea4bb31049aea01851aac7e.json -l 10014
> >> Ok, there you are, that's clear. And what does the sslocal docs
> >> tell you?
> >
> > TBF, I don't know. This is a program that stopped developing
> > many years ago, and its documentation is not friendly.
> It was brought to my attention that this subject is off-topic in
> comp.unix.shell , so I declare this END-OF-THREAD
> --
> Kees Nuyt
fggggggtguttututttut8tttftytttffyy

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor