Open Source Library (UK)

Sunday, August 20, 2006

listed system services

if you want to specify service names instead of port numbers

/etc/services

checking your routes

list all routes you kernel is using via /sbin/route

Sunday, April 30, 2006

repartitioning your system live / adding new partitions

thanks to http://www.namesys.com/shrink_reiserfs.html and http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html

well, after my hard drive finished acting weird and made me re-install linux, in my haste to get the job done I somehow managed to overlook swap space (i don't know how) and for some reason the debian installer didn't warn me (every other distro i have used has gone "hold up dude, yer screwing up here")!

anyways, i looked into making the necessary changes on the live install with minimal disruption to the service provided by the server (it's the sole gateway to the internet for all my users) and after I made the changes I thought it would make a really good section for this blog, just in case i need it again.

this will just be a copy and paste exercise from the websites mentioned:

Shrinking reiserfs partition HOW-TO

(live example)

Preliminaries

The reiserfs filesystem has a tool for changing its size. Extending of a reiserfs volume can be done if the fs is mounted as well as for not mounted fs. Fs shrinking is supported only when fs is unmounted.

0. Before any change of the disk partition table

First of all you need to backup partition table into a file. If you make a mistake you can re-create partitions at their initial correct places.

[root@haron root]# fdisk -l -u /dev/hda > hda.table.save
[root@haron root]# cat hda.table.save


Disk /dev/hda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
Device Boot Start End Blocks Id System
/dev/hda1 * 63 122881184 61440561 83 Linux
/dev/hda2 122881185 151557209 14338012+ 83 Linux
/dev/hda4 151557210 156312449 2377620 82 Linux swap
[root@haron root]#

1. Here we start

[root@haron root]# df -T /mnt/testfs/
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/hda2 reiserfs 14337568 2143672 12193896 15% /mnt/testfs
[root@haron root]#

2. umount the fs and shrink it by 10G (for dirs like /opt, reboot into recovery mode)

further, -s-10G = "shrink by 10GB (100GB - 10GB = 90GB)" and -s+10G = "grow by 10GB (100GB + 10GB = 110GB)"

[root@haron root]# umount /mnt/testfs/

[root@haron root]# resize_reiserfs -s-10G -f /dev/hda2
resize_reiserfs 3.6.11 (2003 www.namesys.com)

You are running BETA version of reiserfs shrinker.
This version is only for testing or VERY CAREFUL use.
Backup of you data is recommended.

Do you want to continue? [y/N]:y
Processing the tree: 0%....20%....40%....60%....80%....100% left 0, 65963 /sec

nodes processed (moved):
int 100 (0),
leaves 15493 (0),
unfm 512116 (0),
total 527709 (0).

check for used blocks in truncated region

ReiserFS report:
blocksize 4096
block count 963063 (3584503)
free blocks 427114 (3048474)
bitmap block count 30 (110)

Syncing..done


resize_reiserfs: Resizing finished successfully.

3. find the fs new size

The new fs size is in resize_reiserfs final report: it said that block count now is 963063. Another way to determine fs size is to run debugreiserfs(8)
[root@haron root]# debugreiserfs /dev/hda2
debugreiserfs 3.6.11 (2003 www.namesys.com)


Filesystem state: consistent

Reiserfs super block in block 16 on 0x302 of format 3.6 with standard journal
Count of blocks on the device: 963063
Number of bitmaps: 30
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 427114
Root block: 8674
Filesystem is cleanly umounted
Tree height: 4
Hash function used to sort names: "r5"
Objectid map size 2, max 972
Journal parameters:
Device [0x0]
Magic [0x60aa06b]
Size 8193 blocks (including 1 for journal header) (first block 18)
Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:
sb_version: 2
inode generation number: 0
UUID: 467aea6f-16a8-445c-9f3b-7c8ef590894e
LABEL:
Set flags in SB:
ATTRIBUTES CLEAN
The number "Count of blocks on the device" indeed is number of blocks in the fs.

4. resizing underlying disk partition by fdisk(8) (size info is step 5)

for this section, precision is essential so if the original start sector is diff to the new one fdisk provides, use the original instead of the new

[root@haron root]# fdisk /dev/hda
First, we ask fdisk to show partition boundaries in sectors, not in blocks, because we need maximum precision there.
Command (m for help): u
Changing display/entry units to sectors

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 63 122881184 61440561 83 Linux
/dev/hda2 122881185 151557209 14338012+ 83 Linux
/dev/hda4 151557210 156312449 2377620 82 Linux swap
Then we delete partition #2 ...
Command (m for help):d
Partition number (1-4): 2
Command (m for help): p

Disk /dev/hda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 63 122881184 61440561 83 Linux
/dev/hda4 151557210 156312449 2377620 82 Linux swap
... and create new one with same start offset and the new size.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First sector (122881185-156312575, default 122881185):
Using default value 122881185
Last sector or +size or +sizeM or +sizeK (122881185-151557209, default 151557209): 130585688

number 130585688 is calculated as ( 122881185 (hda2 start) + 963063 (fs size in 4k blocks) * 8 (sectors per 4k block) - 1) by bc -l:
$ bc -l
bc 1.06
122881185 + 963063 * 8 - 1
130585688

add free space for another one partition
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 3
First sector (130585689-156312575, default 130585689):
Using default value 130585689
Last sector or +size or +sizeM or +sizeK (130585689-151557209, default 151557209):
Using default value 151557209

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@haron root]# reboot

Broadcast message from root (pts/0) (Mon Dec 8 21:11:03 2003):

The system is going down for reboot NOW!

5. Check result fs by reiserfsck(8)

[root@haron root]# echo Yes | reiserfsck /dev/hda2
reiserfsck 3.6.11 (2003 www.namesys.com)

*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************

Will read-only check consistency of the filesystem on /dev/hda2
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):###########
reiserfsck --check started at Mon Dec 8 21:14:56 2003
###########
Replaying journal..
0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 15493
Internal nodes 100
Directories 5733
Other files 67471
Data block pointers 512124 (8 of them are zero)
Safe links 0
###########
reiserfsck finished at Mon Dec 8 21:15:16 2003
###########
Reiserfsck reports that everything is OK.


