论坛风格切换切换到宽版
  • 885阅读
  • 5回复

[问题求助]兄弟们,l7filter里面的msn-filetransfer不起作用?? [复制链接]

上一主题 下一主题
离线lsp678.
 
发帖
2033
C币
-60763
威望
381
贡献值
1
银元
-3
铜钱
4575
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
搞了几天终于把l7filter弄上去了,qq.,bt,edonkey似乎封的很好,但是发现msn-f.iletransfer不起作用呢???.
不知道大家有没有试过这个东西。。给兄弟点提示,多谢..。.

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线gfmv.
发帖
2076
C币
-60690
威望
375
贡献值
1
银元
-1
铜钱
4711
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
To the moment, I saw Matthew Strait - one of l7-filter developers send a mail in L7-filter-developers Maillist yesterday. He pointed out the reason why it has many problems in matching MSN. Maybe it can help you to explain the reason why you can't match them.



QUOTE:Send L7-filter-developers mailing list submissions to
       filter-developers@lists.sourceforge.net[/email]

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/l7-filter-developers
or, via email, send a message with subject or body 'help' to
       filter-developers-request@lists.sourceforge.net[/email]

You can reach the person managing the list at
       filter-developers-owner@lists.sourceforge.net[/email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of L7-filter-developers digest..."


Today's Topics:

  1. msn live file transfer modified pattern that matches MSN LIVE
     7.x and   8.x (fwd) (Matthew Strait)
  2. Re: msn live file transfer modified pattern that matches MSN
     LIVE 7.x and 8.x (Matthew Strait)


----------------------------------------------------------------------

Message: 1
Date: Sat, 25 Aug 2007 00:14:47 -0500 (CDT)
From: Matthew Strait <quadong@users.sourceforge.net>
Subject: [l7-filter-developers] msn live file transfer modified
       pattern that matches MSN LIVE 7.x and   8.x (fwd)
To: filter-developers@lists.sourceforge.net[/email]
Message-ID: <Pine.LNX.4.64.0708250014200.8601@localhost.localdomain>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

---------- Forwarded message ----------
Date: Tue, 21 Aug 2007 22:10:57 -0500
From: Gabriel Orozco <redimido@gmail.com>
To: filter-developers-owner@lists.sourceforge.net[/email]
Subject: msn live file transfer modified pattern that matches MSN LIVE 7.x and
       8.x

Hi

I was in the need to add l7filter in order to specifically be able to permit
msnmessenger but at the same time block msn-filetransfer.

My tests were good when I was using Linux, I think because gaim, pidgin and
kopete use the older protocols, however when I tried using Windows against
Windows then files went through and my filter did not noticed the transfer
at all.

After some time looking and seeing this list past emails I started Wireshark
and did a trace of a conversation with file transfer and found every message
is governed by a specific mime type, so I modified the standard pattern to
include two specific strings and I was successful in blocking file transfers
with live messenger 7.x (I really not know if the last version 8.x has
changed that behavior, I would like someone to test).

One interesting thing I found is if when you are in a conversation and try
to send or receive a file, then the whole conversation gets blocked. I think
because every packet is 'related,stablished' in netfilter... when I close
that window and restart the conversation on the new window, I am able to
chat unless I try to send a file again.

here is the pattern:

msn-filetransfer
^ver [ -~]*msnftp\x0d\x0aver msnftp\x0d\x0ausr|^method
msnmsgr:|x-msnmsgrp2p|x-msmsgscontrol

Please note these two texts (x-msnmsgrp2p and x-msmsgscontrol) are specific
to msn, and are not at the beginning of the string to be checked.

As this is my first use of l7filtering and have no previous experience
please feel free to improve the pattern, or send me comments/test results.


Thanks

--
Gabriel Orozco (Redimido)
http://redimido.glo.org.mx



------------------------------

Message: 2
Date: Sat, 25 Aug 2007 00:36:12 -0500 (CDT)
From: Matthew Strait <quadong@users.sourceforge.net>
Subject: Re: [l7-filter-developers] msn live file transfer modified
       pattern that matches MSN LIVE 7.x and 8.x
To: Gabriel Orozco <redimido@gmail.com>
Cc: filter-developers@lists.sourceforge.net[/email]
Message-ID: <Pine.LNX.4.64.0708250018160.8601@localhost.localdomain>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Tue, 21 Aug 2007, Gabriel Orozco wrote:

> One interesting thing I found is if when you are in a conversation and
> try to send or receive a file, then the whole conversation gets blocked.
> I think because every packet is 'related,stablished' in netfilter...

More concretely, the reason that blocking the file transfer blocks the
conversation is that they use the same TCP connection.  There is no way to
use l7-filter to separate them because l7-filter operates on TCP
connections as a whole.

> msn-filetransfer
> ^ver [ -~]*msnftp\x0d\x0aver msnftp\x0d\x0ausr|^method
> msnmsgr:|x-msnmsgrp2p|x-msmsgscontrol

> As this is my first use of l7filtering and have no previous experience
> please feel free to improve the pattern, or send me comments/test
> results.

This pattern will only work for the new-style file transfers if the file
transfer starts within the first 10 packets (or whatever you have set
numpackets to).  Otherwise, l7-filter will never see the "x-msnmsgrp2p" or
"x-msmsgscontrol" because it stops looking before they are sent.

Really, this kind of fine-grained control is not what l7-filter is
indended for.  If you want to block file transfers because they use too
much bandwidth, you shouldn't block them, you should use QoS for rate
limiting.  If you want to block them because you just don't want people
transfering files for some reason, then you need to look for a different
piece of software or a different solution altogether. (For example, if you
are afraid of viruses, I'm sure there's software that scans for them in
network traffic.  For another example, if these are students in a lab,
consider using human rules instead of technological control.)

-Matthew



------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

------------------------------

_______________________________________________
L7-filter-developers mailing list
filter-developers@lists.sourceforge.net[/email]
https://lists.sourceforge.net/lists/listinfo/l7-filter-developers


End of L7-filter-developers Digest, Vol 15, Issue 9
***************************************************


发帖
1962
C币
-193675
威望
342
贡献值
1
银元
0
铜钱
4344
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
thx a lot, Platinum. I think that I'd like to use another software to prevent msn-filetransfer rather than human rules...  ^_^

离线mirxx.
发帖
2121
C币
-152545
威望
392
贡献值
1
银元
-2
铜钱
4818
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13


QUOTE:原帖由 alexann 于 2007-8-27 19:26 发表
thx a lot, Platinum. I think that I'd like to use another software to prevent msn-filetransfer rather than human rules...  ^_^

Yes, rather than human rules!

离线korey.
发帖
2026
C币
-235337
威望
391
贡献值
1
银元
-3
铜钱
4680
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
晕,都是英文,偶看不懂,哈哈!!

发帖
2095
C币
-193313
威望
380
贡献值
1
银元
-1
铜钱
4709
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
human rule is the easiest method to resolve this problem
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个