With Tunl you can expose services on your localhost to the public via a fast and secure tunnel.
$ tunl http localhost:3000
https://red-fox.tunl.es/ -> http://localhost:3000
$ tunl files /dir
https://red-fox.tunl.es/ -> /dir
$ tunl tcp localhost:3306
tunl.es:89311 -> localhost:3306
$ tunl docker [container-name]:<port>
tunl.es:48221 -> <container-name>:<port>
Download the binary release and put it somewhere in your $PATH
.
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
yay tunl
sudo snap install tunl --edge
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