Adding Swap Space
with the partition shrunk, create a new swap partition as follows:

fdisk /dev/hda

n (new partition)

p (primary partition

+1000M (1GB sized swap)

t

82

w


all done!
mkswap /dev/hdb2
To enable the swap partition immediately, type the following command:

swapon /dev/hdb2
To enable it at boot time, edit /etc/fstab to include:

/dev/hdb2 swap swap defaults 0 0
The next time the system boots, it will enable the new swap partition.

After adding the new swap partition and enabling it, make sure it is enabled by using the command free.

Saturday, April 22, 2006

samba config memory jogger

http://www.samba.netfirms.com/faq.htm

Friday, April 21, 2006

reconfigure xfree86

use dpkg xserver-xfree86

Monday, April 17, 2006

debian global path (global environment variable)

everytime I want to make changes to this, I forget its location :-s

to combat this, here's my bookmark:

/etc/profile

for those who have never done this in Linux before, but have in windows, you append things in the same manner you do in windows, using : as separators as opposed to ;

if you do not feel adventurous you can just add to the bottom of the file: export PATH=$PATH:/location/of/new/feature

this can also be added to individual users shell rc files (.bashrc for example) if you only want certain users to have the program in their path

alternativley of course, you could just add a symbolic link to /usr/bin :-)

like this:

cd /usr/bin
ln -s /path/to/program

be forewarned though, this only works for self-contained programs! so programs such as Azureus which use the path they were called from to locate its JAR files will not work using this!

Tuesday, February 14, 2006

a good read

http://www.novell.com/linux/truth/better_choice.html

dns and bind

i really cannot be bothered to explain how, its a long process and you need to be in the know in the first place, so here's the manual: Manual

O'Reilly is an excellent resource on this, I highly recommend it

a quick and dirty way to get scripts to start with the system in debian

