Tun Tap Driver For Mac



Latest version

Released:

Linux/Windows TUN/TAP wrapper for Python

Project description

TUN/TAP package for Linux and Windows
``pytuntap`` is a Python module for you create TUN/TAP device very easily.
It canbe work both on Linux and Windows
License: MIT (see LICENSE)
Installation and Dependencies
-----------------------------
Install ``pytuntap`` with ``pip install python-pytuntap``
As ``pytuntap`` is python wrapper for tuntap driver on Linux , and openvpn driver on
Windows. If you use it on windows, you should install openvpn's tap driver first.
please refer to openvpn ,how to install it .
Documentation
-------------
NOTE: On most distributions you will need to be root to create TUN/TAP devices.
To create a TUN device::
from tuntap import TunTap
tun = TunTap(nic_type='Tun',nic_name='tun0')
To create a TAP device::
聽 from tuntap import TunTap
tap = TunTap(nic_type='Tap',nic_name='tap0')
To config device:
tap.config(ip='192.168.1.10',mask='255.255.255.0',gateway='192.168.1.254')
You can get some parameters of the device directly::
print(tun.name,tun.ip,tun.mask)
If the device is a TAP you can also get/set its MAC address::
print(tap.mac)
To read/write to the device, use the methods ``read(size)`` and
``write(buf)``::
buf = tun.read(size)
tun.write(buf)
To close the device::
tun.close()
you can also use ``TunTapDevice`` objects with all functions that expect a
``tun.handle`` method (e.g ``select()``)
  • Tun Tap Poll Mode Driver. The rteethtap.c PMD creates a device using TAP interfaces on the local host. The PMD allows for DPDK and the host to communicate using a raw device interface on the host and in the DPDK application. The device created is a TAP device, which sends/receives packet in a raw format with a L2 header.
  • Universal TUN/TAP driver 1.1 released Universal TUN/TAP driver 1.0 released Linux, Solaris and FreeBSD drivers merged.
  • A macvtap endpoint is a character device that largely follows the tun/tap ioctl interface and can be used directly by kvm/qemu and other hypervisors that support the tun/tap interface. The endpoint extends an existing network interface, the lower device, and has its own mac address on the same ethernet segment.
Tun Tap Driver For Mac

Release historyRelease notifications | RSS feed

1.0.5

Windows tun tap driver

1.0.4

In computer networking, TUN and TAP are kernel virtual network devices. Being network devices supported entirely in software, they differ from ordinary network devices which are backed by physical network adapters. The Universal TUN/TAP Driver originated in 2000 as a merger of the corresponding drivers in Solaris, Linux and BSD.

1.0.3

1.0.0

Tun Tap Driver For Mac Download

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Linux Tap Tun

Files for python-pytuntap, version 1.0.5
Filename, sizeFile typePython versionUpload dateHashes
Filename, size python-pytuntap-1.0.5.tar.gz (6.6 kB) File type Source Python version None Upload dateHashes
CloseTun Tap Driver For Mac

Hashes for python-pytuntap-1.0.5.tar.gz

What Is Tap Driver

Hashes for python-pytuntap-1.0.5.tar.gz
AlgorithmHash digest
SHA256cfb7ea426bb07169192d598e3b1581523aa1982a69bfb3dc29cfff64a3ec86ff
MD52cee132d3de9b4503588e95b245993b4
BLAKE2-2563bceaa916a946cba833fb486143acc5515719c8729af46cea939639d9cc8bf76