Sync from SUSE:SLFO:Main netcfg revision 7170f53fe758722f8eca1fa369f2e8e3

This commit is contained in:
Adrian Schröter 2024-05-03 16:59:31 +02:00
commit 02ba0ea967
19 changed files with 2217 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

30
COPYING Normal file
View File

@ -0,0 +1,30 @@
Copyright (c) 2000-2011, Novell, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Novell nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

91
aliases Normal file
View File

@ -0,0 +1,91 @@
# This is the aliases file - it says who gets mail for whom.
#
# >>>>>>>>>> The program "newaliases" will need to be run
# >> NOTE >> after this file is updated for any changes
# >>>>>>>>>> to show through to sendmail.
#
# It is probably best to not work as user root and redirect all
# email to "root" to the address of a HUMAN who deals with this
# system's problems. Then you don't have to check for important
# email too often on the root account.
# The "\root" will make sure that email is also delivered to the
# root-account, but also forwared to the user "joe".
#root: joe, \root
# Basic system aliases that MUST be present.
postmaster: root
mailer-daemon: postmaster
# amavis
virusalert: root
# General redirections for pseudo accounts in /etc/passwd.
administrator: root
daemon: root
lp: root
news: root
uucp: root
games: root
man: root
at: root
postgres: root
mdom: root
amanda: root
ftp: root
wwwrun: root
squid: root
msql: root
gnats: root
nobody: root
# "bin" used to be in /etc/passwd
bin: root
# Further well-known aliases for dns/news/ftp/mail/fax/web/gnats.
newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
hostmaster: root
mail: postmaster
postman: postmaster
post_office: postmaster
# "abuse" is often used to fight against spam email
abuse: postmaster
spam: postmaster
faxadm: root
faxmaster: root
webmaster: root
gnats-admin: root
mailman: root
mailman-owner: mailman
# mlmmj needs only one alias to function; this is with a mailinglist in
# /var/spool/mlmmj/myownlist (remember full path):
# myownlist: "| /usr/bin/mlmmj-recieve -L /var/spool/mlmmj/myownlist"
# Majordomo can be used to have mailinglists on your site.
#majordomo: "|/usr/lib/majordomo/wrapper majordomo"
#owner-majordomo: root,
#majordomo-owner: root,
# sample entry for a majordomo mailing-list called "test"
# read /usr/doc/packages/majordomo/README.linux for more information
# replace "test" with a new name and put the administrator into
# the "owner-test" alias instead of "root".
#
#test: "|/usr/lib/majordomo/wrapper resend -l test test-outgoing"
#test-outgoing: :include:/var/lib/majordomo/lists/test
#test-request: "|/usr/lib/majordomo/wrapper majordomo -l test"
#test-approval: owner-test,
#owner-test-outgoing: owner-test,
#owner-test-request: owner-test,
#owner-test: root,
#
# if you have bulk_mailer installed, you can replace the above
# "test-outgoing" line with the following:
#test-outgoing: "|/usr/bin/bulk_mailer owner-test@host.com /var/lib/majordomo/lists/test"
#

39
ethertypes Normal file
View File

@ -0,0 +1,39 @@
#
# Ethernet frame types
# This file describes some of the various Ethernet
# protocol types that are used on Ethernet networks.
#
# This list could be found on:
# http://www.iana.org/assignments/ethernet-numbers
# http://www.iana.org/assignments/ieee-802-numbers
#
# <name> <hexnumber> <alias1>...<alias35> #Comment
#
IPv4 0800 ip ip4 # Internet IP (IPv4)
X25 0805
ARP 0806 ether-arp #
FR_ARP 0808 # Frame Relay ARP [RFC1701]
BPQ 08FF # G8BPQ AX.25 Ethernet Packet
DEC 6000 # DEC Assigned proto
DNA_DL 6001 # DEC DNA Dump/Load
DNA_RC 6002 # DEC DNA Remote Console
DNA_RT 6003 # DEC DNA Routing
LAT 6004 # DEC LAT
DIAG 6005 # DEC Diagnostics
CUST 6006 # DEC Customer use
SCA 6007 # DEC Systems Comms Arch
TEB 6558 # Trans Ether Bridging [RFC1701]
RAW_FR 6559 # Raw Frame Relay [RFC1701]
RARP 8035 # Reverse ARP [RFC903]
AARP 80F3 # Appletalk AARP
ATALK 809B # Appletalk
802_1Q 8100 8021q 1q 802.1q dot1q # 802.1Q Virtual LAN tagged frame
IPX 8137 # Novell IPX
NetBEUI 8191 # NetBEUI
IPv6 86DD ip6 # IP version 6
PPP 880B # PPP
ATMMPOA 884C # MultiProtocol over ATM
PPP_DISC 8863 # PPPoE discovery messages
PPP_SES 8864 # PPPoE session messages
ATMFATE 8884 # Frame-based ATM Transport over Ethernet
LOOP 9000 loopback # loop proto

6
exports Normal file
View File

@ -0,0 +1,6 @@
# See the exports(5) manpage for a description of the syntax of this file.
# This file contains a list of all directories that are to be exported to
# other computers via NFS (Network File System).
# This file used by rpc.nfsd and rpc.mountd. See their manpages for details
# on how make changes in this file effective.

1
get_version_number.sh Normal file
View File

@ -0,0 +1 @@
echo ${BUILD_DISTRIBUTION_VERSION%-*}

6
host.conf Normal file
View File

@ -0,0 +1,6 @@
#
# /etc/host.conf - resolver configuration file
#
# Please read the manual page host.conf(5) for more information.
#
multi on

0
hostname Normal file
View File

22
hosts Normal file
View File

@ -0,0 +1,22 @@
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain ipv6-localhost ipv6-loopback
# special IPv6 addresses
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

924
netcfg.changes Normal file
View File

