🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

utun

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utun

Create a utun (userspace network tunnel) interface from node

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
9
-30.77%
Maintainers
1
Weekly downloads
 
Created
Source

utun

Create a utun (userspace network tunnel) interface from node

npm install utun

build status

Usage

var utun = require('utun')
var ip = require('ip-packet')

var tunnel = utun()

tunnel.on('message', function (message) {
  // message is a raw IP packet
  console.log(ip.decode(message))
  // lets just echo it back so ping works
  tunnel.send(message)
})

If you run the above code (as root) you should be able to see a new utun0 device in ifconfig and ping the device by doing ping 10.114.0.49

This has currently only been tested on OSX Yosemite. YMMV.

License

MIT

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts