I need to make a simple p2p vpn app, after a lot of searches I found a tun/tap module for python called PYTUN that is used to make a tunnel. How can I use this module to create a tunnel between 2 remote peers?
All the attached doc only show how to make the tunnel interface on your local computer and config it, but it does not mention how to connect it to the remote peer.
pytun is not sufficient for this.  It serves to connect your Python application to a system network interface.  In effect, you become responsible for implementing that system network interface.
If you want traffic that is routed over that network interface to traverse an actual network, then it is the job of your Python program to do the actual network operations that move the data from host A to host B.
This is probably a lot of work to do well.  I suggest you use an existing VPN tool instead.
how to use the tun/tap python module (pytun) to create a p2p tunnel?