AsyncHTTPProxy is a Python asynchronous HTTP proxy server designed to redirect traffic to another host and port. It leverages asyncio to handle multiple client connections concurrently. This proxy server is particularly useful in scenarios such as redirecting OpenVPN traffic over HTTP.
-
Clone the repository:
git clone https://github.com/your_username/AsyncHTTPProxy.git
-
Navigate to the project directory:
cd AsyncHTTPProxy
-
Install the required dependencies using pip:
pip install -r requirements.txt
Run the OnlyRedirect.py
script with the necessary arguments:
python OnlyRedirect.py <proxy_host> <proxy_port> <destination_host> <destination_port> [--debug]
Replace <proxy_host>
, <proxy_port>
, <destination_host>
, and <destination_port>
with the appropriate values. The --debug
flag is optional and enables debug output, including logging to a file.
Example:
python OnlyRedirect.py 0.0.0.0 8080 192.168.17.242 8080 --debug
Contributions are welcome! Feel free to open issues or pull requests for any improvements or fixes you'd like to see.