go.mod | ||
main.go | ||
README.md |
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.