i appologise but i cannot remember where i found this as it was so long ago. this script is very quick and dirty and is useless past simple uses, if youre program requires a proper startup, restart and shutdown script then don't use this, YOU HAVE BEEN WARNED! i use it for my firewall. basically take a simple script such as the reboot (/etc/init.d/reboot) script and modify it to your needs, for me, it just points to my firewall:

#! /bin/sh
#
# reboot Execute the reboot command.
#
# Version: @(#)reboot 2.75 22-Jun-1998 miquels@cistron.nl
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin

echo -n "Rebooting... "
reboot -d -f -i

converted to:
#! /bin/sh
#
#
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin

echo "Starting Firewall and NAT"
/home/firewall-scripts/firewall


once created (and left in the /etc/init.d directory) call update-rc.d path/to/filename defaults to get it added to all the default debian startups, if you want to manually work out which runlevels it should start on, read the update-rc.d manual

an example firewall

this one's title isnt linked because i have made several modifications to the site where i originally learnt this, but i will link that site: http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html, infact, i'll link the whole place because its good: http://yolinux.com/ and most specifically, the tutorials section: http://yolinux.com/TUTORIALS/

anyway, here's the example firewalls:

firewall:

# Delete and flush. Default table is "filter". Others like "nat" must be explicitly stated.
iptables --flush # - Flush all the rules in filter and nat tables
iptables --table nat --flush
iptables --delete-chain # - Delete all chains that are not in default filter and nat table
iptables --table nat --delete-chain

# Set up IP FORWARDing and Masquerading
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 # Transparency for Squid
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

iptables -A INPUT -i lo -p all -j ACCEPT # - Allow self access by loopback interface
iptables -A OUTPUT -o lo -p all -j ACCEPT

iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT #- Accept established connections
iptables -A INPUT -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT #- Accept established connections

iptables -A INPUT -p tcp --tcp-option ! 2 -j REJECT --reject-with tcp-reset

iptables -A INPUT -p tcp --dport 21 -j ACCEPT # - Open ftp port
iptables -A INPUT -p udp --dport 21 -j ACCEPT

iptables -A INPUT -p tcp --dport 22 -j ACCEPT # - Open secure shell port
iptables -A INPUT -p udp --dport 22 -j ACCEPT

iptables -A INPUT -p tcp --dport 53 -j ACCEPT # - Open DNS ports
iptables -A INPUT -p udp --dport 53 -j ACCEPT

iptables -A INPUT -p tcp --dport 80 -j ACCEPT # - Open HTTP port
iptables -A INPUT -p udp --dport 80 -j ACCEPT

iptables -A INPUT -p tcp --dport 8080 -j ACCEPT # - Open Tomcat port
iptables -A INPUT -p udp --dport 8080 -j ACCEPT

iptables -A INPUT -p tcp -i eth1 --dport 445 -j ACCEPT # - Open SMB port - Internal Network Only
iptables -A INPUT -p udp -i eth1 --dport 445 -j ACCEPT

iptables -A INPUT -p tcp -i eth1 --dport 139 -j ACCEPT # - Open NetBios port - Internal Network Only
iptables -A INPUT -p udp -i eth1 --dport 139 -j ACCEPT

iptables -A INPUT -p tcp -i eth1 --dport 137 -j ACCEPT # - Open NetBios-ns port - Internal Network Only
iptables -A INPUT -p udp -i eth1 --dport 137 -j ACCEPT

iptables -A INPUT -p tcp -i eth1 --dport 138 -j ACCEPT # - Open NetBios port-dgm - Internal Network Only
iptables -A INPUT -p udp -i eth1 --dport 138 -j ACCEPT

iptables -A INPUT -p tcp -i eth1 --dport 123 -j ACCEPT # - Open NTP port - Internal Network Only
iptables -A INPUT -p udp -i eth1 --dport 123 -j ACCEPT

iptables -A INPUT -p tcp --dport 49152:65534 -j ACCEPT # - Passive FTP ports
iptables -A INPUT -p udp --dport 49152:65534 -j ACCEPT

iptables -P INPUT DROP # - Drop all other connection attempts. Only connections defined above are allowed.

echo 1 > /proc/sys/net/ipv4/ip_forward # - Enables packet forwarding by kernel
#--END--

