Coder Social home page Coder Social logo

pjvds / tunl Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 5.0 2.34 MB

Instantly expose local services to the internet

Home Page: https://tunl.es

License: Apache License 2.0

Go 99.88% Dockerfile 0.12%
golang tunnel tunnel-client fileserver docker reverse-proxy

tunl's Introduction

Tunl

With Tunl you can expose services on your localhost to the public via a fast and secure tunnel.

Expose local http process

$ tunl http localhost:3000
https://red-fox.tunl.es/ -> http://localhost:3000

Share a local directory

$ tunl files /dir
https://red-fox.tunl.es/ -> /dir

Expose a local MySQL

$ tunl tcp localhost:3306
tunl.es:89311 -> localhost:3306

Expose a service running in a docker container

$ tunl docker [container-name]:<port>
tunl.es:48221 -> <container-name>:<port>

Installation

Download the binary release and put it somewhere in your $PATH.

Basic

curl

# install it to ./bin/tunl
curl -fsSL https://get.tunl.es | sh
# install it to /sbin/tunl
curl -fsSL https://get.tunl.es | sudo sh -s -- -b /sbin

wget

# install it to ./bin/tunl
wget -qO- https://get.tunl.es | sh
# install it to /sbin/tunl
wget -qO- https://get.tunl.es | sudo sh -s -- -b /sbin

Arch Linux

yay tunl

Ubuntu

sudo snap install tunl --edge

Docker

docker run --rm --network=host -v $PWD:$PWD tunl/tunl

warning: this maps the current working directory and means files outside the current working directory cannot be shared

tunl's People

Contributors

pjvds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tunl's Issues

please help me i am facing this error

while run this command tunl http localhost:3000
getting error as" Failed to connect to host _.tunl.es:443: dial tcp: lookup _.tunl.es on [::1]:53: dial udp [::1]:53: socket: permission denied"

files doesn't validate specified path

You can create a file tunnel to a non existing path:

$ tunl files /i/do/not/exist
https://lively-smoke.tunl.es -> /i/do/not/exist

The path should be validated before the tunnel is created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.