声明:非原创,只是摘录和简单整理:)
从/etc/inetd.conf学习服务(3)
1.
ftp
baidu
百科有时候还是不错的。
http://baike.baidu.com/view/369.htm
copy from /etc/service
ftp-data 20/tcp #File Transfer [Default Data]
ftp-data 20/udp #File Transfer [Default Data]
ftp 21/tcp #File Transfer [Control]
ftp 21/udp #File Transfer [Control]
如何配置一个
ftp
服务器
~
这个另外开篇再学
:)
另外印象中
sourceforge
上有开源的
ftp solution
的项目,有兴趣的可以搞一搞
~
2.
ssh
SSH
为
Secure Shell
的缩写,由
IETF
的网络工作小组(
Network Working Group
)所制定;
SSH
为建立在
应用层
和
传输层
基础上的安全协议。
请参考
http://zh.wikipedia.org/wiki/SSH
如何配置
ssh
服务,再看吧
~
:)
如果有兴趣,可以整一整
Openssh.
估计强的!
3.
telnet
百度百科是个好东西
http://baike.baidu.com/view/44255.htm
4.
shell
copy from /etc/service
shell 514/tcp cmd #like exec, but automatic
# authentication is performed as for
# login server
5.
login
login 513/tcp #remote login a la telnet;
# automatic authentication performed
# based on priviledged port numbers
# and distributed data bases which
# identify "authentication domains"
6.
finger
http://www.computerhope.com/unix/ufinger.htm
7.
ntalk
8.
tftp
这里有一篇文章
http://www.hackbase.com/tech/2009-06-24/53404.html
9.
bootps
bootps = UDP port 67
bootpc = UDP port 68
netbios-ns = TCP port 137 ( Windows
Name Lookup)
netbios-dgm = TCP port 138 ( Windows
File Sharing)
netbios-ssn = TCP port 139 (Windows
File Sharing Probe)
Ports 67 (bootps) and 68 (bootpc) are used in the DHCP process of a DHCP server that supports bootp. Port 139 is used by Windows machines for NetBIOS name resolution, WINS. It is also used by the Windows �Browsing� Service.
DHCP process:
1. A client PC without an IP address will
send a �DHCP Discover� message on
255.255.255.255:67
This is the broadcast address, using
UDP port #67, (bootps).
This message will include the client�s
MAC, and an IP address of 0.0.0.0
2. The DHCP server will repond with a DHCP
Offer message on 255.255.255.255:68.
This is the broadcast address, using
UDP port #68, (bootpc).
3. The client PC will then send the DHCP
server a DHCP Request message on
255.255.255.255:67
4. The DHCP server will then send a DHCP
Ack message on 255.255.255.255:68
WINS and Browsing:
Port 139 is used by Windows machines for NetBIOS name resolution, i.e., WINS. Additionally, the Windows �Browsing Service� uses TCP ports 137, 138, and 139. The three ports, 137, 138,139 are all known as NetBIOS-over-TCP (NbT) ports, and are also individually referred to as the following:
TCP port 137 = NetBIOS Name Service
TCP port 138 = NetBIOS Datagram Service
TCP port 139 = NetBIOS Session Service
10.
daytime
原始连接:
http://www.longen.org/A-D/detaila-d/DaytimeProtocol.htm
Daytime
协议:有些协议真不大,看看也没有害处,知道不是所有的协议都是那么可怕的(同时又是很有意思的)。
有一个有用的调试工具就是
daytime
服务
。它的作用就是返回当前时间和日期,格式是字符串格式。
基于
TCP
的
daytime
服务
daytime
服务
是基于
TCP
的应用,服务器在
TCP
端口
13
侦听,一旦有连接建立就返回
ASCII
形式的日期和时间,在传送完后关闭连接。接收到的数据被忽略。
基于
UDP
的
daytime
服务
daytime
服务
也可以使用
UDP
协议,它的端口也是
13
,不过
UDP
是用数据报传送当前时间的。接收到的数据被忽略。
Daytime
格式
对于
daytime
没有特定的格式,建议使用
ASCII
可打印字符,空格和回车换行符。
daytime
应该在一行上。下面是两种流行的格式:
Weekday, Month Day, Year Time-Zone
例子:
Tuesday, February 22, 1982 17:37:43-PST
和用于
SMTP
中的格式:
dd mmm yy hh:mm:ss zzz
例子:
02 FEB 82 07:59:01 PST
后续...