All Projects → selvakn → p2p-port-forward

selvakn / p2p-port-forward

Licence: MIT license
Command line utility to forward ports between two hosts across different networks/subnets, in a peer-to-peer fashion using zerotier, without sudo privileges

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to p2p-port-forward

dockerized
🐳 Build once, run anywhere
Stars: ✭ 70 (+2.94%)
Mutual labels:  zerotier
DesktopUI
ZeroTier Desktop Tray Application and UI
Stars: ✭ 83 (+22.06%)
Mutual labels:  zerotier
ansible-role-zerotier
Ansible role to install Zerotier-One and join a Zerotier network
Stars: ✭ 64 (-5.88%)
Mutual labels:  zerotier
docker-zerotier-controller
Dockernized ZeroTierOne Controller
Stars: ✭ 170 (+150%)
Mutual labels:  zerotier
tezos-k8s
Deploy a Tezos Blockchain on Kubernetes
Stars: ✭ 43 (-36.76%)
Mutual labels:  zerotier
zero-ui
ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.
Stars: ✭ 432 (+535.29%)
Mutual labels:  zerotier
addon-zerotier
ZeroTier One - Home Assistant Community Add-ons
Stars: ✭ 103 (+51.47%)
Mutual labels:  zerotier
beboptwo4g
4G/LTE softmod for the Parrot Bebop 2
Stars: ✭ 50 (-26.47%)
Mutual labels:  zerotier
ZerotierFix
An unofficial Zerotier Android client patched from official client
Stars: ✭ 855 (+1157.35%)
Mutual labels:  zerotier
zerotierDNS
Dns-server for zerotier networks. Resolves names of clients to their IP
Stars: ✭ 23 (-66.18%)
Mutual labels:  zerotier

p2p-port-forward

Build Status Go Report Card

Command line utility to forward ports between two hosts across different networks/subnets, in a peer-to-peer fashion using zerotier, without sudo privileges

Installation

On both the hosts.

  1. Homebrew

    brew install https://raw.githubusercontent.com/selvakn/homebrew-core/master/Formula/p2p-port-forward.rb

    Or

  2. Using go get

    go get https://github.com/selvakn/p2p-port-forward

    Or

  3. Single binaries

    • Download the single binary for your platform from releases
    • mv p2p-port-forward-<platform/arch> p2p-port-forward
    • chmod +x p2p-port-forward

Usage

usage: p2p-port-forward [<flags>]

Flags:
      --help                   Show context-sensitive help (also try --help-long and --help-man).
  -n, --network="8056c2e21c000001"
                               zerotier network id
  -f, --forward-port="22"      port to forward (in listen mode)
  -a, --accept-port="2222"     port to accept (in connect mode)
  -u, --use-udp                UDP instead of TCP (TCP default)
  -c, --connect-to=CONNECT-TO  server (zerotier) ip to connect
      --version                Show application version.

On host1 (where the service or any port should be exposed)

p2p-port-forward [-n 8056c2e21c000001] [-f 22]

On host2 (where we want to access the port)

p2p-port-forward -c <server-ip-from-output-of-server> [-a 2222]

Then connect to port 2222 on host2, to reach host1:22. Ex:

ssh -p 2222 user@localhost

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].