Pofwd Save

The simple & naïve port forwarding program

Project README

Pofwd: The simple & naïve 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.

Open Source Agenda is not affiliated with "Pofwd" Project. README Source: m13253/pofwd
Stars
34
Open Issues
0
Last Commit
5 years ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating