Skip to main content

Deploy proxy servers to cloud providers with ease

Project description

Simple Proxy

[write blurb about how proxy services are wildly overpriced]

Usage

Before you deploy your proxy servers, you must generate a password hash for them to use for authentication. This is made simple with the given helper script in Python.

$ python3 gen_hash.py

Enter your desired password, and it will output the hash you need to use for deployment.

Here is an example command that will give you 5 proxy servers backed by AWS Fargate behind a load balancer:

$ python3 simple_proxy_init.py run --count 5 --env PROXY_USER=default --env PROXY_PASSWORD_SHA256=<your hash> --region us-west-2

This command will:

  • Create an Application Load Balancer (ALB) that's publicly accessible
  • Deploy 5 ECS Fargate tasks protected by security groups (only accept traffic from ALB)
  • Automatically register all tasks with the load balancer
  • Return a single URL that distributes requests across all proxy instances

The proxy servers are NOT directly accessible from the internet - all traffic must go through the load balancer URL.

When you are done, run the following to delete all the resources you are consuming:

$ python3 simple_proxy_init.py cleanup

Testing

There is a short test script to ensure your proxy is both working and sending requests from a different ip than your own. You can run this test with:

$ pytest

Note that you must first set the value of your remote server in .test.env (see the template provided in this repository).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cwhite_simple_proxy-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file cwhite_simple_proxy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cwhite_simple_proxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0318309f5832f502205c4d4a919cefd9edc2cfc793931b6c89b757358b35e1b7
MD5 f847468535c1766530c2a715f54060f3
BLAKE2b-256 44d1c826ee94b62fc392aa7a44c9b27ee45a4c8a9f05be49c72371ad49930aca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page