Go to file
2022-02-22 20:22:36 +01:00
go.mod Initial commit 2022-02-22 20:22:36 +01:00
main.go Initial commit 2022-02-22 20:22:36 +01:00
README.md Initial commit 2022-02-22 20:22:36 +01:00

udprelay

Minimal example to show how to relay UDP packets.

Build

go build -o udprelay main.go

Usage

./udprelay -addr "127.0.0.1:9998" -dest "192.168.1.10:9999"
2022/02/21 15:41:50 Listening to 127.0.0.1:9998 - Relaying to 192.168.1.10:9999
...
2022/02/21 15:42:03 3 bytes relayed from 127.0.0.1:64078 to destination.