Skip to content

Instantly share code, notes, and snippets.

@ruoat
ruoat / README.md
Created January 18, 2016 16:03
How to simulate network failures using socat proxies
  • ./port-proxy-prepare.sh to create PID directory for running proxy
  • ./sample-google-proxy.sh start to start listening 8443 and proxying traffic to google
  • Configure client application to perform requests to localhost:8443 instead of www.google.com:443
  • ./sample-google-proxy.sh stop to simulate situation when google is down
  • Do client testing
  • ./sample-google-proxy.sh start to simulate service up again