@@ -1303,17 +1303,16 @@ See [requirements-tunnel.txt](https://github.com/abhinavsingh/proxy.py/blob/deve
1303
1303
|
1304
1304
+------------+ | +----------+
1305
1305
| LOCAL | | | REMOTE |
1306
- | HOST | <== SSH ==== :8900 == | SERVER |
1306
+ | HOST | <== SSH ==== :8900 == | PROXY |
1307
1307
+------------+ | +----------+
1308
1308
:8899 proxy.py |
1309
1309
|
1310
1310
FIREWALL
1311
1311
(allow tcp/22)
1312
1312
1313
- ## What
1313
+ ### What
1314
1314
1315
- Proxy HTTP(s) requests made on a ` remote ` server through ` proxy.py ` server
1316
- running on ` localhost ` .
1315
+ Proxy HTTP(s) requests made on a ` remote ` proxy server through ` proxy.py ` server running on ` localhost ` .
1317
1316
1318
1317
### How
1319
1318
@@ -1335,7 +1334,7 @@ Start `proxy.py` as:
1335
1334
1336
1335
``` console
1337
1336
❯ # On localhost
1338
- ❯ proxy --enable-tunnel \
1337
+ ❯ proxy --enable-ssh- tunnel \
1339
1338
--tunnel-username username \
1340
1339
--tunnel-hostname ip.address.or.domain.name \
1341
1340
--tunnel-port 22 \
@@ -2341,19 +2340,19 @@ To run standalone benchmark for `proxy.py`, use the following command from repo
2341
2340
2342
2341
``` console
2343
2342
❯ proxy -h
2344
- usage: -m [-h] [--threadless] [--threaded] [--num-workers NUM_WORKERS]
2345
- [--enable-events] [--local-executor LOCAL_EXECUTOR]
2346
- [--backlog BACKLOG] [--hostname HOSTNAME]
2347
- [--hostnames HOSTNAMES [HOSTNAMES ...]] [--port PORT]
2348
- [--ports PORTS [PORTS ...]] [--port-file PORT_FILE]
2349
- [--unix-socket-path UNIX_SOCKET_PATH]
2350
- [--num-acceptors NUM_ACCEPTORS] [--tunnel-hostname TUNNEL_HOSTNAME]
2351
- [--tunnel-port TUNNEL_PORT] [--tunnel-username TUNNEL_USERNAME]
2343
+ usage: -m [-h] [--tunnel-hostname TUNNEL_HOSTNAME] [--tunnel-port TUNNEL_PORT]
2344
+ [--tunnel-username TUNNEL_USERNAME]
2352
2345
[--tunnel-ssh-key TUNNEL_SSH_KEY]
2353
2346
[--tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE]
2354
- [--tunnel-remote-port TUNNEL_REMOTE_PORT] [--version]
2355
- [--log-level LOG_LEVEL] [--log-file LOG_FILE]
2356
- [--log-format LOG_FORMAT] [--open-file-limit OPEN_FILE_LIMIT]
2347
+ [--tunnel-remote-port TUNNEL_REMOTE_PORT] [--threadless]
2348
+ [--threaded] [--num-workers NUM_WORKERS] [--enable-events]
2349
+ [--local-executor LOCAL_EXECUTOR] [--backlog BACKLOG]
2350
+ [--hostname HOSTNAME] [--hostnames HOSTNAMES [HOSTNAMES ...]]
2351
+ [--port PORT] [--ports PORTS [PORTS ...]] [--port-file PORT_FILE]
2352
+ [--unix-socket-path UNIX_SOCKET_PATH]
2353
+ [--num-acceptors NUM_ACCEPTORS] [--version] [--log-level LOG_LEVEL]
2354
+ [--log-file LOG_FILE] [--log-format LOG_FORMAT]
2355
+ [--open-file-limit OPEN_FILE_LIMIT]
2357
2356
[--plugins PLUGINS [PLUGINS ...]] [--enable-dashboard]
2358
2357
[--basic-auth BASIC_AUTH] [--enable-ssh-tunnel]
2359
2358
[--work-klass WORK_KLASS] [--pid-file PID_FILE] [--openssl OPENSSL]
@@ -2379,10 +2378,25 @@ usage: -m [-h] [--threadless] [--threaded] [--num-workers NUM_WORKERS]
2379
2378
[--filtered-client-ips FILTERED_CLIENT_IPS]
2380
2379
[--filtered-url-regex-config FILTERED_URL_REGEX_CONFIG]
2381
2380
2382
- proxy.py v2.4.4rc6.dev164+g73497f30
2381
+ proxy.py v2.4.4rc6.dev172+ge1879403.d20240425
2383
2382
2384
2383
options:
2385
2384
-h, --help show this help message and exit
2385
+ --tunnel-hostname TUNNEL_HOSTNAME
2386
+ Default: None. Remote hostname or IP address to which
2387
+ SSH tunnel will be established.
2388
+ --tunnel-port TUNNEL_PORT
2389
+ Default: 22. SSH port of the remote host.
2390
+ --tunnel-username TUNNEL_USERNAME
2391
+ Default: None. Username to use for establishing SSH
2392
+ tunnel.
2393
+ --tunnel-ssh-key TUNNEL_SSH_KEY
2394
+ Default: None. Private key path in pem format
2395
+ --tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE
2396
+ Default: None. Private key passphrase
2397
+ --tunnel-remote-port TUNNEL_REMOTE_PORT
2398
+ Default: 8899. Remote port which will be forwarded
2399
+ locally for proxy.
2386
2400
--threadless Default: True. Enabled by default on Python 3.8+ (mac,
2387
2401
linux). When disabled a new thread is spawned to
2388
2402
handle each client connection.
@@ -2419,21 +2433,6 @@ options:
2419
2433
--host and --port flags are ignored
2420
2434
--num-acceptors NUM_ACCEPTORS
2421
2435
Defaults to number of CPU cores.
2422
- --tunnel-hostname TUNNEL_HOSTNAME
2423
- Default: None. Remote hostname or IP address to which
2424
- SSH tunnel will be established.
2425
- --tunnel-port TUNNEL_PORT
2426
- Default: 22. SSH port of the remote host.
2427
- --tunnel-username TUNNEL_USERNAME
2428
- Default: None. Username to use for establishing SSH
2429
- tunnel.
2430
- --tunnel-ssh-key TUNNEL_SSH_KEY
2431
- Default: None. Private key path in pem format
2432
- --tunnel-ssh-key-passphrase TUNNEL_SSH_KEY_PASSPHRASE
2433
- Default: None. Private key passphrase
2434
- --tunnel-remote-port TUNNEL_REMOTE_PORT
2435
- Default: 8899. Remote port which will be forwarded
2436
- locally for proxy.
2437
2436
--version, -v Prints proxy.py version.
2438
2437
--log-level LOG_LEVEL
2439
2438
Valid options: DEBUG, INFO (default), WARNING, ERROR,
@@ -2506,7 +2505,7 @@ options:
2506
2505
Default: None. Signing certificate to use for signing
2507
2506
dynamically generated HTTPS certificates. If used,
2508
2507
must also pass --ca-key-file and --ca-signing-key-file
2509
- --ca-file CA_FILE Default: /Users/abhinavsingh/Dev/proxy.py/.venv31010 /l
2508
+ --ca-file CA_FILE Default: /Users/abhinavsingh/Dev/proxy.py/.venv31013 /l
2510
2509
ib/python3.10/site-packages/certifi/cacert.pem.
2511
2510
Provide path to custom CA bundle for peer certificate
2512
2511
verification
0 commit comments