How to use the tun / tap interface to separate packets, the tunnel and the subsequent assembly. (similar to MLPPP)

I am looking to create a client / server application that I can use to cut network packets in half, tunnel each half of the packet on a separate udp connection (since each udp connection will go through a different wifi connection) and then reconnect the split packets on the other end. In addition to splitting packets, each half-packet must also have an identifier and serial number so that they can be correctly assembled.

I'm basically trying to do something similar to MLPPP

I want to do this with python and the TUN / TAP network driver. I found the following examples and python code modules that I think might be useful for this project.

Python tun / tap

Python batch processing

My question is, can the necessary package modification be done using python and what would be a possible way to get closer to this? Can I use the modules above for this or is there a better solution? I am looking for some input that will guide me in the right direction, as I am not an experienced programmer. Any code samples or sitelinks are welcome.

+5
source share
2 answers

- , . . () . . . - 5 + ADSL , 40+ / .

(, 1500/2 = 750) ... .

( ) UDP-. loopback- tun/tap 200 /, . NFQUEUE, .

Python.

+3

.

tun/tap , . Twisted , .

, - , blob , - , python.

netstrings, .

, , , !

+1

All Articles