Giter Club home page Giter Club logo

newmarket's Introduction

Newmarket

Wrap a TCP connection over two HTTP connections like so:

To a firewall the two connections looks like two (correctly formatted) HTTP connections that are slowly POSTing and GETing data from a HTTP url.

##Setup Make sure you have GoLang 1.1 or above installed then clone the git.

###Server First go into the server directory cd server

Fetch the things that are needed to run this first:

go get

then build it

go build

You can then run it, If you want to change the port that it listens on, set the PORT env var by doing (in a normal bash shell) export port=80

then run the server program

./server

###Client

First go into the server directory cd client

Fetch the things that are needed to run this first:

go get

then build it

go build

Then you can look into the usage of the client by running ./client --help or client.exe --help

You will get this in return

NAME:
   Newmarket Client - A Client to the Newmarket HTTP Tunnel server

USAGE:
   Newmarket Client [global options] command [command options] [arguments...]

VERSION:
   0.9

COMMANDS:
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --url, -u 'http://localhost:3000'    the URL of the Newmarket server
   --port, -p '3001'                    The port you want to listen on
   --version, -v                        print the version
   --help, -h                           show help

The two things you will want to change here is the --url var to point to your remote server that you will be tunneling to.

Example usage is

client --url http://test.example.com

then connect on the forwarded port (default is 3001)

ssh -p 3001 localhost

Auth like normal and now you are inside your remote server!

newmarket's People

Contributors

benjojo avatar j-mie avatar

Watchers

 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.