this works for IPv4, when the IPv6 version becomes relevant, I'll post it :)

EDIT: Another great resource is from James Stephens at: http://www.sns.ias.edu/~jns/wp/iptables/

Thursday, February 02, 2006

A-Z of BASH Commands

alias Create an alias
awk Find and Replace text, database sort/validate/index
break Exit from a loop
builtin Run a shell builtin

cal Display a calendar
case Conditionally perform a command
cat Display the contents of a file
cd Change Directory
cfdisk Partition table manipulator for Linux
chgrp Change group ownership
chmod Change access permissions
chown Change file owner and group
chroot Run a command with a different root directory
cksum Print CRC checksum and byte counts
clear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line
command Run a command - ignoring shell functions
continue Resume the next iteration of a loop
cp Copy one or more files to another location
cron Daemon to execute scheduled commands
crontab Schedule a command to run at a later time
csplit Split a file into context-determined pieces
cut Divide a file into several parts

date Display or change the date & time
dc Desk Calculator
dd Data Dump - Convert and copy a file
declare Declare variables and give them attributes
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dir Briefly list directory contents
dircolors Colour setup for `ls'
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
du Estimate file space usage

echo Display message on screen
ed A line-oriented text editor (edlin)
egrep Search file(s) for lines that match an extended expression
eject Eject CD-ROM
enable Enable and disable builtin shell commands
env Display, set, or remove environment variables
eval Evaluate several commands/arguments
exec Execute a command
exit Exit the shell
expand Convert tabs to spaces
export Set an environment variable
expr Evaluate expressions

factor Print prime factors
false Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk Partition table manipulator for Linux
fgrep Search file(s) for lines that match a fixed string
find Search for files that meet a desired criteria
fmt Reformat paragraph text
fold Wrap text to fit a specified width.
for Expand words, and execute commands
format Format disks or tapes
free Display memory usage
fsck Filesystem consistency check and repair.
function Define Function Macros

gawk Find and Replace text within file(s)
getopts Parse positional parameters
grep Search file(s) for lines that match a given pattern
groups Print group names a user is in
gzip Compress or decompress named file(s)

hash Remember the full pathname of a name argument
head Output the first part of file(s)
history Command History
hostname Print or set system name

id Print user and group id's
if Conditionally perform a command
import Capture an X server screen and save the image to file
info Help info
install Copy files and set attributes

join Join lines on a common field

kill Stop a process from running

less Display output one screen at a time
let Perform arithmetic on shell variables
ln Make links between files
local Create variables
locate Find files
logname Print current login name
logout Exit a login shell
lpc Line printer control program
lpr Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm Remove jobs from the print queue
ls List information about file(s)

m4 Macro processor
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mv Move or rename files or directories

nice Set the priority of a command or job
nl Number lines and write files
nohup Run a command immune to hangups

passwd Modify a user password
paste Merge lines of files
pathchk Check file name portability
popd Restore the previous value of the current directory
pr Convert text files for printing
printcap Printer capability database
printenv Print environment variables
printf Format and print data
ps Process status
pushd Save and then change the current directory
pwd Print Working Directory

quota Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

ram ram disk device
rcp Copy files between two machines.
read read a line from standard input
readonly Mark variables/functions as readonly
remsync Synchronize remote files via email
return Exit a shell function
rm Remove files
rmdir Remove folder(s)
rpm Remote Package Manager
rsync Remote file copy (Synchronize file trees)

screen Terminal window manager
sdiff Merge two files interactively
sed Stream Editor
select Accept keyboard input
seq Print numeric sequences
set Manipulate shell variables and functions
shift Shift positional parameters
shopt Shell Options
shutdown Shutdown or restart linux
sleep Delay for a specified time
sort Sort text files
source Run commands from a file `.'
split Split a file into fixed-size pieces
su Substitute user identity
sum Print a checksum for a file
symlink Make a new name for a file
sync Synchronize data on disk with memory

