找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: wbyz20

[layer7] 全力打造中国第一个ROS3.0X L7模版,如有错误请更正!!!!

[复制链接]
发表于 2008-10-16 09:19:31 | 显示全部楼层
Skype
From Protocolinfo
Jump to: navigation, search
Skype is an instant messenger, chat, file transfer application utilizing a combination of P2P and encryption techniques. It offers voicemail and the ability to dial out to normal telephone numbers, as well as acquire your own telephone numbers for others to dial into.

Contents
1 Identification
1.1 Ports
1.2 Requirements
1.3 L7-filter
1.4 Lynanda Asynchronous Filter
1.5 Other information
2 See also


[edit] Identification
There are two distict types of Skype traffic: Skype-to-Skype for talking to other Skype clients, and SkypeOut for talking to standard telephones.

Skype uses both TCP and UDP. UDP datagrams are not (entirely) encrypted/obfuscated, so it is possible to detect them. TCP connections on the other hand are completely encrypted (very well obfuscated, actually) so it would be difficult enough to recognize TCP Skype traffic with custom software and nearly impossible with l7-filter. Blocking UDP is also not enough to block Skype.

[edit] Ports
Skype does not use a predictable port. However, it appears to be most likely to be found on ports 443 or 80, as described on Skype’s “Skype and Firewalls” page.

[edit] Requirements
The optional requirements (allows P2P file transfers and superior voice quality):

[IN/OUT] 1 port > 1023 TCP: Skype by default chooses a random port which can be configured through ‘Tools:Options’ in the program itself. This port is generally used for chat and voice data.
[IN/OUT] 1 port > 1023 UDP: Additional voice quality can be achieved using UDP, also choosen at random. Port generally used for superior voice quality and file transfers.
The minimum requirements (relays file transfers and voice calls to Skype servers):

[OUT] TCP 80 — HTTP Required for use as a fallback.
[OUT] TCP 443 — SSL Required for use as a fallback.
Other methods:

Skype can be configured to run through a proxy service via HTTPS or SOCKS5.
[edit] L7-filter
For Skype-to-Skype communications, including both calls and the general chatter of the program, l7-filter uses the skypetoskype pattern. It is tested with 1.2.0.18_API on Linux.

For Skype-to-phone communications (“SkypeOut”), L7-filter uses the skypeout pattern. This is a clunky pattern (have seen it conflict with some FTP traffic). It has been tested with 1.2.0.18_API on Linux and it does work, but it also matches a significant fraction of non-Skype traffic. It would be much easier to match this sort of thing with IPP2P or something like it. As shown in the packet traces below, the first two packets start with the same group of bytes, and following packets start with the same group of bytes (different from the first two), but that these bytes are different each time a connection is made. This is quite difficult to match with L7-filter’s regular expresions.

[edit] Lynanda Asynchronous Filter
The Lynanda Asynchronous Filter can filter and block SkypeToSkype, SkypeOut, and SkypeChat.

[edit] Other information
Skype appears to make a lot of NTP requests. (Needs confirmation.)
routeros
回复

使用道具 举报

发表于 2008-10-16 09:19:40 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2008-10-16 09:20:48 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2008-10-16 09:21:10 | 显示全部楼层
skypeout         Skype to phone - UDP voice call (program to POTS phone) - http://skype.com
skypetoskype         Skype to Skype - UDP voice call (program to program) - http://skype.com
routeros
回复

使用道具 举报

发表于 2008-10-16 09:21:20 | 显示全部楼层
# Skype to Skype - UDP voice call (program to program) - http://skype.com
# Pattern attributes: ok veryfast fast overmatch
# Protocol groups: voip p2p proprietary
# Wiki: http://www.protocolinfo.org/wiki/Skype

# This matches at least some of the general chatter that occurs when the
# user isn't doing anything as well as actual calls.
# Thanks to Myles Uyema, mylesuyema AT gmail.com

skypetoskype
# require at least 16 bytes (my limited tests always get at least 18)
^..\x02.............
routeros
回复

使用道具 举报

发表于 2008-10-16 09:22:00 | 显示全部楼层
# Skype to phone - UDP voice call (program to POTS phone) - http://skype.com
# Pattern attributes: ok slow notsofast overmatch
# Protocol groups: voip p2p proprietary
# Wiki: http://www.protocolinfo.org/wiki/Skype

# Thanks to Myles Uyema, mylesuyema AT gmail.com

