|
5 jaren geleden | |
---|---|---|
.. | ||
common | 5 jaren geleden | |
nat | 5 jaren geleden | |
.gitignore | 5 jaren geleden | |
BASEIMAGE | 5 jaren geleden | |
BUILD | 5 jaren geleden | |
Dockerfile | 5 jaren geleden | |
Makefile | 5 jaren geleden | |
README.md | 5 jaren geleden | |
VERSION | 5 jaren geleden | |
main.go | 5 jaren geleden |
The goal of this Go project is to consolidate all low-level network testing "daemons" into one place. In network testing we frequently have need of simple daemons (common/Runner) that perform some "trivial" set of actions on a socket.
nat/
will contain Runners that test various NAT features.main.go:makeRunnerMap()
.Run()
should return the disposition of the test.Runners can be executed into two different ways, either through the command-line or via an HTTP request:
$ ./net -runner <runner> -options <json>
./net \
-runner nat-closewait-client \
-options '{"RemoteAddr":"127.0.0.1:9999"}'
$ ./net --serve :8889
$ curl -v -X POST localhost:8889/run/nat-closewait-server \
-d '{"LocalAddr":"127.0.0.1:9999"}'