Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/tyler569/tunnel

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/tyler569/tunnel

  • v0.0.0-20201213085814-b620f8db4043
  • Source
  • Go
  • Socket score

Version published
Created
Source

Tunnel

A simple VPN built using a Linux TUN adapter

Usage

Deploy the same binary to the client and server, then run these commands:

Server: ./tunnel --server --addr <server cidr>

Client: ./tunnel --addr <client cidr> --remote <remote ip>

Examples -

./tunnel --server --addr 10.200.0.1/24

./tunnel --addr 10.200.0.10/24 --remote 1.2.3.4

In that example, any traffic sent to 10.200.0.10 on the server will go to the client and any traffic on the client to 10.200.0.1 will go to the server. You can then bind servers to those IPs or permit IP forwarding in the linux kernel to use one end as a router. In the same vein, you can use the linux routing table to send traffic through the tunnel.

Options

--server : sets this instance as the server (listens for a connection instead of connecting out)

--addr <cidr> : sets the address and mask of the TUN adapter for this side of the tunnel

--remote : tells the client what to connect to

--port : sets the port for the server to listen on or the client to connect to.

FAQs

Package last updated on 13 Dec 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc