cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10450
Views
0
Helpful
5
Replies

List of TCP/UDP port mnemonics

jedavis
Level 4
Level 4

Is there a list of the port and protocol mnemonics used by Cisco somewhere?  I am talking about those used in access lists, like "www" for port 80 and "smtp" for port 25, e.g.

access-list XXX extended permit udp host 1.1.1.1 host 1.1.1.2 eq domain

I have never seen one anywhere.  I just ran across an ACE with the mnemonics file-tcp and file-udp.  How do I resolve those to numeric port numbers?  Is there some way to display ACLs numerically?

Thanks,

-Jeff

5 Replies 5

Thanks Jack, but I am not trying to memorize anything.  I just want to know what port file-tcp and file-udp refer to.  I thought maybe Cisco used the service names documented in RFC6335, Service Name and Transport Protocol Port Number Registry.  

http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

But when I search that list I find no reference to file-tcp or file-udp.

jedavis
Level 4
Level 4

Um... oops.  The file-tcp and file-udp were references to service object groups, not service names.  So that clears that up.  Still, I have run into this issue before and this is still a valid question.  Where is the list of port number and service names used by Cisco?

Ok well I used the brute force method and created an ACL with all possible ports from 1 - 8192 on PixOS 8.2.  This is what I came up with:

7echo
9discard
13daytime
19chargen
20ftp-data
21ftp
22ssh
23telnet
25smtp
43whois
49tacacs
53domain
70gopher
79finger
80www
101hostname
109pop2
110pop3
111sunrpc
113ident
119nntp
139netbios-ssn
143imap4
179bgp
194irc
389ldap
443https
496pim-auto-rp
512exec
513login
514rsh
515lpd
517talk
540uucp
543klogin
544kshell
554rtsp
636ldaps
750kerberos
1352lotusnotes
1494citrix-ica
1521sqlnet
1720h323
1723 pptp
2049nfs
2748ctiqbe
3020cifs
5060sip
5190aol
5631pcanywhere-data

Hi Jeff,

 

The ports in the ACL are complied to IANA's registration here http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml. Not all routers support every single port number here. But they should be compliant if they do support the port number.

Here's a list of port I found using VIRL's simulated router. They are the most commonly used one.

 

  bgp          Border Gateway Protocol (179)

  chargen      Character generator (19)

  cmd          Remote commands (rcmd, 514)

  daytime      Daytime (13)

  discard      Discard (9)

  domain       Domain Name Service (53)

  drip         Dynamic Routing Information Protocol (3949)

  echo         Echo (7)

  exec         Exec (rsh, 512)

  finger       Finger (79)

  ftp          File Transfer Protocol (21)

  ftp-data     FTP data connections (20)

  gopher       Gopher (70)

  hostname     NIC hostname server (101)

  ident        Ident Protocol (113)

  irc          Internet Relay Chat (194)

  klogin       Kerberos login (543)

  kshell       Kerberos shell (544)

  login        Login (rlogin, 513)

  lpd          Printer service (515)

  nntp         Network News Transport Protocol (119)

  onep-plain   ONEP Cleartext (15001)

  onep-tls     ONEP TLS (15002)

  pim-auto-rp  PIM Auto-RP (496)

  pop2         Post Office Protocol v2 (109)

  pop3         Post Office Protocol v3 (110)

  smtp         Simple Mail Transport Protocol (25)

  sunrpc       Sun Remote Procedure Call (111)

  tacacs       TAC Access Control System (49)

  talk         Talk (517)

  telnet       Telnet (23)

  time         Time (37)

  uucp         Unix-to-Unix Copy Program (540)

  whois        Nicname (43)

  www          World Wide Web (HTTP, 80)

 

Regards,

 

Jack

Review Cisco Networking for a $25 gift card