tac Concatenate and write files in reverse
tail Output the last part of files
tar Tape ARchiver
tee Redirect output to multiple files
test Evaluate a conditional expression
time Measure Program Resource Use
times User and system times
touch Change file timestamps
top List processes running on the system
traceroute Trace Route to Host
trap Run a command when a signal is set(bourne)
tr Translate, squeeze, and/or delete characters
true Do nothing, successfully
tsort Topological sort
tty Print filename of terminal on stdin
type Describe a command

ulimit Limit user resources
umask Users file creation mask
umount Unmount a device
unalias Remove an alias
uname Print system information
unexpand Convert spaces to tabs
uniq Uniquify files
units Convert units from one scale to another
unset Remove variable or function names
unshar Unpack shell archive scripts
until Execute commands (until error)
useradd Create new user account
usermod Modify user account
users List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v Verbosely list directory contents (`ls -l -b')
vdir Verbosely list directory contents (`ls -l -b')

watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Report all known instances of a command
which Locate a program file in the user's path.
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un')

xargs Execute utility, passing constructed argument list(s)
yes Print a string until interrupted

.period Run commands from a file
### Comment / Remark

standard used port numbers

0
1 tcpmux
3
4
5 rje
7 echo
9 discard
11 systat
13 daytime
15 netstat
17 qotd
18 send/rwp
19 chargen
20 ftp-data
21 ftp
22 ssh, pcAnywhere
23 Telnet
25 SMTP
27 ETRN
29 msg-icp
31 msg-auth
33 dsp
37 time
38 RAP
39 rlp
40
41
42 nameserv, WINS
43 whois, nickname
49 TACACS, Login Host Protocol
50 RMCP, re-mail-ck
53 DNS
57 MTP
59 NFILE
63 whois++
66 sql*net
67 bootps
68 bootpd/dhcp
69 Trivial File Transfer Protocol (tftp)
70 Gopher
79 finger
80 www-http
87
88 Kerberos, WWW
95 supdup
96 DIXIE
98 linuxconf
101 HOSTNAME
102 ISO, X.400, ITOT
105 cso
106 poppassd
109 POP2
110 POP3
111 Sun RPC Portmapper
113 identd/auth
115 sftp
116
117 uucp
118
119 NNTP
120 CFDP
123 NTP
124 SecureID
129 PWDGEN
133 statsrv
135 loc-srv/epmap
137 netbios-ns
138 netbios-dgm (UDP)
139 NetBIOS
143 IMAP
144 NewS
150
152 BFTP
153 SGMP
156
161 SNMP
175 vmnet
177 XDMCP
178 NextStep Window Server
179 BGP
180 SLmail admin
199 smux
210 Z39.50
213
218 MPP
220 IMAP3
256
257
258
259 ESRO
264 FW1_topo
311 Apple WebAdmin
350 MATIP type A
351 MATIP type B
360
363 RSVP tunnel
366 ODMR (On-Demand Mail Relay)
371
387 AURP (AppleTalk Update-Based Routing Protocol)
389 LDAP
407 Timbuktu
427
434 Mobile IP
443 ssl
444 snpp, Simple Network Paging Protocol
445 SMB
458 QuickTime TV/Conferencing
468 Photuris
475
500 ISAKMP, pluto
511
512 biff, rexec
513 who, rlogin
514 syslog, rsh
515 lp, lpr, line printer
517 talk
520 RIP (Routing Information Protocol)
521 RIPng
522 ULS
531 IRC
543 KLogin, AppleShare over IP
545 QuickTime
548 AFP
554 Real Time Streaming Protocol
555 phAse Zero
563 NNTP over SSL
575 VEMMI
581 Bundle Discovery Protocol
593 MS-RPC
608 SIFT/UFT
626 Apple ASIA
631 IPP (Internet Printing Protocol)
635 mountd
636 sldap
642 EMSD
648 RRP (NSI Registry Registrar Protocol)
655 tinc
660 Apple MacOS Server Admin
666 Doom
674 ACAP
687 AppleShare IP Registry
700 buddyphone
705 AgentX for SNMP
901 swat, realsecure
993 s-imap
995 s-pop
999
1024
1025
1050
1062 Veracity
1080 SOCKS
1085 WebObjects
1100
1105
1114
1227 DNS2Go
1234
1243 SubSeven
1338 Millennium Worm
1352 Lotus Notes
1381 Apple Network License Manager
1417 Timbuktu
1418 Timbuktu
1419 Timbuktu
1420
1433 Microsoft SQL Server
1434 Microsoft SQL Monitor
1477
1478
1490
1494 Citrix ICA Protocol
1498
1500
1503 T.120
1521 Oracle SQL
1522
1524
1525 prospero
1526 prospero
1527 tlisrv
1529
1547
1604 Citrix ICA, MS Terminal Server
1645 RADIUS Authentication
1646 RADIUS Accounting
1680 Carbon Copy
1701 L2TP/LSF
1717 Convoy
1720 H.323/Q.931
1723 PPTP control port
1731
1755 Windows Media .asf
1758 TFTP multicast
1761
1762
1808
1812 RADIUS server
1813 RADIUS accounting
1818 ETFTP
1968
1973 DLSw DCAP/DRAP
1975
1978
1979
1985 HSRP
1999 Cisco AUTH
2000
2001 glimpse
2005
2010
2023
2048
2049 NFS
2064 distributed.net
2065 DLSw
2066 DLSw
2080
2106 MZAP
2140 DeepThroat
2301 Compaq Insight Management Web Agents
2327 Netscape Conference
2336 Apple UG Control
2345
2427 MGCP gateway
2504 WLBS
2535 MADCAP
2543 sip
2565
2592 netrek
2727 MGCP call agent
2766
2628 DICT
2998 ISS Real Secure Console Service Port
3000 Firstclass
3001
3031 Apple AgentVU
3052
3128 squid
3130 ICP
3150 DeepThroat
3264 ccmail
3283 Apple NetAssitant
3288 COPS
3305 ODETTE
3306 mySQL
3352
3389 RDP Protocol (Terminal Server)
3520
3521 netrek
3879
4000 icq, command-n-conquer
4045
4144
4242
4321 rwhois
4333 mSQL
4444
47017
4827 HTCP
5000
5001
5002
5004 RTP
5005 RTP
5010 Yahoo! Messenger
5050
5060 SIP
5135
5150
5190 AIM
5222
5353
5400
5500 securid
5501 securidprop
5300
5423 Apple VirtualUser
5555
5556
5631 PCAnywhere data
5632 PCAnywhere
5678
5800 VNC
5801 VNC
5900 VNC
5901 VNC
5843
6000 X Windows
6112 BattleNet
6050
6499
6500
6502 Netscape Conference
6547
6548
6549
6666
6667 IRC
6670 VocalTec Internet Phone, DeepThroat
6699 napster
6776 Sub7
6968
6969
6970 RTP
6971
7000
7007 MSBD, Windows Media encoder
7070 RealServer/QuickTime
7161
7323
7777
7778 Unreal
7640
7648 CU-SeeMe
7649 CU-SeeMe
7654
8000
8002
8010 WinGate 2.1
8080 HTTP
8100
8181 HTTP
8383 IMail WWW
8765
8875 napster
8888 napster
8890
9000
9090
9200
9704
9669
9876
9989
10008 cheese worm
10752
12345
11371 PGP 5 Keyserver
12346
13000
13223 PowWow
13224 PowWow
14000
14237 Palm
14238 Palm
14690
16969
18888 LiquidAudio
21157 Activision
22555
22703
22793
23213 PowWow
23214 PowWow
23456 EvilFTP
26000 Quake
27000
27001 QuakeWorld
27010 Half-Life
27015 Half-Life
27374
27444
27665
27910
27960 QuakeIII
28000
28001
28002
28003
28004
28005
28006
28007
28008
30029 AOL Admin
30100
30101
30102
30103
30303
30464
31335
31337 Back Orifice
32000
32771
32777 rpc.walld
34555
40193 Novell
41524 arcserve discovery
45000 Cisco NetRanger postofficed
50505
52901
54321
61000
65301
Multicast hidden
ICMP Type hidden
9998
32773 rpc.ttdbserverd
32776 rpc.spray
32779 rpc.cmsd
38036 timestep