Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187438

Re: Free TCP/IP port numbers?

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Free TCP/IP port numbers?
Date 2017-10-01 09:40 +0200
Message-ID <uvH0Z-7A2-3@gated-at.bofh.it> (permalink)
References <uvB5f-3Fc-1@gated-at.bofh.it> <uvBHX-3TN-1@gated-at.bofh.it> <uvCaZ-4qS-1@gated-at.bofh.it> <uvEZc-6k6-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Oct 01, 2017 at 01:28:39AM -0400, Gene Heskett wrote:

[...]

> > > Assuring that my port is not in this IANA list is not enough to
> > > ensure that my port number will not clash with a port number used by
> > > a Debian package (by default).
> > >
> > > So your answer to my question is wrong.
> > >
> In which case debian should publish the unlisted ports they do use, if 
> for no other reason than to "stake a claim".

"Debian" "should". Gene, you "should" know better ;-)

Want to start with it? Write a script which scans the /etc files in all
Debian packages for network configurations.

What else have folks forgotten here?

 - dynamic port assignments (X, rpc/portmapper: the last is known for
   having conflicted with CUPS in some distant past).

 - semi-dynamic things (e.g. Debian's way to migrate PostgreSQL)

Unfortunately, there's no "perfect" solution for the OP's problem (among
other things because there are other people having the same problem and
solving it the same way).

My advice: start with /etc/services. Find a suitable "hole", far away
from others (note that typical "dynamic" or "semi-dynamic" assignments
tend to cluster around canonical values, e.g. PostgreSQL: 5432, 5433,
5434...). Plan for collissions (this might be something as complicated
as re-trying ports until success plus some "registry" to look up where
things ended or something as simple as "notify the sysadmin", lest she
spends a night debugging the bugger).

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlnQmnsACgkQBcgs9XrR2kaCagCfU0izg1thGPq5ld8AP/fTx1wl
dVoAn3Vyowm/w7h6fpw9AS5oxPsis9KX
=vtzF
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Free TCP/IP port numbers? Victor Porton <porton@narod.ru> - 2017-10-01 03:20 +0200
  Re: Free TCP/IP port numbers? "Alexander V. Makartsev" <avbetev@gmail.com> - 2017-10-01 03:30 +0200
    Re: Free TCP/IP port numbers? Victor Porton <porton@narod.ru> - 2017-10-01 04:00 +0200
      Re: Free TCP/IP port numbers? "Alexander V. Makartsev" <avbetev@gmail.com> - 2017-10-01 04:30 +0200
        Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-01 07:30 +0200
          Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 09:40 +0200
            Re: Free TCP/IP port numbers? tomas@tuxteam.de - 2017-10-01 09:50 +0200
            Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-01 13:50 +0200
              Re: Free TCP/IP port numbers? Reco <recoverym4n@gmail.com> - 2017-10-01 14:20 +0200
                Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 15:00 +0200
                Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-01 15:50 +0200
                Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 16:20 +0200
                Re: Free TCP/IP port numbers? Reco <recoverym4n@gmail.com> - 2017-10-01 16:50 +0200
                Re: Free TCP/IP port numbers? rhkramer@gmail.com - 2017-10-02 23:10 +0200
                Re: Free TCP/IP port numbers? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-10-02 23:10 +0200
                Re: Free TCP/IP port numbers? Reco <recoverym4n@gmail.com> - 2017-10-02 23:30 +0200
                Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-01 16:50 +0200
                Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 17:00 +0200
                Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-01 17:40 +0200
                Grep's "ignore binry files" option [was: Free TCP/IP port numbers?] <tomas@tuxteam.de> - 2017-10-01 18:00 +0200
                Re: Grep's "ignore binry files" option [was: Free TCP/IP port numbers?] Gene Heskett <gheskett@shentel.net> - 2017-10-01 18:40 +0200
              Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 14:50 +0200
              Re: Free TCP/IP port numbers? Dan Purgert <dan@djph.net> - 2017-10-02 12:30 +0200
      Re: Free TCP/IP port numbers? shawn wilson <ag4ve.us@gmail.com> - 2017-10-01 04:40 +0200
        Re: Free TCP/IP port numbers? Dan Purgert <dan@djph.net> - 2017-10-02 12:30 +0200
          Re: Free TCP/IP port numbers? Michael Stone <mstone@debian.org> - 2017-10-02 12:50 +0200
  Re: Free TCP/IP port numbers? deloptes <deloptes@gmail.com> - 2017-10-01 10:00 +0200
  Re: Free TCP/IP port numbers? <tomas@tuxteam.de> - 2017-10-01 15:00 +0200
  Re: Free TCP/IP port numbers? Victor Porton <porton@narod.ru> - 2017-10-01 15:00 +0200
    Re: Free TCP/IP port numbers? Michael Stone <mstone@debian.org> - 2017-10-01 15:20 +0200
    Re: Free TCP/IP port numbers? Nicholas Geovanis <nickgeovanis@gmail.com> - 2017-10-04 16:50 +0200
  Re: Free TCP/IP port numbers? Gene Heskett <gheskett@shentel.net> - 2017-10-02 23:00 +0200
    Re: Free TCP/IP port numbers? Reco <recoverym4n@gmail.com> - 2017-10-02 23:30 +0200

csiph-web