/* * ip/ports.def: tcp/udp port definitions * * Eliot Dresselhaus * August, 2005 * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* PORT NUMBERS (last updated 18 October 2005) The port numbers are divided into three ranges: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports. The Well Known Ports are those from 0 through 1023. The Registered Ports are those from 1024 through 49151 The Dynamic and/or Private Ports are those from 49152 through 65535 ************************************************************************ * PLEASE NOTE THE FOLLOWING: * * * * 1. UNASSIGNED PORT NUMBERS SHOULD NOT BE USED. THE IANA WILL ASSIGN * * THE NUMBER FOR THE PORT AFTER YOUR APPLICATION HAS BEEN APPROVED. * * * * 2. ASSIGNMENT OF A PORT NUMBER DOES NOT IN ANY WAY IMPLY AN * * ENDORSEMENT OF AN APPLICATION OR PRODUCT, AND THE FACT THAT NETWORK * * TRAFFIC IS FLOWING TO OR FROM A REGISTERED PORT DOES NOT MEAN THAT * * IT IS "GOOD" TRAFFIC. FIREWALL AND SYSTEM ADMINISTRATORS SHOULD * * CHOOSE HOW TO CONFIGURE THEIR SYSTEMS BASED ON THEIR KNOWLEDGE OF * * THE TRAFFIC IN QUESTION, NOT WHETHER THERE IS A PORT NUMBER * * REGISTERED OR NOT. * ************************************************************************ WELL KNOWN PORT NUMBERS The Well Known Ports are assigned by the IANA and on most systems can only be used by system (or root) processes or by programs executed by privileged users. Ports are used in the TCP [RFC793] to name the ends of logical connections which carry long term conversations. For the purpose of providing services to unknown callers, a service contact port is defined. This list specifies the port used by the server process as its contact port. The contact port is sometimes called the "well-known port". To the extent possible, these same port assignments are used with the UDP [RFC768]. The range for assigned ports managed by the IANA is 0-1023. */ ip_port (TCPMUX, 1) ip_port (COMPRESS_NET_MANAGEMENT, 2) ip_port (COMPRESS_NET, 3) ip_port (RJE, 5) ip_port (ECHO, 7) ip_port (DISCARD, 9) ip_port (SYSTAT, 11) ip_port (DAYTIME, 13) ip_port (QOTD, 17) ip_port (MSP, 18) ip_port (CHARGEN, 19) ip_port (FTP_DATA, 20) ip_port (FTP, 21) ip_port (SSH, 22) ip_port (TELNET, 23) ip_port (SMTP, 25) ip_port (NSW_FE, 27) ip_port (MSG_ICP, 29) ip_port (MSG_AUTH, 31) ip_port (DSP, 33) ip_port (TIME, 37) ip_port (RAP, 38) ip_port (RLP, 39) ip_port (GRAPHICS, 41) ip_port (NAME, 42) ip_port (NAMESERVER, 42) ip_port (NICNAME, 43) ip_port (MPM_FLAGS, 44) ip_port (MPM, 45) ip_port (MPM_SND, 46) ip_port (NI_FTP, 47) ip_port (AUDITD, 48) ip_port (TACACS, 49) ip_port (RE_MAIL_CK, 50) ip_port (LA_MAINT, 51) ip_port (XNS_TIME, 52) ip_port (DNS, 53) ip_port (XNS_CH, 54) ip_port (ISI_GL, 55) ip_port (XNS_AUTH, 56) ip_port (XNS_MAIL, 58) ip_port (NI_MAIL, 61) ip_port (ACAS, 62) ip_port (WHOIS_PLUS_PLUS, 63) ip_port (COVIA, 64) ip_port (TACACS_DS, 65) ip_port (ORACLE_SQL_NET, 66) ip_port (BOOTPS, 67) ip_port (BOOTPC, 68) ip_port (TFTP, 69) ip_port (GOPHER, 70) ip_port (NETRJS_1, 71) ip_port (NETRJS_2, 72) ip_port (NETRJS_3, 73) ip_port (NETRJS_4, 74) ip_port (DEOS, 76) ip_port (VETTCP, 78) ip_port (FINGER, 79) ip_port (WWW, 80) ip_port (HOSTS2_NS, 81) ip_port (XFER, 82) ip_port (MIT_ML_DEV, 83) ip_port (CTF, 84) ip_port (MIT_ML_DEV1, 85) ip_port (MFCOBOL, 86) ip_port (KERBEROS, 88) ip_port (SU_MIT_TG, 89) ip_port (DNSIX, 90) ip_port (MIT_DOV, 91) ip_port (NPP, 92) ip_port (DCP, 93) ip_port (OBJCALL, 94) ip_port (SUPDUP, 95) ip_port (DIXIE, 96) ip_port (SWIFT_RVF, 97) ip_port (TACNEWS, 98) ip_port (METAGRAM, 99) ip_port (NEWACCT, 100) ip_port (HOSTNAME, 101) ip_port (ISO_TSAP, 102) ip_port (GPPITNP, 103) ip_port (ACR_NEMA, 104) ip_port (CSO, 105) ip_port (CSNET_NS, 105) ip_port (3COM_TSMUX, 106) ip_port (RTELNET, 107) ip_port (SNAGAS, 108) ip_port (POP2, 109) ip_port (POP3, 110) ip_port (SUNRPC, 111) ip_port (MCIDAS, 112) ip_port (IDENT, 113) ip_port (SFTP, 115) ip_port (ANSANOTIFY, 116) ip_port (UUCP_PATH, 117) ip_port (SQLSERV, 118) ip_port (NNTP, 119) ip_port (CFDPTKT, 120) ip_port (ERPC, 121) ip_port (SMAKYNET, 122) ip_port (NTP, 123) ip_port (ANSATRADER, 124) ip_port (LOCUS_MAP, 125) ip_port (NXEDIT, 126) ip_port (LOCUS_CON, 127) ip_port (GSS_XLICEN, 128) ip_port (PWDGEN, 129) ip_port (CISCO_FNA, 130) ip_port (CISCO_TNA, 131) ip_port (CISCO_SYS, 132) ip_port (STATSRV, 133) ip_port (INGRES_NET, 134) ip_port (EPMAP, 135) ip_port (PROFILE, 136) ip_port (NETBIOS_NS, 137) ip_port (NETBIOS_DGM, 138) ip_port (NETBIOS_SSN, 139) ip_port (EMFIS_DATA, 140) ip_port (EMFIS_CNTL, 141) ip_port (BL_IDM, 142) ip_port (IMAP, 143) ip_port (UMA, 144) ip_port (UAAC, 145) ip_port (ISO_TP0, 146) ip_port (ISO_IP, 147) ip_port (JARGON, 148) ip_port (AED_
#!/bin/bash
# Make sure that we get the hugepages we need on provision boot
# Note: The package install should take care of this at the end
# But sometimes after all the work of provisioning, we can't
# get the requested number of hugepages without rebooting.
# So do it here just in case
sysctl -w vm.nr_hugepages=1024
HUGEPAGES=`sysctl -n vm.nr_hugepages`
if [ $HUGEPAGES != 1024 ]; then
echo "ERROR: Unable to get 1024 hugepages, only got $HUGEPAGES. Cannot finish."
exit
fi
if [ "$(uname)" <> "Darwin" ]; then
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
fi
# Do initial setup for the system
if [ "$OS_ID" == "ubuntu" ]; then
export DEBIAN_PRIORITY=critical
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
APT_OPTS="--assume-yes --no-install-suggests --no-install-recommends -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\""
# Standard update + upgrade dance
apt-get update ${APT_OPTS} >/dev/null
apt-get upgrade ${APT_OPTS} >/dev/null
# Fix the silly notion that /bin/sh should point to dash by pointing it to bash
update-alternatives --install /bin/sh sh /bin/bash 100
# Install useful but non-mandatory tools
apt-get install -y emacs x11-utils git-review gdb gdbserver xfce4-terminal iperf3
elif [ "$OS_ID" == "centos" ]; then
if [ "$(