@ -0,0 +1,924 @@
-------------------------------------------------------------------
Tue Nov 21 08:39:54 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Fix syntax of localhost entries in hosts [bsc#1217355]
-------------------------------------------------------------------
Mon Nov 20 14:00:02 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Remove empty netgroup example file from /etc [jsc#PED-240].
NIS, the main consumer, got already dropped.
- Remove empty ethers example file, /usr/etc should not contain
examples, for the format there is the manual page, does not
support IPv6.
-------------------------------------------------------------------
Wed Oct 4 09:45:23 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Remove ftpusers, none of our ftp servers uses that anymore
- Remove defaultdomain, NIS got dropped
-------------------------------------------------------------------
Tue Sep 26 16:19:47 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Remove hosts.equiv and hosts.lpd, the tools using them got
dropped long ago.
-------------------------------------------------------------------
Tue Oct 11 09:33:40 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
- Remove hosts.allow and hosts.deny config files as they are only
used by tcpd, which is not installed by default, bsc#1099755
-------------------------------------------------------------------
Mon Jul 19 13:59:22 UTC 2021 - Danilo Spinella <danilo.spinella@suse.com>
- Add localhost.localdomain fallback hostname used by NetworkManager
(bsc#1177835).
-------------------------------------------------------------------
Thu Feb 18 07:40:58 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- services-create.pl: Switch to https (bsc#1182395)
-------------------------------------------------------------------
Mon May 18 07:58:08 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Create /etc/exports.d directory (boo#1094328)
-------------------------------------------------------------------
Wed Feb 5 08:52:35 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Require libnss_usrfiles2 for /usr/etc [bnc#1162666]
-------------------------------------------------------------------
Tue Jan 28 20:15:47 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Re-add host.conf with fixed comments, only remove libc 4/5
comments/entries.
-------------------------------------------------------------------
Fri Dec 6 08:41:17 UTC 2019 - Thorsten Kukuk <kukuk@suse.com>
- Remove host.conf, nothing is using that anymore
-------------------------------------------------------------------
Mon Aug 19 16:16:41 CEST 2019 - kukuk@suse.de
- Move ethers, networks, protocols and services to /usr/etc
-------------------------------------------------------------------
Wed Apr 17 09:25:24 CEST 2019 - kukuk@suse.de
- Remove pre/post install to get rid of coreutils dependency.
We don't support upgrading of this old code anymore and coreutils
is not wanted in busybox containers.
- Update services.bz2
-------------------------------------------------------------------
Wed Sep 12 08:18:06 UTC 2018 - Thorsten Kukuk <kukuk@suse.de>
- Don't create /etc/HOSTNAME symlink anymore, the expected content
is slightly different from /etc/hostname [bsc#972463]
-------------------------------------------------------------------
Mon Jul 2 09:40:31 UTC 2018 - tchvatal@suse.com
- Tell users to really install tcpd if they expects hosts.* to work
bsc#1099755
-------------------------------------------------------------------
Thu Feb 22 16:15:08 UTC 2018 - matthias.gerstner@suse.com
- Include /etc/ethertypes to resolve a conflict between
security:netfilter/ebtables and security:netfilter/iptables-nft. This
ethertypes version comes from iptables, because it contains an additional
entry over the ebtables one. Increased minor version to allow a suitable
Requires statement in ebtables/iptables. FATE#320520
-------------------------------------------------------------------
Thu Feb 22 15:10:41 UTC 2018 - fvogt@suse.com
- Use %license (boo#1082318)
-------------------------------------------------------------------
Tue Mar 7 09:57:12 UTC 2017 - tchvatal@suse.com
- Update script to generage services to use UTF8 by default bsc#1028305
- Update the services list with latest content
-------------------------------------------------------------------
Tue Jan 5 10:09:05 UTC 2016 - tchvatal@suse.com
- Repack services.bz2 with latest from upstream and adjust the script
to not add all the names+emails at the bottom bnc#959693
-------------------------------------------------------------------
Tue Aug 25 09:41:17 UTC 2015 - tchvatal@suse.com
- Do not actually replace the hostname if user already has something
in there. Thanks to Takashi Iwai for spotting this
-------------------------------------------------------------------
Tue Aug 4 07:47:22 UTC 2015 - tchvatal@suse.com
- Do not ghost the empty /etc/hostname to not break installationimages
pkg.
-------------------------------------------------------------------
Thu Jun 11 15:37:35 UTC 2015 - tchvatal@suse.com
- Keep /etc/hostname empty and %ghost it. bnc#934056
-------------------------------------------------------------------
Wed Dec 17 10:32:15 UTC 2014 - tchvatal@suse.com
- Try different approach to fix failing migration from 13.1.
This one is from locilka
-------------------------------------------------------------------
Wed Dec 17 10:19:29 UTC 2014 - tchvatal@suse.com
- Keep the condition posix as it is shorter :)
-------------------------------------------------------------------
Mon Dec 1 16:56:09 UTC 2014 - tchvatal@suse.com
- Spec-cleanify the previous commit.
-------------------------------------------------------------------
Mon Dec 1 16:37:41 UTC 2014 - tchvatal@suse.com
- Redo the HOSTNAME -> hostname migration to support smallest
possible step. Thus ensuring the migration is done just once and
finished:
# HOSTNAME migration supported scenarios [bnc#858908]:
# /etc/HOSTNAME -> /etc/hostname content preservation.
# If hostname and HOSTNAME both exist HOSTNAME wins.
# Nothing apart from content of the document is preserved
- Solves bnc#858908 and bnc#899506 while moves bnc#887039 to
unsupported scenarios.
-------------------------------------------------------------------
Mon Dec 1 16:26:03 UTC 2014 - tchvatal@suse.com
- Remove the socket check from the defaultdomain checker as it was
always false and thus not needed
- Add comment explaining the reason for the code
-------------------------------------------------------------------
Mon Dec 1 16:22:22 UTC 2014 - tchvatal@suse.com
- Drop the scriptlet for the netgroup handling. It was caused by
the aaa_base -> netcfg move, which I guess after 12 years is moot
-------------------------------------------------------------------
Thu Oct 2 18:49:01 UTC 2014 - pgajdos@suse.com
- fix %pre scriptlet [bnc#899506] (thanks to mls for the fix)
-------------------------------------------------------------------
Fri Jul 25 10:46:20 UTC 2014 - pgajdos@suse.com
- resolve some update scenarios [bnc#883999], [bnc#886443] (private)
with regard to /etc/HOSTNAME -> /etc/hostname change
-------------------------------------------------------------------
Wed Jun 11 08:47:56 UTC 2014 - pgajdos@suse.com
- move /etc/HOSTNAME to /etc/hostname during update
-------------------------------------------------------------------
Wed Jun 4 10:36:22 UTC 2014 - pgajdos@suse.com
- HOSTNAME renamed to hostname [bnc#858908]
-------------------------------------------------------------------
Thu Feb 6 16:30:09 UTC 2014 - pgajdos@suse.com
- added helper scripts and doc for creating services file to
Sources
-------------------------------------------------------------------
Tue Oct 29 12:26:30 UTC 2013 - pgajdos@suse.com
- /etc/protocols: assign 4 to ipv4 instead of ip to correspond with
IANA [bnc#843511] (internal)
-------------------------------------------------------------------
Thu Aug 22 14:42:10 UTC 2013 - pgajdos@suse.com
- updated to newer (not newest) version of IANA assignments
[bnc#831522], [bnc#731391] (both internal)
-------------------------------------------------------------------
Wed Jun 5 11:21:06 UTC 2013 - pgajdos@suse.com
- services: map sieve to 4190 instead of 2000 as upstream (IANA)
does
-------------------------------------------------------------------
Mon Mar 7 12:29:41 CET 2011 - ro@suse.de
- bump version to 11.5
-------------------------------------------------------------------
Thu Mar 3 14:12:42 CET 2011 - pgajdos@suse.cz
- added COPYING file (cfarrell@suse.de)
-------------------------------------------------------------------
Thu Nov 4 09:43:09 CET 2010 - pgajdos@suse.cz
- reverted rquotad port assigment [bnc#637382]
* modified services-suse.diff back to previous state
-------------------------------------------------------------------
Thu Oct 21 17:35:30 CEST 2010 - pgajdos@suse.cz
- assigned port 4003 to rquotad [bnc#637382]
* modified services-suse.diff
-------------------------------------------------------------------
Thu Oct 23 15:05:01 CEST 2008 - pgajdos@suse.cz
- commented out
spr-itunes 0/tcp # Shirt Pocket netTunes
spl-itunes 0/tcp # Shirt Pocket launchTunes
lines [bnc#435600]
-------------------------------------------------------------------
Mon Sep 8 11:11:41 CEST 2008 - pgajdos@suse.cz
- /etc/services and /etc/protocols was marked as %config(noreplace)
[bnc#422884]
-------------------------------------------------------------------
Tue Mar 25 15:32:25 CET 2008 - mkoenig@suse.de
- add rpcbind alias for sunrpc [fate#300607]
-------------------------------------------------------------------
Tue Mar 4 17:47:27 CET 2008 - pgajdos@suse.cz
- added swat 901/tcp back to the suse.patch [#362590]
-------------------------------------------------------------------
Mon Jan 28 14:06:22 CET 2008 - kukuk@suse.de
- Update services file from IANA [bnc#352665]
- Fix PreReqs
-------------------------------------------------------------------
Wed Oct 4 14:22:39 CEST 2006 - kukuk@suse.de
- Update services file from IANA
-------------------------------------------------------------------
Tue May 23 11:51:34 CEST 2006 - kukuk@suse.de
- Update protocols and services files from IANA
-------------------------------------------------------------------
Wed Jan 25 21:47:10 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Dec 14 22:22:58 CET 2005 - kukuk@suse.de
- Update services file
-------------------------------------------------------------------
Tue Sep 13 00:42:34 CEST 2005 - mmj@suse.de
- Readd the correct services file to patch
-------------------------------------------------------------------
Mon Sep 12 20:44:33 CEST 2005 - mmj@suse.de
- Add IANA official git port (9418) to services
-------------------------------------------------------------------
Thu Jul 7 08:55:41 CEST 2005 - kukuk@suse.de
- Update services file
-------------------------------------------------------------------
Tue Mar 8 16:06:29 CET 2005 - kukuk@suse.de
- Change comments to make peopleusing file wrongly happy [#71247]
-------------------------------------------------------------------
Wed Feb 23 09:14:33 CET 2005 - kukuk@suse.de
- Update /etc/services from IANA
-------------------------------------------------------------------
Tue May 11 18:49:51 CEST 2004 - mmj@suse.de
- Add example for mlmmj list in /etc/aliases
-------------------------------------------------------------------
Fri Apr 16 11:49:57 CEST 2004 - kukuk@suse.de
- Add smtps back again, got lost with last update
-------------------------------------------------------------------
Fri Apr 2 15:21:12 CEST 2004 - kukuk@suse.de
- Use linux.site instead of linux.local [Bug #36949]
-------------------------------------------------------------------
Wed Mar 31 14:44:50 CEST 2004 - mls@suse.de
- add link-local network
-------------------------------------------------------------------
Mon Mar 29 15:31:00 CEST 2004 - kukuk@suse.de
- Comment out shilp entry to make reading tcpdump output easier
[Bug #37359]
-------------------------------------------------------------------
Sun Feb 15 15:05:14 CET 2004 - kukuk@suse.de
- Update etc/services file with IANA version
-------------------------------------------------------------------
Mon Dec 1 13:41:24 CET 2003 - kukuk@suse.de
- Add etc/netgroup (moved from aaa_base)
-------------------------------------------------------------------
Thu Nov 13 23:09:10 CET 2003 - adrian@suse.de
- add registered services to service file
( sane, distcc, svn )
-------------------------------------------------------------------
Mon Sep 1 17:47:57 MEST 2003 - draht@suse.de
- added apcupsd daemons to /etc/hosts.allow (#29646)
-------------------------------------------------------------------
Fri Aug 15 13:54:18 CEST 2003 - kukuk@suse.de
- Make rpm -V quiet
-------------------------------------------------------------------
Tue May 13 08:53:21 CEST 2003 - kukuk@suse.de
- Remove inetd.conf, is now part of inetd package
-------------------------------------------------------------------
Thu Apr 24 13:32:04 CEST 2003 - olh@suse.de
- run tftp via tcpd, not in.tftpd
-------------------------------------------------------------------
Tue Apr 15 14:57:31 CEST 2003 - ro@suse.de
- change version numbering
-------------------------------------------------------------------
Tue Apr 15 12:19:06 CEST 2003 - arvin@suse.de
- added pop3s and imaps services to inetd.conf (bug #26281)
-------------------------------------------------------------------
Tue Mar 11 21:36:57 CET 2003 - kukuk@suse.de
- Add aaa_base to PreReq. to fix update problems [Bug #25102]
-------------------------------------------------------------------
Thu Feb 13 11:24:18 CET 2003 - meissner@suse.de
- Add VNC httpd and 2 VNC display ports, which start Xvnc on demand.
-------------------------------------------------------------------
Mon Jan 27 10:57:57 CET 2003 - kukuk@suse.de
- Add etc/ethers [Bug #23016]
-------------------------------------------------------------------
Thu Oct 24 09:44:07 CEST 2002 - kukuk@suse.de
- etc/services: Add lotusnotes alias to lotusnote [Bug #21145]
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Wed Sep 4 14:20:32 CEST 2002 - kukuk@suse.de
- etc/services: Add ports for sieve and smtps
-------------------------------------------------------------------
Mon Aug 26 15:39:24 CEST 2002 - kukuk@suse.de
- etc/services: add mrt entry in temporary area
-------------------------------------------------------------------
Fri Aug 23 10:44:20 CEST 2002 - kukuk@suse.de
- Fix pop2 daemon name, add imap pop3 daemon [Bug #14474]
-------------------------------------------------------------------
Thu Aug 15 15:46:22 CEST 2002 - kukuk@suse.de
- Add PreRequires [Bug #17899]
-------------------------------------------------------------------
Sat Aug 3 16:03:22 CEST 2002 - kukuk@suse.de
- etc/services: add rpcbind alias to sunrpc entry
-------------------------------------------------------------------
Tue Jul 30 15:59:14 CEST 2002 - kukuk@suse.de
- Fix get_version_number.sh
-------------------------------------------------------------------
Mon Jul 22 09:43:55 CEST 2002 - adrian@suse.de
- add disabled fam daemon line to inetd.conf
- remove KDE 2 talk daemon lines
(not anymore support due to security issues)
-------------------------------------------------------------------
Wed Jul 17 17:36:45 CEST 2002 - kukuk@suse.de
- Remove etc/defaultdomian.rpmnew if empty in postinstall script
-------------------------------------------------------------------
Fri Jul 12 08:45:40 CEST 2002 - kukuk@suse.de
- Add /etc/aliases as config(noreplace).
-------------------------------------------------------------------
Fri Jul 5 14:10:31 CEST 2002 - kukuk@suse.de
- Update /etc/services (add new, official ports)
-------------------------------------------------------------------
Tue Jul 2 09:26:38 CEST 2002 - kukuk@suse.de
- fix typo in /etc/services [Bug #16478]
-------------------------------------------------------------------
Thu Jun 13 20:10:15 MEST 2002 - draht@suse.de
- removed lprold from the comments in /etc/hosts.allow.
-------------------------------------------------------------------
Thu Jun 13 17:50:24 MEST 2002 - draht@suse.de
- redo change from Tue Feb 5 18:38:44 MET 2002 - draht@suse.de
commented out services time, telnet, login, finger from default
/etc/inetd.conf. No services are configured by default.
-------------------------------------------------------------------
Wed May 15 14:37:26 CEST 2002 - kssingvo@suse.de
- Add cups-lpd entry to inetd.conf (commented out)
-------------------------------------------------------------------
Wed Mar 13 17:07:15 CET 2002 - kukuk@suse.de
- Remove not supported entries [Bug #14932]
-------------------------------------------------------------------
Tue Mar 5 15:58:01 CET 2002 - kukuk@suse.de
- Add inofficial entries for pbs to etc/services [Bug #14450]
-------------------------------------------------------------------
Fri Mar 1 14:57:51 CET 2002 - kukuk@suse.de
- Add sap db entries back to etc/services
-------------------------------------------------------------------
Wed Feb 13 15:03:53 CET 2002 - werner@suse.de
- Add the options '-L sendmail' and '-Am' to be sure that
sendmail does work as server not as msp client
-------------------------------------------------------------------
Tue Feb 5 19:37:10 MET 2002 - draht@suse.de
- revert changes in /etc/inetd.conf
-------------------------------------------------------------------
Tue Feb 5 18:55:51 MET 2002 - draht@suse.de
- more descriptive comment in /etc/exports.
-------------------------------------------------------------------
Tue Feb 5 18:49:00 MET 2002 - draht@suse.de
- Added users db4web dpbox ingres mail oracle perforce pop sapdb
squid vscan wnn wwwrun and zope to /etc/ftpusers.
No users removed, legacy users stay.
-------------------------------------------------------------------
Tue Feb 5 18:38:44 MET 2002 - draht@suse.de
- commented out services telnet, login and finger from default
/etc/inetd.conf file.
-------------------------------------------------------------------
Tue Feb 5 18:37:07 MET 2002 - draht@suse.de
- add list of wrapped services and examples to /etc/hosts.allow
- changed comment on /etc/hosts.deny
-------------------------------------------------------------------
Tue Feb 5 11:30:53 CET 2002 - kukuk@suse.de
- Fix x11 entry in etc/services
-------------------------------------------------------------------
Fri Feb 1 18:10:48 MET 2002 - draht@suse.de
- removed ^m characters from etc/services
-------------------------------------------------------------------
Tue Jan 22 10:46:41 CET 2002 - kukuk@suse.de
- Sync protocols with official list [Bug #12870]
- Sync services with official list
-------------------------------------------------------------------
Fri Jan 18 10:44:51 CET 2002 - kukuk@suse.de
- disable talk, not in wide use today
- amindexd and amidxtaped should run as user amanda [Bug #12619]
-------------------------------------------------------------------
Thu Jan 17 00:39:04 CET 2002 - ro@suse.de
- fixed filelist
-------------------------------------------------------------------
Wed Jan 16 18:38:05 CET 2002 - kukuk@suse.de
- Remove /var/adm/setup, diphost and add defaultdomain and HOSTNAME
-------------------------------------------------------------------
Mon Oct 22 17:46:56 CEST 2001 - mmj@suse.de
- Change inetd.conf to have vsftpd support
-------------------------------------------------------------------
Mon Jul 30 11:43:31 CEST 2001 - kukuk@suse.de
- Fix typo in hosts.equiv [Bug #9420]
-------------------------------------------------------------------
Tue Jul 10 17:06:29 CEST 2001 - kukuk@suse.de
- Change inetd.conf entry for tftp to match new version
-------------------------------------------------------------------
Fri Jul 6 16:27:07 CEST 2001 - kukuk@suse.de
- Fix path to initscript in comment
-------------------------------------------------------------------
Tue Jun 5 10:52:43 CEST 2001 - kukuk@suse.de
- services: Add ksysguard
-------------------------------------------------------------------
Wed May 9 12:18:47 CEST 2001 - kukuk@suse.de
- Don't send wrong email about changed ftp server
- Fix english comment in inetd.conf [Bug #7913]
-------------------------------------------------------------------
Mon Apr 30 12:47:46 CEST 2001 - ro@suse.de
- added sql6 as 7210/tcp to etc/services
-------------------------------------------------------------------
Fri Apr 20 13:46:33 CEST 2001 - kukuk@suse.de
- Add comments for use of ktalkd [Bug #6566]
-------------------------------------------------------------------
Wed Apr 11 17:08:13 CEST 2001 - kukuk@suse.de
- Revert some of the last changes [Bug #6957]
-------------------------------------------------------------------
Mon Mar 26 09:43:21 CEST 2001 - kukuk@suse.de
- Update etc/protocols from official iana list [Bug #4183]
-------------------------------------------------------------------
Sat Mar 24 17:07:05 CET 2001 - kukuk@suse.de
- etc/services: Add canna entry
-------------------------------------------------------------------
Thu Mar 22 15:32:39 CET 2001 - kukuk@suse.de
- Fix example in hosts.allow
- etc/inetd.conf: Only enable time, telnet, rlogin and talk.
-------------------------------------------------------------------
Fri Feb 9 18:26:37 CET 2001 - schwab@suse.de
- Fix cvs pserver example (#6293).
-------------------------------------------------------------------
Thu Dec 14 17:36:27 CET 2000 - ro@suse.de
- removed lines db2cdb2inst1 and db2idb2inst1 from etc/services (#4461)
-------------------------------------------------------------------
Sat Nov 18 15:39:48 CET 2000 - kukuk@suse.de
- Add dqs entries for nashif@suse.de
-------------------------------------------------------------------
Wed Sep 27 14:20:23 CEST 2000 - kukuk@suse.de
- Add more Wnn* entries to etc/services
-------------------------------------------------------------------
Fri Jul 28 19:43:47 CEST 2000 - kukuk@suse.de
- Fix rsync example
-------------------------------------------------------------------
Mon Jun 19 16:14:25 CEST 2000 - kukuk@suse.de
- Compress tar archive
-------------------------------------------------------------------
Mon Jun 19 14:36:41 CEST 2000 - kukuk@suse.de
- Enable swat in etc/inetd.conf
-------------------------------------------------------------------
Fri May 26 22:25:01 CEST 2000 - kukuk@suse.de
- Fix tar archive
-------------------------------------------------------------------
Thu May 25 17:07:10 CEST 2000 - kukuk@suse.de
- Add etc/host.conf
-------------------------------------------------------------------
Mon May 15 16:03:26 CEST 2000 - kukuk@suse.de
- Remove ypserv entries from hosts.allow/hosts.deny
-------------------------------------------------------------------
Mon May 15 12:07:45 CEST 2000 - ro@suse.de
- removed duplicate line for opalis-rdv
-------------------------------------------------------------------
Mon May 15 08:51:07 CEST 2000 - kukuk@suse.de
- etc/services: Add procstatd entry
- etc/inetd.conf: Likewise.
-------------------------------------------------------------------
Tue May 9 15:51:22 CEST 2000 - ro@suse.de
- added services entry for codine_commd
(inofficial 536/tcp)
-------------------------------------------------------------------
Mon Apr 17 18:46:18 CEST 2000 - kukuk@suse.de
- etc/inetd.conf: Change tftpd default configuration to make a
chroot into tftpboot directory
-------------------------------------------------------------------
Wed Apr 5 14:17:53 CEST 2000 - kukuk@suse.de
- etc/services: Add more entries
-------------------------------------------------------------------
Wed Apr 5 11:07:34 CEST 2000 - kukuk@suse.de
- etc/inetd.conf: service name is imap, not imap2 [Bug 2607]
-------------------------------------------------------------------
Mon Mar 13 16:43:27 CET 2000 - kukuk@suse.de
- etc/services: Now really fix axnet entry [Bug 2080]
-------------------------------------------------------------------
Fri Feb 25 19:28:20 CET 2000 - garloff@suse.de
- cvs entry fixed: path to cvs added.
-------------------------------------------------------------------
Fri Feb 25 14:39:39 CET 2000 - kukuk@suse.de
- etc/services: Add more entries [Bug 2080]
-------------------------------------------------------------------
Mon Feb 21 00:14:33 CET 2000 - garloff@suse.de
- added commented entry for cvs-pserver to inet.conf
-------------------------------------------------------------------
Wed Feb 16 10:12:05 CET 2000 - kukuk@suse.de
- etc/services: Add pbs entries
-------------------------------------------------------------------
Tue Feb 15 16:04:34 CET 2000 - kukuk@suse.de
- etc/inetd.conf: fix some typos
-------------------------------------------------------------------
Thu Jan 20 13:18:09 CET 2000 - kukuk@suse.de
- Add missing amanda client entry to etc/inetd.conf
-------------------------------------------------------------------
Wed Jan 19 12:00:43 CET 2000 - kukuk@suse.de
- Add missing amanda idx entries to etc/services
-------------------------------------------------------------------
Thu Jan 13 14:53:26 CET 2000 - kukuk@suse.de
- etc/ftpusers: Add more systemuser from /etc/passwd
-------------------------------------------------------------------
Thu Jan 13 12:11:20 CET 2000 - kukuk@suse.de
- Add IPv6 addresses to etc/hosts
-------------------------------------------------------------------
Tue Jan 11 10:35:20 CET 2000 - kukuk@suse.de
- etc/services: Add db2 and http-rman entries
-------------------------------------------------------------------
Mon Jan 3 15:27:45 CET 2000 - kukuk@suse.de
- etc/inetd.conf: Remove RPC entries
- etc/protocols: Add IPv6
- etc/services: Add all known services
- etc/rpc: Removed, is in shlibs
-------------------------------------------------------------------
Thu Oct 21 12:14:53 MEST 1999 - kukuk@suse.de
- etc/inetd.conf: fix comments, disable btx and rplay
- etc/ftpusers: Add more system users
- etc/services: Add more official assinged numbers
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Sat Sep 11 16:05:31 MEST 1999 - kukuk@suse.de
- Make in.ftpd default ftp daemon (fixes bug #268)
-------------------------------------------------------------------
Thu Sep 2 16:56:56 MEST 1999 - kukuk@suse.de
- Don't start identd from inetd
-------------------------------------------------------------------
Mon Jul 12 11:02:46 MEST 1999 - bs@suse.de
- fixed buglet in %post (create var/adm/notify/messages)
-------------------------------------------------------------------
Mon Jul 12 10:41:48 MEST 1999 - ro@suse.de
- updated etc/services (added https, ftp, data)
-------------------------------------------------------------------
Tue May 25 15:22:56 MEST 1999 - uli@suse.de
- added services/inetd.conf entries for Mimer
-------------------------------------------------------------------
Tue Mar 30 12:46:46 MEST 1999 - bs@suse.de
- enabled time services in /etc/inetd.conf
-------------------------------------------------------------------
Mon Mar 22 20:17:27 MET 1999 - bs@suse.de
- added "bin" and "daemon" to /etc/ftpusers
-------------------------------------------------------------------
Tue Mar 9 18:48:34 MET 1999 - ro@suse.de
- /etc/services: added entries for IBM DB2 Database
-------------------------------------------------------------------
Tue Mar 2 13:57:13 MET 1999 - ro@suse.de
- glibc is libc.so.6.1 on alpha: no etc/rpc there
-------------------------------------------------------------------
Wed Jan 13 17:10:54 MET 1999 - bs@suse.de
- added some entries for samba to inetd.conf and services
-------------------------------------------------------------------
Sat Dec 5 14:30:37 MET 1998 - bs@suse.de
- added netplan to /etc/services
- marked /etc/inetd.conf as noreplace
-------------------------------------------------------------------
Sat Nov 28 22:13:14 MET 1998 - bs@suse.de
- added rsync to etc/services and etc/inetd.conf
-------------------------------------------------------------------
Wed Nov 18 14:27:35 MET 1998 - bs@suse.de
- disabled vbox in inetd.conf
-------------------------------------------------------------------
Tue Nov 17 20:32:54 MET 1998 - bs@suse.de
- hosts.equiv: typo fix
- etc/services: added afpovertcp, mysql
- etc/inetd.conf: added leafnode, vboxd
removed in.nntpd
-------------------------------------------------------------------
Fri Aug 21 15:10:39 MEST 1998 - bs@suse.de
- added some entries to /etc/services to be friendly for netatalk
-------------------------------------------------------------------
Mon Aug 17 09:31:08 MEST 1998 - bs@suse.de
- changed entry for rplayd in inetd.conf
-------------------------------------------------------------------
Tue Jul 28 11:43:19 MEST 1998 - bs@suse.de
- changed comment headers in /etc/hosts and /etc/hosts.lpd
- added "noreplace" feature.
-------------------------------------------------------------------
Mon Jul 13 20:23:04 MEST 1998 - bs@suse.de
- inetd.conf
- added new entry for rplay
- added entry for proftpd
- services:
- added aliases for imap2 (imap, imap4)
-------------------------------------------------------------------
Thu May 28 14:04:17 MEST 1998 - bs@suse.de
- disabled imap2 in /etc/inetd.conf
-------------------------------------------------------------------
Tue Mar 3 17:46:53 MET 1998 - ro@suse.de
- etc/services - changed entry for http-rman to nowait.10000
-------------------------------------------------------------------
Sat Feb 28 16:56:08 MET 1998 - ro@suse.de
- etc/services - added entried for radius
-------------------------------------------------------------------
Mon Feb 9 11:09:09 MET 1998 - bs@suse.de
- etc/services: - added entries for amanda
- added entries for ssh
- etc/inetd.conf: - added entries for amanda
- added "-e" to /usr/sbin/in.identd
- added comment for "keep-alive"
-------------------------------------------------------------------
Wed Jan 28 13:17:33 MET 1998 - ro@suse.de
- changed ftpd from in.ftpd to wu.ftpd in /etc/inetd.conf
(in case of update with existing in.ftpd and nonexisting
wu.ftpd, the administrator is notified of the change)
-------------------------------------------------------------------
Mon Jan 26 14:40:22 MET 1998 - ro@suse.de
- added entries for hp eloquence software 8010,8100,8102,8104

86
netcfg.spec Normal file
View File

@ -0,0 +1,86 @@
#
# spec file for package netcfg
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: netcfg
Version: 11.6
Release: 0
Summary: Network Configuration Files in /etc
License: BSD-3-Clause
Group: System/Base
Source1: exports
Source3: host.conf
Source4: hosts
Source9: networks
Source10: protocols
Source11: services.bz2
Source12: hostname
Source13: aliases
Source16: COPYING
Source17: ethertypes
Source100: services-compare.pl
Source101: services-compare.sh
Source102: services-create.pl
Source103: services_UPDATING
Patch0: services-suse.diff
BuildRequires: libnss_usrfiles2
Requires: libnss_usrfiles2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
All of the basic configuration files for the network programs including
%{_sysconfdir}/aliases, %{_sysconfdir}/protocols, and %{_sysconfdir}/services.
These are often used by network routines in the C library and therefore
must be installed for all network programs.
%prep
%build
cp %{SOURCE16} .
%install
mkdir -p %{buildroot}%{_sysconfdir}
for i in hostname aliases exports host.conf hosts ethertypes; do
install $RPM_SOURCE_DIR/$i %{buildroot}/%{_sysconfdir}
done
mkdir -p %{buildroot}%{_prefix}%{_sysconfdir}
for i in networks protocols services.bz2; do
install $RPM_SOURCE_DIR/$i %{buildroot}%{_prefix}%{_sysconfdir}
done
bunzip2 %{buildroot}%{_prefix}%{_sysconfdir}/services.bz2
patch -p0 %{buildroot}%{_prefix}%{_sysconfdir}/services < $RPM_SOURCE_DIR/services-suse.diff
rm -f %{buildroot}%{_prefix}%{_sysconfdir}/services.orig
install -d -m 0755 %{buildroot}/%{_sysconfdir}/exports.d
%files
%defattr(644,root,root,755)
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/exports
%config(noreplace) %{_sysconfdir}/host.conf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts
%{_prefix}%{_sysconfdir}/networks
%{_prefix}%{_sysconfdir}/protocols
%{_prefix}%{_sysconfdir}/services
%config(noreplace) %{_sysconfdir}/ethertypes
%dir %{_sysconfdir}/exports.d
%license COPYING
%changelog

10
networks Normal file
View File

@ -0,0 +1,10 @@
#
# networks This file describes a number of netname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
#
loopback 127.0.0.0
link-local 169.254.0.0
# End.

514
protocols Normal file
View File

@ -0,0 +1,514 @@
# See also: protocols(5), http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
#
#
# PROTOCOL NUMBERS
#
# (last updated 28 March 2006)
#
# In the Internet Protocol version 4 (IPv4) [RFC791] there is a field,
# called "Protocol", to identify the next level protocol. This is an 8
# bit field. In Internet Protocol version 6 (IPv6) [RFC1883] this field
# is called the "Next Header" field.
#
# Assigned Internet Protocol Numbers
#
# Decimal Keyword Protocol References
# ------- ------- -------- ----------
# protocol num aliases # comments
hopopt 0 HOPOPT # IPv6 Hop-by-Hop Option [RFC1883]
icmp 1 ICMP # Internet Control Message [RFC792]
igmp 2 IGMP # Internet Group Management [RFC1112]
ggp 3 GGP # Gateway-to-Gateway [RFC823]
ipv4 4 IPv4 # IP in IP (encapsulation) [RFC2003]
st 5 ST # Stream [RFC1190,RFC1819]
tcp 6 TCP # Transmission Control [RFC793]
cbt 7 CBT # CBT [Ballardie]
egp 8 EGP # Exterior Gateway Protocol [RFC888,DLM1]
igp 9 IGP # any private interior gateway [IANA]
# (used by Cisco for their IGRP)
bbn-rcc-mon 10 BBN-RCC-MON # BBN RCC Monitoring [SGC]
nvp-ii 11 NVP-II # Network Voice Protocol [RFC741,SC3]
pup 12 PUP # PUP [PUP,XEROX]
argus 13 ARGUS # ARGUS [RWS4]
emcon 14 EMCON # EMCON [BN7]
xnet 15 XNET # Cross Net Debugger [IEN158,JFH2]
chaos 16 CHAOS # Chaos [NC3]
udp 17 UDP # User Datagram [RFC768,JBP]
mux 18 MUX # Multiplexing [IEN90,JBP]
dcn-meas 19 DCN-MEAS # DCN Measurement Subsystems [DLM1]
hmp 20 HMP # Host Monitoring [RFC869,RH6]
prm 21 PRM # Packet Radio Measurement [ZSU]
xns-idp 22 XNS-IDP # XEROX NS IDP [ETHERNET,XEROX]
trunk-1 23 TRUNK-1 # Trunk-1 [BWB6]
trunk-2 24 TRUNK-2 # Trunk-2 [BWB6]
leaf-1 25 LEAF-1 # Leaf-1 [BWB6]
leaf-2 26 LEAF-2 # Leaf-2 [BWB6]
rdp 27 RDP # Reliable Data Protocol [RFC908,RH6]
irtp 28 IRTP # Internet Reliable Transaction [RFC938,TXM]
iso-tp4 29 ISO-TP4 # ISO Transport Protocol Class 4 [RFC905,RC77]
netblt 30 NETBLT # Bulk Data Transfer Protocol [RFC969,DDC1]
mfe-nsp 31 MFE-NSP # MFE Network Services Protocol [MFENET,BCH2]
merit-inp 32 MERIT-INP # MERIT Internodal Protocol [HWB]
dccp 33 DCCP # Datagram Congestion Control Protocol [RFC-ietf-dccp-spec-11.txt]
3pc 34 3PC # Third Party Connect Protocol [SAF3]
idpr 35 IDPR # Inter-Domain Policy Routing Protocol [MXS1]
xtp 36 XTP # XTP [GXC]
ddp 37 DDP # Datagram Delivery Protocol [WXC]
idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport Proto [MXS1]
tp++ 39 TP++ # TP++ Transport Protocol [DXF]
il 40 IL # IL Transport Protocol [Presotto]
ipv6 41 IPv6 # Ipv6 [Deering]
sdrp 42 SDRP # Source Demand Routing Protocol [DXE1]
ipv6-route 43 IPv6-Route # Routing Header for IPv6 [Deering]
ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 [Deering]
idrp 45 IDRP # Inter-Domain Routing Protocol [Sue Hares]
rsvp 46 RSVP # Reservation Protocol [Bob Braden]
gre 47 GRE # General Routing Encapsulation [Tony Li]
mhrp 48 MHRP # Mobile Host Routing Protocol[David Johnson]
bna 49 BNA # BNA [Gary Salamon]
esp 50 ESP # Encap Security Payload [RFC2406]
ah 51 AH # Authentication Header [RFC2402]
i-nlsp 52 I-NLSP # Integrated Net Layer Security TUBA [GLENN]
swipe 53 SWIPE # IP with Encryption [JI6]
narp 54 NARP # NBMA Address Resolution Protocol [RFC1735]
mobile 55 MOBILE # IP Mobility [Perkins]
tlsp 56 TLSP # Transport Layer Security Protocol [Oberg]
# using Kryptonet key management
skip 57 SKIP # SKIP [Markson]
ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 [RFC1883]
ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 [RFC1883]
ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 [RFC1883]
# 61 any host internal protocol [IANA]
cftp 62 CFTP # CFTP [CFTP,HCF2]
# 63 any local network [IANA]
sat-expak 64 SAT-EXPAK # SATNET and Backroom EXPAK [SHB]
kryptolan 65 KRYPTOLAN # Kryptolan [PXL1]
rvd 66 RVD # MIT Remote Virtual Disk Protocol [MBG]
ippc 67 IPPC # Internet Pluribus Packet Core [SHB]
# 68 any distributed file system [IANA]
sat-mon 69 SAT-MON # SATNET Monitoring [SHB]
visa 70 VISA # VISA Protocol [GXT1]
ipcv 71 IPCV # Internet Packet Core Utility [SHB]
cpnx 72 CPNX # Computer Protocol Network Executive [DXM2]
cphb 73 CPHB # Computer Protocol Heart Beat [DXM2]
wsn 74 WSN # Wang Span Network [VXD]
pvp 75 PVP # Packet Video Protocol [SC3]
br-sat-mon 76 BR-SAT-MON # Backroom SATNET Monitoring [SHB]
sun-nd 77 SUN-ND # SUN ND PROTOCOL-Temporary [WM3]
wb-mon 78 WB-MON # WIDEBAND Monitoring [SHB]
wb-expak 79 WB-EXPAK # WIDEBAND EXPAK [SHB]
iso-ip 80 ISO-IP # ISO Internet Protocol [MTR]
vmtp 81 VMTP # VMTP [DRC3]
secure-vmtp 82 SECURE-VMTP # SECURE-VMTP [DRC3]
vines 83 VINES # VINES [BXH]
ttp 84 TTP # TTP [JXS]
nsfnet-igp 85 NSFNET-IGP # NSFNET-IGP [HWB]
dgp 86 DGP # Dissimilar Gateway Protocol [DGP,ML109]
tcf 87 TCF # TCF [GAL5]
eigrp 88 EIGRP # EIGRP [CISCO,GXS]
ospfigp 89 OSPFIGP # OSPFIGP [RFC1583,JTM4]
sprite-rpc 90 Sprite-RPC # Sprite RPC Protocol [SPRITE,BXW]
larp 91 LARP # Locus Address Resolution Protocol [BXH]
mtp 92 MTP # Multicast Transport Protocol [SXA]
ax.25 93 AX.25 # AX.25 Frames [BK29]
ipip 94 IPIP # IP-within-IP Encapsulation Protocol [JI6]
micp 95 MICP # Mobile Internetworking Control Pro. [JI6]
scc-sp 96 SCC-SP # Semaphore Communications Sec. Pro. [HXH]
etherip 97 ETHERIP # Ethernet-within-IP Encapsulation [RFC3378]
encap 98 ENCAP # Encapsulation Header [RFC1241,RXB3]
# 99 any private encryption scheme [IANA]
gmtp 100 GMTP # GMTP [RXB5]
ifmp 101 IFMP # Ipsilon Flow Management Protocol [Hinden]
pnni 102 PNNI # PNNI over IP [Callon]
pim 103 PIM # Protocol Independent Multicast [Farinacci]
aris 104 ARIS # ARIS [Feldman]
scps 105 SCPS # SCPS [Durst]
qnx 106 QNX # QNX [Hunter]
a/n 107 A/N # Active Networks [Braden]
ipcomp 108 IPComp # IP Payload Compression Protocol [RFC2393]
snp 109 SNP # Sitara Networks Protocol [Sridhar]
compaq-peer 110 Compaq-Peer # Compaq Peer Protocol [Volpe]
ipx-in-ip 111 IPX-in-IP # IPX in IP [Lee]
vrrp 112 VRRP # Virtual Router Redundancy Protocol [RFC3768]
pgm 113 PGM # PGM Reliable Transport Protocol [Speakman]
# 114 any 0-hop protocol [IANA]
l2tp 115 L2TP # Layer Two Tunneling Protocol [Aboba]
ddx 116 DDX # D-II Data Exchange (DDX) [Worley]
iatp 117 IATP # Interactive Agent Transfer Protocol [Murphy]
stp 118 STP # Schedule Transfer Protocol [JMP]
srp 119 SRP # SpectraLink Radio Protocol [Hamilton]
uti 120 UTI # UTI [Lothberg]
smp 121 SMP # Simple Message Protocol [Ekblad]
sm 122 SM # SM [Crowcroft]
ptp 123 PTP # Performance Transparency Protocol [Welzl]
isis 124 ISIS # over IPv4 [Przygienda]
fire 125 FIRE # [Partridge]
crtp 126 CRTP # Combat Radio Transport Protocol [Sautter]
crudp 127 CRUDP # Combat Radio User Datagram [Sautter]
sscopmce 128 SSCOPMCE # [Waber]
iplt 129 IPLT # [Hollbach]
sps 130 SPS # Secure Packet Shield [McIntosh]
pipe 131 PIPE # Private IP Encapsulation within IP [Petri]
sctp 132 SCTP # Stream Control Transmission Protocol [Stewart]
fc 133 FC # Fibre Channel [Rajagopal]
rsvp-e2e-ignore 134 RSVP-E2E-IGNORE # [RFC3175]
mobility 135 Mobility # Header [RFC3775]
udplite 136 UDPLite # [RFC3828]
mpls-in-ip 137 MPLS-in-IP # [RFC4023]
# 138-252 Unassigned [IANA]
use 253 Use # for experimentation and testing [RFC3692]
use 254 Use # for experimentation and testing [RFC3692]
# 255 Reserved [IANA]
#
#
# REFERENCES
# ----------
#
# [CFTP] Forsdick, H., "CFTP", Network Message, Bolt Beranek and
# Newman, January 1982.
#
# [CISCO] Cisco Systems, "Gateway Server Reference Manual", Manual
# Revision B, January 10, 1988.
#
# [DDN] Feinler, E., Editor, "DDN Protocol Handbook", Network
# Information Center, SRI International, December 1985.
#
# [DGP] M/A-COM Government Systems, "Dissimilar Gateway Protocol
# Specification, Draft Version", Contract no. CS901145,
# November 16, 1987.
#
# [ETHERNET] "The Ethernet, A Local Area Network: Data Link Layer and
# Physical Layer Specification", AA-K759B-TK, Digital
# Equipment Corporation, Maynard, MA. Also as: "The
# Ethernet - A Local Area Network", Version 1.0, Digital
# Equipment Corporation, Intel Corporation, Xerox
# Corporation, September 1980. And: "The Ethernet, A Local
# Area Network: Data Link Layer and Physical Layer
# Specifications", Digital, Intel and Xerox, November 1982.
# And: XEROX, "The Ethernet, A Local Area Network: Data Link
# Layer and Physical Layer Specification", X3T51/80-50,
# Xerox Corporation, Stamford, CT., October 1980.
#
# [IEN90] Cohen, D. and J. Postel, "Multiplexing Protocol", IEN 90,
# USC/Information Sciences Institute, May 1979.
#
# [IEN119] Forgie, J., "ST - A Proposed Internet Stream Protocol",
# IEN 119, MIT Lincoln Laboratory, September 1979.
#
# [IEN158] Haverty, J., "XNET Formats for Internet Protocol Version 4",
# IEN 158, October 1980.
#
# [MFENET] Shuttleworth, B., "A Documentary of MFENet, a National
# Computer Network", UCRL-52317, Lawrence Livermore Labs,
# Livermore, California, June 1977.
#
# [PUP] Boggs, D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An
# Internetwork Architecture", XEROX Palo Alto Research Center,
# CSL-79-10, July 1979; also in IEEE Transactions on
# Communication, Volume COM-28, Number 4, April 1980.
#
# [SPRITE] Welch, B., "The Sprite Remote Procedure Call System",
# Technical Report, UCB/Computer Science Dept., 86/302,
# University of California at Berkeley, June 1986.
#
# [RFC741] Cohen, D., "Specifications for the Network Voice Protocol",
# RFC 741, ISI/RR 7539, USC/Information Sciences Institute,
# March 1976.
#
# [RFC768] Postel, J., "User Datagram Protocol", STD 6, RFC 768,
# USC/Information Sciences Institute, August 1980.
#
# [RFC791] Postel, J., "Internet Protocol - DARPA Internet Prnogram
# Protocol Specification", STD 5, RFC 791, DARPA, September
# 1981.
#
# [RFC792] Postel, J., "Internet Control Message Protocol - DARPA
# Internet Program Protocol Specification", STD 5, RFC 792,
# USC/Information Sciences Institute, September 1981.
#
# [RFC793] Postel, J., "Transmission Control Protocol - DARPA
# Internet Program Protocol Specification", STD 7, RFC 793,
# USC/Information Sciences Institute, September 1981.
#
# [RFC823] Hinden, R., and A. Sheltzer, "The DARPA Internet Gateway",
# RFC 823, BBN, September 1982.
#
# [RFC869] Hinden, R., "A Host Monitoring Protocol", RFC 869,
# Bolt Beranek and Newman, December 1983.
#
# [RFC888] Seamonson, L., and E. Rosen, "STUB" Exterior Gateway
# Protocol", RFC 888, BBN Communications Corporation,
# January 1984.
#
# [RFC905] International Standards Organization, "ISO Transport Protocol
# Specification - ISO DP 8073", RFC 905, April 1984.
#
# [RFC908] Velten, D., R. Hinden, and J. Sax, "Reliable Data Protocol",
# RFC 908, BBN Communications Corporation, July 1984.
#
# [RFC938] Miller, T., "Internet Reliable Transaction Protocol", RFC 938,
# ACC, February 1985.
#
# [RFC969] Clark, D., M. Lambert, and L. Zhang, "NETBLT: A Bulk Data
# Transfer Protocol", RFC 969, MIT Laboratory for Computer
# Science, December 1985.
#
# [RFC1112] Deering, S., "Host Extensions for IP Multicasting",
# STD 5, RFC 1112, Stanford University, August 1989.
#
# [RFC1190] Topolcic, C., Editor, "Experimental Internet Stream
# Protocol, Version 2 (ST-II)", RFC 1190, CIP Working Group,
# October 1990.
#
# [RFC1241] Woodburn, W., and D. Mills, " A Scheme for an Internet
# Encapsulation Protocol: Version 1", RFC 1241, SAIC,
# University of Delaware, July 1991.
#
# [RFC1583] Moy, J., "The OSPF Specification", RFC 1583, Proteon,
# March 1994.
#
# [RFC1735] Heinanen, J., and R. Govindan, " NBMA Address Resolution
# Protocol (NARP)", RFC 1735, Telecom Finland and USC/ISI,
# December 1994.
#
# [RFC1819] L. Delgrossi, L. Berger, and ST2 Working Group, "Internet
# Stream Protocol Version 2 (ST2) Protocol Specification
# - Version ST2+", RFC 1819, August 1995.
#
# [RFC1883] Deering, S., and R. Hinden, "Internet Protocol, Version 6
# (IPv6) Specification", RFC 1883, Xerox PARC, Ipsilon
# Networks, December 1995.
#
# [RFC2003] Perkins, C., "IP Encapsulation within IP", RFC 2003, IBM,
# September 1996.
#
# [RFC2393] Shacham, A., and R. Monsour, R. Pereira, M. Thomas, "IP
# Payload Compression Protocol (IPComp)", RFC 2393, Cisco,
# Hi/fn, TimeStep, AltaVista Internt, December 1998.
#
# [RFC2402] S. Kent and R. Atkinson, "IP Authentication Header",
# RFC 2402, November 1998.
#
# [RFC2406] S. Kent and R. Atkinson, "IP Encapsulating Security Payload (ESP)",
# RFC 2406, November 1998.
#
# [RFC3175] F. Baker, C. Iturralde, F. Le Faucheur, B. Davie,
# "Aggregation of RSVP for IPv4 and IPv6 Reservations",
# RFC 3175, September 2001.
#
# [RFC3378] R. Housley and S. Hollenbeck, "EtherIP: Tunneling Ethernet
# Frames in IP Datagrams", RFC 3378, September 2002.
#
# [RFC3692] T. Narten, "Assigning Experimental and Testing Numbers Considered
# Useful", RFC 3692, January 2004.
#
# [RFC3768] R. Hinden, Ed., "Virtual Router Redundancy Protocol (VRRP)",
# RFC 3768, April 2004.
#
# [RFC3775] D. Johnson, C. Perkins, and J. Arkko, "Mobility Support in IPv6",
# RFC 3775, June 2004.
#
# [RFC3828] L-A. Larzon, M. Degermark, S. Pink, L-E. Jonsson Ed., and
# G. Fairhurst, Ed., "The UDP-Lite Protocol", RFC 3828, July 2004.
#
# [RFC4023] T. Worster, Y. Rekhter, and E. Rosen, Ed., "Encapsulating MPLS in
# IP or Generic Routing Encapsulation (GRE)", RFC 4023, March 2005.
#
# [RFC-ietf-dccp-spec-11.txt]
# E. Kohler, M. Handley and S. Floyd, "Datagram Congestion
# Control Protocol (DCCP)", RFC XXXX, Month Year.
#
# PEOPLE
# ------
#
# [Aboba] Bernard Aboba <bernarda@microsoft.com>, April 1998.
#
# [Ballardie] Tony Ballardie <A.Ballardie@cs.ucl.ac.uk>
#
# [BCH2] Barry Howard <Howard@NMFECC.LLNL.GOV>
#
# [BK29] Brian Kantor <brian@UCSD.EDU>
#
# [BN7] <mystery contact>
#
# [Braden] Bob Braden, <braden@isi.edu>,, July 1997.
#
# [BWB6] Barry Boehm <boehm@ARPA.MIL>
#
# [BXH] Brian Horn <---none--->
#
# [BXW] Bruce Willins <---none--->
#
# [Callon] Ross Callon, <rcallon@baynetworks.com>, December 1995.
#
# [Carpenter] Brian Carpenter, <brian@dxcoms.cern.ch>, January 1995.
#
# [Crowcroft] Jon Crowcroft <jon@cs.ucl.ac.uk>, June 1999.
#
# [DDC1] David Clark <ddc@LCS.MIT.EDU>
#
# [DLM1] David Mills <Mills@HUEY.UDEL.EDU>
#
# [DRC3] Dave Cheriton <cheriton@PESCADERO.STANFORD.EDU>
#
# [Deering] Steve Deering, <deering@parc.xerox.com>, March 1995.
#
# [Doraswamy] Naganand Doraswamy, <naganand@BayNetworks.com>, September 1997.
#
# [Durst] Robert Durst, <durst@mitre.org>, March 1997.
#
# [DXE1] Deborah Estrin <estrin@usc.edu>
#
# [Farinacci] Dino Farinacci, <dino@cisco.com>, March 1996.
#
# [Feldman] Nancy Feldman <nkf@vnet.ibm.com> January 1997.
#
# [DXF] Dirk Fromhein <df@watershed.com>
#
# [DXM2] David Mittnacht <---none--->
#
# [David Johnson] <mystery contact>
#
# [Ekblad] Leif Ekblad <leif.ekblad@eslov.mail.telia.com>, March 1999.
#
# [GAL5] Guillermo A. Loyola <LOYOLA@IBM.COM>
#
# [GLENN] K. Robert Glenn <glenn@osi.ncsl.nist.gov>
#
# [GXC] Greg Chesson <Greg@SGI.COM>
#
# [GXS] Guenther Schreiner <snmp-admin@ira.uka.de>
#
# [GXT1] Gene Tsudik <tsudik@USC.EDU>
#
# [Hamilton] Mark Hamilton <mah@spectralink.com>, November 1998.
#
# [HCF2] Harry Forsdick <Forsdick@BBN.COM>
#
# [Hinden] Bob Hinden, <hinden@ipsilon.com>, November 1995, 1997.
#
# [Hunter] Michael Hunter, <mphunter@qnx.com>, July 1997.
#
# [HWB] Hans-Werner Braun <HWB@MCR.UMICH.EDU>
#
# [HXH] Howard Hart <hch@hybrid.com>
#
# [IANA] Internet Assigned Numbers Authority, <iana@iana.org>, June 1995.
#
# [JBP] Jon Postel <postel@isi.edu>
#
# [JMP] Jean-Michel Pittet, <jmp@gandalf.engr.sgi.com>, November 1998.
#
# [JC120] <mystery contact>
#
# [JFH2] Jack Haverty <jhaverty@ORACLE.COM>
#
# [JI6] John Ioannidis <ji@CS.COLUMBIA.EDU>
#
# [JTM4] John Moy <jmoy@PROTEON.COM>
#
# [JWF] Jim Forgie <FORGIE@XN.LL.MIT.EDU>
#
# [JXS] Jim Stevens <Stevens@ISI.EDU>
#
# [KATZ] Dave Katz <dkatz@cisco.com>
#
# [Lee] CJ Lee, <cj_lee@novell.com>, October 1997.
#
# [Lothberg] Peter Lothberg <roll@stupi.se>, March 1999.
#
# [Markson] Tom Markson, <markson@osmosys.ingog.com>, September 1995.
#
# [MB] Mike Brescia <Brescia@CCV.BBN.COM>
#
# [MBG] Michael Greenwald <Greenwald@SCRC-STONY-BROOK.SYMBOLICS.COM>
#
# [McIntosh] Bill McIntosh <BMcIntosh@fortresstech.com>
#
# [ML109] Mike Little <little@MACOM4.ARPA>
#
# [MTR] Marshall T. Rose <mrose@dbc.mtview.ca.us>
#
# [Murphy] John Murphy <john.m.murphy@mci.com>, October 1998.
#
# [MXS1] Martha Steenstrup <MSteenst@BBN.COM>
#
# [NC3] J. Noel Chiappa <JNC@XX.LCS.MIT.EDU>
#
# [Oberg] Christer Oberg <chg@bull.se> October 1994.
#
# [Partridge] Criag Partridge <craig@bbn.com>, August 1999.
#
# [Perkins] Charlie Perkins <perk@watson.ibm.com>, October 1994.
#
# [Petri] Bernhard Petri <bernhard.petri@siemens.com>, March 2000.
#
# [Presotto] Dave Presotto <presotto@plan9.att.com>, July 1995.
#
# [Przygienda] Tony Przygienda <prz@siara.com>, August 1999.
#
# [PXL1] Paul Liu <---none--->
#
# [Rajagopal] Murali Rajagopal, <murali@gadzoox.com>, May 2000.
#
# [RH6] Robert Hinden <Hinden@ENG.SUN.COM>
#
# [RTB3] Bob Braden <braden@isi.edu>
#
# [RC77] <mystery contact>
#
# [RDH1] Russ Housley <rhousley@rsasecurity.com>
#
# [RWS4] Robert W. Scheifler <RWS@XX.LCS.MIT.EDU>
#
# [RXB3] Robert Woodburn <woody@cseic.saic.com>
#
# [Sautter] Robert Sautter <rsautter@acdnj.itt.com>, August 1999.
#
# [SAF3] Stuart A. Friedberg <stuart@CS.WISC.EDU>
#
# [SC3] Steve Casner <casner@isi.edu
#
# [SGC] Steve Chipman Chipman@F.BBN.COM>
#
# [SHB] Steven Blumenthal <BLUMENTHAL@VAX.BBN.COM>
#
# [Speakman] Tony Speakman <speakman@cisco.com>, January 1998.
#
# [Sridhar] Manickam R.Sridhar <msridhar@sitaranetworks.com>, September 1997.
#
# [Stewart] Randall R. Stewart <rrs@cisco.com>, April 2000.
#
# [Sue Hares] Sue Hares <skh@merit.edu>
#
# [SXA] Susie Armstrong <Armstrong.wbst128@XEROX.COM>
#
# [SXD] Steve Deering <deering@PARC.XEROX.COM>
#
# [Tony Li] Tony Li <tli@cisco.com>
#
# [TXM] Trudy Miller <Trudy@ACC.COM>
#
# [Volpe] Victor Volpe <vvolpe@smtp.microcom.com>, October 1997.
#
# [VXD] Victor Dafoulas <---none--->
#
# [Waber] Kurt Waber <kurt.waber@swisscom.com>, August 1999.
#
# [Welzl] Michael Welzl <michael@tk.uni-linz.ac.at>, August 1999.
#
# [WM3] William Melohn <Melohn@SUN.COM>
#
# [WXC] Wesley Craig <Wesley.Craig@terminator.cc.umich.edu>
#
# [Worley] John Worley <worley@milehigh.net>, June 1998.
#
# [ZSU] Zaw-Sing Su <ZSu@TSCA.ISTC.SRI.>
#
# []
#
#
#
#
#
#

111
services-compare.pl Normal file
View File

@ -0,0 +1,111 @@
#!/usr/bin/perl -w
use strict;
my $sfile = 'services';
my $snewfile = 'services.new';
my %s;
my %snew;
parse_services_file($sfile, \%s);
parse_services_file($snewfile, \%snew);
my @preserved_pairs;
my @services_changing_port;
my @services_renamed;
my @removed_pairs;
my @new_pairs;
BEGINLOOP: foreach my $port (keys %s)
{
if (exists($snew{$port}) and $snew{$port} eq $s{$port})
{
# service port pair preserved
push(@preserved_pairs, "$snew{$port} $port");
next BEGINLOOP;
}
foreach my $portnew (keys %snew)
{
if ($snew{$portnew} eq $s{$port} and protocol($portnew) eq protocol($port))
{
push(@services_changing_port, "$snew{$portnew} $port -> $portnew");
next BEGINLOOP;
}
}
if (exists($snew{$port})) # and $snew{$port} ne $s{$port} and service don't use another port
{
push(@services_renamed, "$s{$port} -> $snew{$port} ($port)");
}
else
{
push(@removed_pairs, "$s{$port} $port");
}
}
my $string_scp = join(" ", @services_changing_port);
foreach my $portnew (keys %snew)
{
if (not exists($s{$portnew}))
{
if (index($string_scp, $snew{$portnew}) == -1)
{
push(@new_pairs, "$snew{$portnew} $portnew");
}
}
}
print_pairs("Removed pairs", sort (@removed_pairs));
print_pairs("Renamed or replaced services", sort (@services_renamed));
print_pairs("Services, that changed port", sort (@services_changing_port));
print_pairs("New pairs", sort (@new_pairs));
print_pairs("Preserved pairs", sort (@preserved_pairs));
sub print_pairs
{
my $heading = shift;
my @pairs = @_;
print "\n";
print "$heading\n";
my $underline = ('-' x length($heading));
print $underline, "\n";
foreach my $pair (@pairs)
{ print $pair,"\n"; }
}
sub protocol
{
my $port = shift;
$port =~ s/.*\///;
return $port;
}
sub parse_services_file
{
my $filename = shift;
my $hashref = shift;
open(FILE, $filename) or die "cannot read $filename\n";
while (<FILE>)
{
chomp;
$_ =~ s/#.*//;
if ($_)
{
# my ($service, $port) = split(/[ \t]+/, $_); is not sufficient because of errors in xml like
# Apple Remote Desktop (Net Assistant) 3283/tcp # Net Assistant (updated 2011-11-09) [Michael_Stein]
my $service = my $port = $_;
$service =~ s:[ \t]+[0-9]+/[a-z]+.*$::;
$port =~ s:^.*[ \t]+([0-9]+/[a-z]+).*$:$1:;
$hashref->{$port} = $service;
# printf "[%s] [%s]\n", ($service, $port);
}
}
close(FILE);
}

4
services-compare.sh Normal file
View File

@ -0,0 +1,4 @@
cat services | egrep -v "^#" | sed "s:#.*::" | sed "s:^\([^ \t]\+\)[ \t]\+\([^ \t]\+\)[ \t]*$:\1 \2:g" | sort > services.stripped
cat services.new | egrep -v "^#" | sed "s:#.*::" | sed "s:^\([^ \t]\+\)[ \t]\+\([^ \t]\+\)[ \y]*$:\1 \2:g" | sort > services.new.stripped
diff -u services.stripped services.new.stripped | egrep "^[+-]"
rm services.stripped services.new.stripped

176
services-create.pl Normal file
View File

@ -0,0 +1,176 @@
#!/usr/bin/perl -w
use strict;
use utf8;
use XML::LibXML::Reader;
binmode( STDOUT, 'utf8:' );
my $portsurl = 'https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml';
my $servicesfile = 'services.new';
my $reader = XML::LibXML::Reader->new(location => $portsurl)
or die "cannot read $portsurl\n";
open(SERVICESNEW, ">$servicesfile") or die "cannot write $servicesfile\n";
binmode(SERVICESNEW, 'utf8:');
while ($reader->read) {
processNode($reader);
}
sub processNode
{
my $reader = shift;
if ($reader->name eq 'title' and $reader->nodeType == 1)
{
$reader->read;
my $title = $reader->value;
$title =~ tr/a-z/A-Z/;
print SERVICESNEW "#\n",
"# ", $title, "\n",
"#\n";
}
elsif ($reader->name eq 'updated' and $reader->nodeType == 1 and $reader->depth == 1)
{
$reader->read;
print SERVICESNEW "# (last updated on ", $reader->value, ")\n",
"#\n",
"# ";
}
elsif ($reader->name eq 'note' and $reader->nodeType == 1)
{
$reader->read;
while ($reader->depth != 1)
{
if ($reader->name eq '#text')
{
my $text = $reader->value;
$text =~ s/\n/\n# /g;
print SERVICESNEW $text;
}
elsif ($reader->name eq 'xref')
{
my $xref = $reader->getAttribute('data');
$xref =~ tr/a-z/A-Z/;
printf SERVICESNEW "[%s]", $xref;
}
$reader->read;
}
print SERVICESNEW "\n";
print SERVICESNEW "#\n";
printf SERVICESNEW "# %-18s %-12s %s\n", ('Service Name', 'Port/Proto', 'Description, Update Date, References');
printf SERVICESNEW "# %-18s %-12s %s\n", ('------------', '----------', '------------------------------------');
print SERVICESNEW "#\n";
}
elsif ($reader->name eq 'record')
{
my $name = "";
my $number = "";
my $protocol = "";
my $description = "";
my $updated = $reader->getAttribute('updated');
my $xrefs = "";
$reader->read;
if (defined $updated)
{ $updated = "(updated $updated)"; }
else
{ $updated = ""; }
while ($reader->depth != 1)
{
my $property = $reader->name;
if ($property eq 'name' and $reader->nodeType == 1) # not take ending tag into account <name> </name>
{ $reader->read; $name = $reader->value; }
elsif ($property eq 'number' and $reader->nodeType == 1)
{ $reader->read; $number = $reader->value; }
elsif ($property eq 'protocol' and $reader->nodeType == 1)
{ $reader->read; $protocol = $reader->value; }
elsif ($property eq 'description' and $reader->nodeType == 1)
{
if (not $reader->isEmptyElement) # sometimes happen <description />
{
$reader->read;
while ($reader->depth == 3) # sometimes happen <description>.* <br/><br/> .*</description>; <br/> --> ';'
{
if ($reader->name eq '#text')
{ $description = $description.$reader->value." "; }
elsif ($reader->name eq 'br')
{ $description = $description.";"; }
$reader->read;
}
}
}
elsif ($property eq 'xref' and $reader->nodeType == 1)
{
my $xref = $reader->getAttribute('data');
if (defined $xref)
{
my $xreftype = $reader->getAttribute('type');
if ($xreftype eq 'rfc')
{ $xref =~ tr/a-z/A-Z/; }
$xrefs = "$xrefs [$xref]";
}
}
$reader->read
}
my $comment = $description.$updated.$xrefs;
if ($name eq "")
{ $name = "#"; }
elsif ($comment)
{
$comment =~ s/\n/ /g;
$comment = "# $comment";
}
my $numproto;
if ($number and $protocol)
{
my ($from, $to) = split('-', $number); # handle intervals
if (not $to)
{ $to = $from; }
for (my $i = $from; $i <= $to; $i++)
{
$numproto = "$i/$protocol"; # to print with %-12s
printf SERVICESNEW "%-18s %-12s %s\n", ($name, $numproto, $comment);
}
}
}
elsif ($reader->name eq 'people' and $reader->nodeType == 1)
{
#print SERVICESNEW "#\n";
#print SERVICESNEW "# PEOPLE\n";
#print SERVICESNEW "#\n";
#printf SERVICESNEW "# %-25s%-25s%-25s%s\n", ('ID', 'Name', 'Organization', 'Contact');
#printf SERVICESNEW "# %-25s%-25s%-25s%s\n", ('--', '----', '------------', '-------');
#print SERVICESNEW "#\n";
}
elsif ($reader->name eq 'person')
{
my $xref = $reader->getAttribute('id');
my $name = "";
my $org = "";
my $uri = "";
$reader->read;
while ($reader->depth != 2)
{
if ($reader->name eq 'name' and $reader->nodeType == 1)
{ $reader->read; $name = $reader->value; }
if ($reader->name eq 'org' and $reader->nodeType == 1)
{ $reader->read; $org = $reader->value; }
if ($reader->name eq 'uri' and $reader->nodeType == 1)
{ $reader->read; $uri = $reader->value; }
$reader->read;
}
#printf SERVICESNEW "# %-25s%-25s%-25s%s\n", ($xref, $name, $org, $uri);
}
}
close(SERVICESNEW);

161
services-suse.diff Normal file
View File

@ -0,0 +1,161 @@
--- ./services 2019/04/26 12:53:51 1.1
+++ ./services 2019/04/26 13:01:49
@@ -1,4 +1,16 @@
#
+# Network services, Internet style
+#
+# Note that it is presently the policy of IANA to assign a single well-known
+# port number for both TCP and UDP; hence, most entries here have two entries
+# even if the protocol doesn't support UDP operations.
+#
+# This list could be found on:
+# http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
+#
+# See also: services(5)
+#
+#
# SERVICE NAME AND TRANSPORT PROTOCOL PORT NUMBER REGISTRY
#
# (last updated on 2019-04-15)
@@ -133,8 +145,8 @@
name 42/udp # Host Name Server
nameserver 42/tcp # Host Name Server
nameserver 42/udp # Host Name Server
-nicname 43/tcp # Who Is
-nicname 43/udp # Who Is
+nicname 43/tcp whois # Who Is
+nicname 43/udp whois # Who Is
mpm-flags 44/tcp # MPM FLAGS Protocol
mpm-flags 44/udp # MPM FLAGS Protocol
mpm 45/tcp # Message Processing Module [recv]
@@ -274,8 +286,8 @@
pop2 109/udp # Post Office Protocol - Version 2 [Joyce_K_Reynolds]
pop3 110/tcp # Post Office Protocol - Version 3 [Marshall_Rose]
pop3 110/udp # Post Office Protocol - Version 3 [Marshall_Rose]
-sunrpc 111/tcp # SUN Remote Procedure Call [Chuck_McManis]
-sunrpc 111/udp # SUN Remote Procedure Call [Chuck_McManis]
+sunrpc 111/tcp rpcbind # SUN Remote Procedure Call [Chuck_McManis]
+sunrpc 111/udp rpcbind # SUN Remote Procedure Call [Chuck_McManis]
mcidas 112/tcp # McIDAS Data Transmission Protocol [Glenn_Davis]
mcidas 112/udp # McIDAS Data Transmission Protocol [Glenn_Davis]
ident 113/tcp
@@ -1479,6 +1491,7 @@
cddbp 888/tcp # CD Database Protocol [Steve_Scherf]
omginitialrefs 900/tcp # OMG Initial Refs [Christian_Callsen]
omginitialrefs 900/udp # OMG Initial Refs [Christian_Callsen]
+swat 901/tcp # CONFLICT, not official assigned!
smpnameres 901/tcp # SMPNAMERES [Leif_Ekblad]
smpnameres 901/udp # SMPNAMERES [Leif_Ekblad]
ideafarm-door 902/tcp # self documenting Telnet Door
@@ -3515,6 +3528,9 @@
x25-svc-port 1998/udp # cisco X.25 service (XOT)
tcp-id-port 1999/tcp # cisco identification port
tcp-id-port 1999/udp # cisco identification port
+# Port 2000 is illegal used by sieve
+sieve 2000/tcp # Cyrus SIEVE
+sieve 2000/udp # Cyrus SIEVE
cisco-sccp 2000/tcp # Cisco SCCP [Dan_Wing]
cisco-sccp 2000/udp # Cisco SCCp [Dan_Wing]
dc 2001/tcp
@@ -3614,8 +3630,8 @@
dls 2047/udp
dls-monitor 2048/tcp
dls-monitor 2048/udp
-shilp 2049/tcp
-shilp 2049/udp
+#shilp 2049/tcp <== NOTE Conflict on 2049 !
+#shilp 2049/udp
nfs 2049/tcp # Network File System - Sun Microsystems [Brent_Callaghan]
nfs 2049/udp # Network File System - Sun Microsystems [Brent_Callaghan]
nfs 2049/sctp # Network File System [RFC5665]
@@ -6114,8 +6130,8 @@
sysopt 3281/udp # SYSOPT [Tony_Hoffman]
datusorb 3282/tcp # Datusorb [Thomas_Martin]
datusorb 3282/udp # Datusorb [Thomas_Martin]
-Apple Remote Desktop (Net Assistant) 3283/tcp # Net Assistant (updated 2011-11-09) [Michael_Stein]
-Apple Remote Desktop (Net Assistant) 3283/udp # Net Assistant (updated 2011-11-09) [Michael_Stein]
+net-assistant 3283/tcp # Net Assistant (updated 2011-11-09) [Michael_Stein]
+net-assistant 3283/udp # Net Assistant (updated 2011-11-09) [Michael_Stein]
4talk 3284/tcp # 4Talk [Tony_Bushnell]
4talk 3284/udp # 4Talk [Tony_Bushnell]
plato 3285/tcp # Plato [Jim_Battin]
@@ -6887,8 +6903,8 @@
roverlog 3677/udp # RoverLog IPC [Tom_Mayo]
ipr-dglt 3678/tcp # DataGuardianLT [Bruce_Carlson]
ipr-dglt 3678/udp # DataGuardianLT [Bruce_Carlson]
-Escale (Newton Dock) 3679/tcp # Newton Dock (updated 2011-11-09) [Paul_Guyot]
-Escale (Newton Dock) 3679/udp # Newton Dock (updated 2011-11-09) [Paul_Guyot]
+newton-dock 3679/tcp # Newton Dock (updated 2011-11-09) [Paul_Guyot]
+newton-dock 3679/udp # Newton Dock (updated 2011-11-09) [Paul_Guyot]
npds-tracker 3680/tcp # NPDS Tracker [Paul_Guyot]
npds-tracker 3680/udp # NPDS Tracker [Paul_Guyot]
bts-x73 3681/tcp # BTS X73 Port [Todd_Cooper]
@@ -9154,6 +9170,7 @@
# 5474/tcp Reserved
apsolab-data 5475/tcp # The Apsolab company's data retrieval protocol [Apsolab_Inc] [Jean-Francois_Gauthier]
# 5475/udp Reserved
+axnet 5492/tcp # OFFICIAL NOT ASSIGNED
fcp-addr-srvr1 5500/tcp # fcp-addr-srvr1 [Ken_Wittmer]
fcp-addr-srvr1 5500/udp # fcp-addr-srvr1 [Ken_Wittmer]
fcp-addr-srvr2 5501/tcp # fcp-addr-srvr2 [Ken_Wittmer]
@@ -9176,6 +9193,7 @@
sgi-eventmond 5553/udp # SGI Eventmond Port [Andrei_Vilkotski]
sgi-esphttp 5554/tcp # SGI ESP HTTP [Vladimir_Legalov]
sgi-esphttp 5554/udp # SGI ESP HTTP [Vladimir_Legalov]
+rplay 5555/udp # and by rplay :-(
personal-agent 5555/tcp # Personal Agent [Jackie_Wu]
personal-agent 5555/udp # Personal Agent [Jackie_Wu]
freeciv 5556/tcp # Freeciv gameplay [Reinier_Post_and_Pau]
@@ -9418,8 +9436,8 @@
# 5868/udp Reserved
diameters 5868/sctp # Diameter over DTLS/SCTP [IESG] [IETF_Chair] [RFC6733]
jute 5883/tcp # Javascript Unit Test Environment [Mark_Ethan_Trostler]
-rfb 5900/tcp # Remote Framebuffer [Tristan_Richardson] [RFC6143]
-rfb 5900/udp # Remote Framebuffer [Tristan_Richardson] [RFC6143]
+rfb 5900/tcp vnc-server # Remote Framebuffer [Tristan_Richardson] [RFC6143]
+rfb 5900/udp vnc-server # Remote Framebuffer [Tristan_Richardson] [RFC6143]
cm 5910/tcp # Context Management [Eivan_Cerasi]
cm 5910/udp # Context Management [Eivan_Cerasi]
cm 5910/sctp # Context Management [Justin_Yu]
@@ -11691,7 +11709,12 @@
hde-lcesrvr-2 14937/udp # hde-lcesrvr-2 [Horizon_Digital_Ente]
hydap 15000/tcp # Hypack Data Aquisition (updated 2011-10-27) [HYPACK_Inc] [Mircea_Neacsu]
hydap 15000/udp # Hypack Data Aquisition (updated 2011-10-27) [HYPACK_Inc] [Mircea_Neacsu]
-onep-tls 15002/tcp # Open Network Environment TLS [Cisco_3] [Andrew_Thurber]
+# The following entries are invalid, but needed
+pbs 15001/tcp # pbs server (pbs_server)
+pbs_mom 15002/tcp # mom to/from server
+pbs_resmom 15003/tcp # mom resource management requests
+pbs_resmom 15003/udp # mom resource management requests
+pbs_sched 15004/tcp # scheduler
# 15002/udp Reserved
# 15118/tcp Reserved
v2g-secc 15118/udp # v2g Supply Equipment Communication Controller Discovery Protocol [Holger_Lochner]
@@ -11966,6 +11989,13 @@
# 22128/udp Reserved
easyengine 22222/tcp # EasyEngine is CLI tool to manage WordPress Sites on Nginx server [rtCamp_Solutions_Private_Limited] [Rahul_Bansal]
# 22222/udp Reserved
+# wnn4_* are used illegal and are not OFFICIAL ASSIGNED!
+wnn4_Cn 22289/tcp
+wnn4_Cn 22289/udp
+wnn4_Kr 22305/tcp
+wnn4_Kr 22305/udp
+wnn4_Tw 22321/tcp
+wnn4_Tw 22321/udp
wnn6 22273/tcp # wnn6 [Yasunari_Gon_Yamasit]
wnn6 22273/udp # wnn6 [Yasunari_Gon_Yamasit]
cis 22305/tcp # CompactIS Tunnel [Justin_Paupore]
@@ -12531,3 +12561,13 @@
nusdp-disc 49001/udp # Nuance Unity Service Discovery Protocol [Nuance_Communications_Inc3] [Andrew_Andrews]
inspider 49150/tcp # InSpider System [AnRobot] [Zhang_Xinnan]
# 49150/udp Reserved
+# The mrt entry is temporary until a official number is registerd
+mrt 50000/tcp # telnet interface of mrt programs
+mrt 50000/udp # telnet interface of mrt programs
+#
+# make apple talk more friendly
+#
+rtmp 1/ddp # Routing Table Maintenance Protocol
+nbp 2/ddp # Name Binding Protocol
+echo 4/ddp # AppleTalk Echo Protocol
+zip 6/ddp # Zone Information Protocol

BIN
services.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

10
services_UPDATING Normal file
View File

@ -0,0 +1,10 @@
bunzip2 services.bz2
perl services-create.pl # creates services.new
perl services-compare.pl > services.report # changes (more reader friendly)
bash services-compare.sh > services.diff # differences (more precise)
#... review services.diff and/or services.report
rm services.report services.diff
mv services.new services
#... adjust services-suse.diff
bzip2 services