bad-http-server

command
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2018 License: MIT Imports: 5 Imported by: 0

README

Example: A bad HTTP server

This example uses the github.com/hownetworks/nfq-go package and Docker to create a HTTP server that drops 10% of TCP packets.

Build the example Docker image:

docker build -t bad-http-server .

Run the image, exposing the bad server on localhost:8080:

docker run -ti --rm --cap-add NET_ADMIN -p 8080:8080 bad-http-server

The NET_ADMIN capability needs to be added for the initial iptables commands in entrypoint.sh.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL