Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myzhan/goreplay-udp
goreplay-udp is copycat of goreplay, works on UDP tracffic.
https://github.com/myzhan/goreplay-udp
performance-testing testing
Last synced: 1 day ago
JSON representation
goreplay-udp is copycat of goreplay, works on UDP tracffic.
- Host: GitHub
- URL: https://github.com/myzhan/goreplay-udp
- Owner: myzhan
- License: other
- Created: 2018-06-15T10:11:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T15:13:53.000Z (over 5 years ago)
- Last Synced: 2024-11-07T04:40:56.731Z (6 days ago)
- Topics: performance-testing, testing
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 30
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Go Report Card](https://goreportcard.com/badge/github.com/myzhan/goreplay-udp)](https://goreportcard.com/report/github.com/myzhan/goreplay-udp)
# About
GoReplay-udp is copycat of [goreplay](https://github.com/buger/goreplay), works on UDP tracffic.
It's currently a toy project and not tested as well as goreplay.
All credit goes to Leonid Bugaev, [@buger](https://twitter.com/buger), https://leonsbox.com
# Build
```bash
sudo apt-get install libpcap libpcap-dev flex bison -y
git clone github.com/myzhan/goreplay-udp $GOPATH/src/github.com/myzhan/goreplay-udp
cd $GOPATH/src/github.com/myzhan/goreplay-udp
go build -ldflags '-extldflags "-static"'
```# Usage
```
# Running as non root user
sudo setcap "cap_net_raw,cap_net_admin+eip" ./goreplay-udp
# Test
sudo ./goreplay-udp --input-udp :22 --output-stdout
# Capture
sudo ./goreplay-udp --input-udp :22 --output-file dns.req
# Replay Online
sudo ./goreplay-udp --input-udp :22 --output-udp localhost:2222
# Replay Offline
sudo ./goreplay-udp --input-file dns.req --output-udp localhost:2222
```