0

I need to implement some low-level IP filtering/tracking. Typically I would use iptables for this, but since I am currently using twisted in a few projects I'd consider using it's ethernet library, if it's possible. Actually, I would prefer it (it's easier to deploy than iptables rules).

Is it possible to use twisted python's twisted.pair.ethernet to implement a partial analog of iptables?

4

1 回答 1

1

twisted.pair.ethernet会给你一点解析,但它并没有对实际获取数据做任何事情,也没有把它放回网络上(如果你不过滤掉它)。为此,您需要与 Twisted 不做任何事情的 tuntap 系统交谈。

于 2011-01-25T23:07:02.887 回答