开发者

twisted.pair.ethernet vs iptables

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. A开发者_JS百科ctually, 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?


twisted.pair.ethernet will give you a little bit of the parsing, but it doesn't do anything for actually getting the data in the first place, nor putting it back on the network (if you don't filter it out). For that you need to talk to the tuntap system, which Twisted doesn't do anything with.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