burritun

Crates.ioburritun
lib.rsburritun
version0.1.1
sourcesrc
created_at2018-05-24 02:38:25.656652
updated_at2018-07-10 18:41:34.950719
descriptionWrap a tun device in a tap device
homepage
repositoryhttps://github.com/kpcyrd/burritun
max_upload_size
id66850
size284,248
(kpcyrd)

documentation

README

burritun

Wrap a tun interface in a tap interface. This is useful if you need to run a tool on a tun device that depends on a layer 2 raw socket, but doesn't actually need layer 2 access. The ethernet header is transparently stripped for egress and added for ingress. It also emulates arp to ensure the kernel can use the interface correctly.

burrito logo

Usage

# wrap tun0 into burritun0
burritun tun0 burritun0 &
# remove ip from tun device
ip a del  192.0.2.4/24 dev tun0
# add ip to tap device
ip a add 192.0.2.4/24 dev burritun0
# resume burritun
fg

License

GPLv3+

Commit count: 5

cargo fmt