#!/bin/bash set -e socat TCP-LISTEN:8888,fork TCP:host:8888 & socat TCP-LISTEN:80,fork,crlf SYSTEM:"echo HTTP/1.0 200; echo Content-Type: text/plain; echo;" &