https://github.com/ps1dr3x/ars-proxy
Fast, minimal, asynchronous HTTP/HTTPS proxy server that can be used as a reverse proxy or for securing non-TLS services. Written in Rust
https://github.com/ps1dr3x/ars-proxy
async fast futures hyper proxy reverse rust server tls tokio
Last synced: about 2 months ago
JSON representation
Fast, minimal, asynchronous HTTP/HTTPS proxy server that can be used as a reverse proxy or for securing non-TLS services. Written in Rust
- Host: GitHub
- URL: https://github.com/ps1dr3x/ars-proxy
- Owner: ps1dr3x
- License: apache-2.0
- Created: 2018-07-24T23:13:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T16:26:29.000Z (over 6 years ago)
- Last Synced: 2025-03-10T14:57:33.502Z (about 2 months ago)
- Topics: async, fast, futures, hyper, proxy, reverse, rust, server, tls, tokio
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ars-proxy [WIP]
Fast, minimal, asynchronous HTTP/HTTPS proxy server written in Rust```bash
# Usage:
ars-proxy [--cert --pass-file ] [--to-https]
```
### Notes:- If `--to-https` parameter is specified (useful only in HTTP mode), the server will proxy all the received http requests to HTTPS.
- If a TLS certificate path is specified (by `--cert` parameter), the server will listen on HTTPS only.
- The only certificate format supported is .pfx/.p12, it is possible to create a .pfx certificate from .crt and .key files using openssl:
```bash
openssl pkcs12 -export -out cert.pfx -inkey cert.key -in cert.crt
```
- The password file (whose path can be specified by `--pass-file` parameter) is supposed to be a file containing only the certificate password (setting file permissions to 600 is recommended). This avoids specifying the certificate password in command line, that can be a security problem.
- If argument `--pass-file` is not specified, the certificate password is assumed to be blank ("").### Credits:
Credit for a working implementation of a (Tokio-based) Hyper HTTPS server goes to @izderadicka [[link]](https://github.com/izderadicka/tokio-tls/tree/new-tokio "[link]")