# Taken using Ethereal traces of Windows Skype v1.2.037, same in v1.2.0.18_API
#
# Skype will attempt to use the same UDP port for all its connections as
# configured in its options.  However, this is a random port by default.
# Skype has some preference for ports 80 and 443.
#
# Example sessions:
#
#SkypeOut <USA phone number>
#c6 5c bf 41 8e 8d d6 d2 08 <-- this is sometimes as short as 1 byte and
#c6 5c bf 41 8e 8d d6 d2 08 <-- sometimes as long as 9 (or more?)
#00 6b 2c f5 87 f1 06
#00 6b 2c f5 87 f1 06
#00 6b 2c f5 36 ea 85
#00 6b 2c f5 36 ea 85
#00 6b 2c f5 57 27 d4
#00 6b 2c f5 57 27 d4
#00 6b 2c f5 43 5b 00
#00 6b 2c f5 43 5b 00
#
#SkypeOut <USA phone number>
#7e 4f e5 b8
#7e 4f e5 b8
#00 6b 88 61 80 52 93
#00 6b 88 61 80 52 93
#00 6b 88 61 1a 09 e9
#00 6b 88 61 1a 09 e9
#00 6b 88 61 47 43 c4
#00 6b 88 61 47 43 c4

skypeout

# Scary.  Our regular expressions suck.  This is a prime candidate for
# some sort of a scheme to support two different regular expressions
# when there's a major difference between what the two libraries allow.  
# For the Henry Spencer library, there's not much that can be done
# except requiring that we see the same byte twice.

# This matches about %4 of random streams and 13% of printable random streams

# This is slow, but not as bad as you might think.
^(\x01.?.?.?.?.?.?.?.?\x01|\x02.?.?.?.?.?.?.?.?\x02|\x03.?.?.?.?.?.?.?.?\x03|\x04.?.?.?.?.?.?.?.?\x04|\x05.?.?.?.?.?.?.?.?\x05|\x06.?.?.?.?.?.?.?.?\x06|\x07.?.?.?.?.?.?.?.?\x07|\x08.?.?.?.?.?.?.?.?\x08|\x09.?.?.?.?.?.?.?.?\x09|\x0a.?.?.?.?.?.?.?.?\x0a|\x0b.?.?.?.?.?.?.?.?\x0b|\x0c.?.?.?.?.?.?.?.?\x0c|\x0d.?.?.?.?.?.?.?.?\x0d|\x0e.?.?.?.?.?.?.?.?\x0e|\x0f.?.?.?.?.?.?.?.?\x0f|\x10.?.?.?.?.?.?.?.?\x10|\x11.?.?.?.?.?.?.?.?\x11|\x12.?.?.?.?.?.?.?.?\x12|\x13.?.?.?.?.?.?.?.?\x13|\x14.?.?.?.?.?.?.?.?\x14|\x15.?.?.?.?.?.?.?.?\x15|\x16.?.?.?.?.?.?.?.?\x16|\x17.?.?.?.?.?.?.?.?\x17|\x18.?.?.?.?.?.?.?.?\x18|\x19.?.?.?.?.?.?.?.?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.?.?.?.?.?.?\xf0|\xf1.?.?.?.?.?.?.?.?\xf1|\xf2.?.?.?.?.?.?.?.?\xf2|\xf3.?.?.?.?.?.?.?.?\xf3|\xf4.?.?.?.?.?.?.?.?\xf4|\xf5.?.?.?.?.?.?.?.?\xf5|\xf6.?.?.?.?.?.?.?.?\xf6|\xf7.?.?.?.?.?.?.?.?\xf7|\xf8.?.?.?.?.?.?.?.?\xf8|\xf9.?.?.?.?.?.?.?.?\xf9|\xfa.?.?.?.?.?.?.?.?\xfa|\xfb.?.?.?.?.?.?.?.?\xfb|\xfc.?.?.?.?.?.?.?.?\xfc|\xfd.?.?.?.?.?.?.?.?\xfd|\xfe.?.?.?.?.?.?.?.?\xfe|\xff.?.?.?.?.?.?.?.?\xff)
routeros
回复

使用道具 举报

发表于 2008-10-16 17:20:20 | 显示全部楼层
强啊。。。不懂。。。
routeros
回复

使用道具 举报

发表于 2009-2-25 23:06:42 | 显示全部楼层
正在找QQ等东西的,哈哈
routeros
回复

使用道具 举报

发表于 2009-2-25 23:57:47 | 显示全部楼层
很好,很强大!!!!赞一个!!
routeros
回复

使用道具 举报

发表于 2009-2-26 08:51:16 | 显示全部楼层
用过的说下怎摸用?
routeros
回复

使用道具 举报

发表于 2009-2-26 10:35:27 | 显示全部楼层
skype ?
routeros
回复

使用道具 举报

发表于 2009-3-4 02:53:17 | 显示全部楼层
详细点啊,是从官方下的吗
routeros
回复

使用道具 举报

发表于 2009-3-4 05:58:34 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2009-3-27 15:58:01 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2009-4-2 16:36:39 | 显示全部楼层
我一般都在winbox里的终端输进去的,不过暂时不知道效果怎样
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-18 02:05 , Processed in 0.068724 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表