1

私はhttps://github.com/TOGoS/TUN2UDPを試しました

これにより、次のことが可能になります。

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 をブリッジすることが鍵だと思いますが、必要な方法でこのブリッジにプログラムでアクセスする方法がわかりません。

4

0 に答える 0