Skip to content

benjamincburns/node-tuntap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#tuntap

A node module for managing TUN/TAP virtual network interfaces on linux.

TunTap = require('tuntap');

tap = new TunTap({
    type : 'tap',
    address : '10.0.0.1',
    netmask : '255.255.255.0',
    broadcast : '10.0.0.255',
    up : true
}); // extends stream.Duplex

tap.on('data', function(frame) {
    // handle ethernet frame here
});

var frame = getEthernetFrameSomehow();
tap.write(frame);

About

A node module for managing TUN/TAP virtual network interfaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published