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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cwhite_simple_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cwhite_simple_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0318309f5832f502205c4d4a919cefd9edc2cfc793931b6c89b757358b35e1b7
|
|
| MD5 |
f847468535c1766530c2a715f54060f3
|
|
| BLAKE2b-256 |
44d1c826ee94b62fc392aa7a44c9b27ee45a4c8a9f05be49c72371ad49930aca
|