Giter Site home page Giter Site logo

tpf's Introduction

Tiny Packet Forwarder

Usually, I use iptables on Linux to do forward. i encounter some problems sometime, for example:

  1. RDP disconnect immediately after connect, i don't know why, set TCP MSS to path MTU doesn't help.
  2. DNAT target in iptables seems doesn't support TCP BBR.
  3. iptables works on Linux only, i use windows sometime, i didn't know the syntax to set port forward on windows.

So i write a simple tool todo the job. It just suit my needs, nothing more.

run

Simple run the following command, it will read the rules from 'config.json'.

tpf_linux_amd64

you can also simply specify the rules in command line:

tpf_linux_amd64 tcp::3389:mydomain.com:3389 udp::3389:mydomain.com:3389 tcp::2222:ssh.mydomain.com:22

Note:

  1. whitelist is not supported if you specify rule in the command line
  2. In this form, the rules in config.json will still read and active, plus the rules you specify in the command line.

config

The config is a json file, the syntax is straight, please refer config_example.json. copy config_example.json to config.json and make necessary, the run the application, it will read the config automatically.

tpf's People

Contributors

hlllovefmy avatar jerry-sdc avatar

Stargazers

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