Giter Site home page Giter Site logo

netro's Introduction

Netro

Screenshot 1.0.1

Reverse tunneling in Windows.

Try it out: http://eirikb.github.io/Netro/1.0.1/Netro.exe
Warning: Executable, use at your own risk!
Netro works perfectly with mono for Linux / OSX.

I usually fire up ssh -R when I need some reverse tunneling, on any platform. But sometimes I have to tunnel from Windows to Windows, and this is a bit more difficult, as I usually don't have sshd running on Windows servers.
Netro, a bad play on "Metro" is here to help me and others that must do some quick, dirty and simple tunneling on Windows.

Here is an example: The right side in the following figure is behind a firewall, the left side is publicly accessible.

  1. Netro A listens for incoming connections, and listens for reverse tunneling.
  2. Netro B connects to A for tunneling.
  3. When a client connects to A the data will be transferred through the link between A and B.
  4. Connection is made on B to desired host:port.
  5. Data can now flow both ways.

Figure:

                    ┊
    u               ┆               O
    │               ┆               │ 
┌───┴───┐           ┆           ┌───┴───┐
│       │           ┆           │       │
│   A   ├───ᑕO──────┆───────────┤   B   │
│       │           ┆           │       │
└───────┘           ┆           └───────┘
                    ┆

Tunneling types

Netro.exe 5000 localhost:80
Listen on port 5000, send connections/data to localhost on port 80. No reverse tunneling involved (Proxy).

    ┌─────┐
ᑐ───┤     ├───O
    └─────┘

Netro.exe 5000 5001
Listen on port 5000 for normal connections. Listen on port 5001 for reverse tunneling connection.

       u
       │
    ┌──┴──┐
ᑐ───┤     │
    └─────┘

Netro.exe example.com:5001 localhost:80
Open reverse tunneling cunnection against example.com on port 5001. On reverse connections, open connection against localhost on port 80.

   O
   │
┌──┴──┐
│     ├───O
└─────┘

License

MIT © Eirik Brandtzæg

netro's People

Contributors

eirikb avatar

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.