Networking 使用TAP嗅探或修改传入的eth数据包
我试过了 这使我能够做到:Networking 使用TAP嗅探或修改传入的eth数据包,networking,ip,tun,iproute,tun-tap,Networking,Ip,Tun,Iproute,Tun Tap,我试过了 这使我能够做到: Application --> TAP Read from TAP --> Write to UDP (under my control) Read from UDP --> Write to TAP (under my control) TAP --> Application 我想做的是: Application --> ETH Read from ETH --> Write to TAP (under my control)
Application --> TAP
Read from TAP --> Write to UDP (under my control)
Read from UDP --> Write to TAP (under my control)
TAP --> Application
我想做的是:
Application --> ETH
Read from ETH --> Write to TAP (under my control)
TAP --> Application
换句话说,我希望在第2层截获传入的数据包,并拥有阻止、修改或传递它们的控制权
我想也许桥接ETH和TAP是关键,但我不知道如何以我需要的方式编程访问这个桥接