From charlesreid1

Revision as of 08:20, 29 March 2017 by Admin (talk | contribs) (Created page with "Covers how to forward HTTP traffic over stunnel. ==Overview of Setup== Our goal here is to have traffic between a client and a server pass through an encrypted tunnel, with...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Covers how to forward HTTP traffic over stunnel.

Overview of Setup

Our goal here is to have traffic between a client and a server pass through an encrypted tunnel, with each service happening on different ports.

In particular, we want to have HTTP traffic on the stunnel client on port 9999 (e.g., the browser opening localhost:9999) pass through the encrypted tunnel and be forwarded to an HTTP server listening on the stunnel server machine.

In summary:

On the client, traffic from port 9999 (http, from the browser) will be forwarded to port 8000 (stunnel). We will forward that traffic on to the remote stunnel server listening on port 8000.

The server will receive traffic on port 8000. It will decrypt the traffic and forward the traffic on to a local HTTP server running on port 9998: python -m SimpleHTTPServer 9998

Client Setup

Client Port Configuration

...

Client Stunnel Config File

...

Client Procedure

...

Server Setup

Server Port Configuration

...

Server Stunnel Config File

...

Server Procedure

...