Coder Social home page Coder Social logo

4dnat's Introduction

4DNAT

English | 简体中文

Introduction

The 4DNAT was named from 4 and DNAT. This tool works in the fourth layer of transport layer of the OSI model, while 4 and for sound, means a tool that is dedicated to the target address conversion. 4dnat develops using Go language, has natural cross-platform, and uses the GO standard library development, without any third-party dependence, only one binary executable after compiling. It has four working modes:

Forward

Accept two parameters, listen port, and destination addresses, actively connect the target address after receiving the request in the listening port, example:

./4dnat -forward 2222 192.168.1.100:22

Listen

Accept two parameters, listen port 1 and monitor port 2, and exchange data received by two ports, example:

./4dnat -listen 10000 10001

Agent

Accept two parameters, target addresses 1, and destination address 2, actively connect these two target addresses after startup, and exchange data received by the two ports, example:

./4dnat -agent 127.0.0.1:10000 127.0.0.1:22

http/https proxy

Accept two parameters or four parameters, proxy types, listener ports, certificate paths, and private key paths, examples:

http proxy

./4dnat -proxy http 1080

https proxy

./4dnat -proxy https 1080 server.crt server.key

4dnat's People

Contributors

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