Git Product home page Git Product logo

pofwd's Introduction

Pofwd: A network port forwarding program

This is a program that forwards data among network ports.

It listens on some TCP or UDP ports, then forward any requests to some other TCP or UDP ports.

It is like socat, but handles concurrency.

Building

Download the source code, and the latest Go.

Type:

go build

Configuring

Open pofwd.conf, each line is a forwarding rule, in the form of

<form protocol> <from address>  <to protocol> <to_address>

Protocol can be tcp, tcp4, tcp6, udp, udp4, udp6, unix, unixgram, unixpacket.

For tcp, tcp4, udp and udp4, address is in the form of ip:port.

For tcp, tcp6, udp and udp6, address is in the form of [ip]:port.

If you leave ip as empty, then all IP addresses on the machine will be listened on.

You can convert data from UDP to TCP, then back to UDP. The speed will be slower, but it is useful if UDP packets are blocked by a firewall.

Note that only data originally coming from a UDP port can be eventually converted back to UDP: You cannot convert arbitary TCP data to UDP, or the program will report "packet too large".

Running

Simply type ./pofwd, there it go!

You can also type ./pofwd myconf.conf, where myconf.conf is a configuration file other than pofwd.conf.

License

This program is licensed under GPL version 3. See COPYING for details.

See Also

Also please check popub, which publishes a service from localhost onto your server.

pofwd's People

Contributors

m13253 avatar

Watchers

James Cloos avatar 百里(barry) 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.