Skip to content

A dead simple Go (golang) package to forward UDP packets like a reverse NAT (i.e. it supports multiple users).

License

Notifications You must be signed in to change notification settings

1lann/udp-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

udp-forward

A dead simple Go (golang) package to forward UDP packets like a reverse NAT (i.e. it supports multiple users).

Usage

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.

License

There is no license.

About

A dead simple Go (golang) package to forward UDP packets like a reverse NAT (i.e. it supports multiple users).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages