A dead simple Go (golang) package to forward UDP packets like a reverse NAT (i.e. it supports multiple users).
package main
import "github.com/1lann/udp-forward"
func main() {
// Forward(src, dst). It's asynchronous.
forwarder, err := forward.Forward("0.0.0.0:1000", "1.2.3.4:1023", forward.DefaultTimeout)
if err != nil {
panic(err)
}
// Do something...
// Stop the forwarder
forwarder.Close()
}
See the GoDoc for documentation.
There is no license.