Git Product home page Git Product logo

tan90-proxy_nat's Introduction

Tan90-Proxy

NAT acorss proxy server - NAT穿透代理服务器

Dependency

  • glib2
  • libuv

Build

Input Description
make build libtan90common.a , tan90-server and tan90-client by release mode
make debug build libtan90common.a , tan90-server and tan90-client by debug mode
make clean remove all .o and libtan90common.a
make commom build libtan90common.a by release mode
make server build tan90-server by release mode
make client build tan90-client by release mode

On Windows , suggest using Msys2 to build.

Usage

Edit server.ini for tan90-server

# server.ini
[Config Name]
true_client_ip = 0.0.0.0
true_client_port = 80
proxy_client_ip = 0.0.0.0
proxy_client_port = 8102
  • Config Name : unimportant value but cannot repeat in a file
  • true_client_ip : bind to this IP for listening to true client
    • 0.0.0.0 : all owned IP , suggest using this value
    • 127.0.0.1 : can only be connected by local application
  • true_client_port : bind to this port for listening to true client
  • proxy_client_ip : bind to this IP for listening to proxy client
    • 0.0.0.0 : all owned IP , suggest using this value
    • 127.0.0.1 : can only be connected by local application
  • proxy_client_port : bind to this port for listening to proxy client

Edit client.ini for tan90-client

# client.ini
[Config Name]
proxy_server_ip = 233.233.233.233
proxy_server_port = 8102
true_server_ip = 0.0.0.0
true_server_port = 80
  • Config Name : unimportant value but cannot repeat in a file
  • proxy_server_ip : IP of proxy server
  • proxy_server_port : port of proxy server
  • true_server_ip : IP of true server
  • true_server_port : port of treu server

For Example : Proxy Minecraft Server

Demo

Image

# server.ini
[Proxy of Nginx]
true_client_ip = 0.0.0.0
true_client_port = 80
proxy_client_ip = 0.0.0.0
proxy_client_port = 8102

[Proxy of Minecraft]
true_client_ip = 0.0.0.0
true_client_port = 25565
proxy_client_ip = 0.0.0.0
proxy_client_port = 8103
# client.ini
[Proxy of Nginx]
proxy_server_ip = 233.233.233.233
proxy_server_port = 8102
true_server_ip = 0.0.0.0
true_server_port = 80

[Proxy of Minecraft]
proxy_server_ip = 233.233.233.233
proxy_server_port = 8103
true_server_ip = 0.0.0.0
true_server_port = 25565

tan90-proxy_nat's People

Contributors

hubenchang0515 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.