X Tutup
Skip to content

Commit 810b989

Browse files
authored
Add files via upload
1 parent 7af181a commit 810b989

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
python-proxy
22
===========
33

4-
HTTP/Socks/Shadowsocks asynchronous tunnel proxy implemented in Python3 asyncio.
4+
HTTP/Socks/Shadowsocks/Redirect asynchronous tunnel proxy implemented in Python3 asyncio.
55

66
Features
77
-----------
88

99
- Single-thread asynchronous IO with high availability and scalability.
1010
- Lightweight (~500 lines) and powerful by leveraging python builtin *asyncio* library.
1111
- No additional library is required. All codes are in Pure Python.
12-
- Automatically detect incoming traffic: HTTP/Socks/Shadowsocks.
12+
- Automatically detect incoming traffic: HTTP/Socks/Shadowsocks/Redirect.
1313
- Specify multiple remote servers for outcoming traffic: HTTP/Socks/Shadowsocks.
1414
- Unix domain socket support for communicating locally.
1515
- Basic authentication support for all three protocols.
@@ -19,6 +19,7 @@ Features
1919
- Shadowsocks OTA (One-Time-Auth_) experimental feature support.
2020
- Basic statistics for bandwidth and total traffic by client/hostname.
2121
- PAC support for automatically javascript configuration.
22+
- Iptables NAT redirect packet tunnel support.
2223
- PyPy3.3 v5.5 support to enable JIT speedup.
2324

2425
.. _One-Time-Auth: https://shadowsocks.org/en/spec/one-time-auth.html
@@ -65,7 +66,7 @@ Usage
6566
usage: pproxy [-h] [-i LISTEN] [-r RSERVER] [-b BLOCK] [-v] [--ssl SSLFILE] [--pac PAC] [--get GETS] [--version]
6667

6768
Proxy server that can tunnel among remote servers by regex rules. Supported
68-
protocols: http,socks,shadowsocks
69+
protocols: http,socks,shadowsocks,redirect
6970

7071
optional arguments:
7172
-h, --help show this help message and exit
@@ -91,6 +92,7 @@ URI Syntax
9192
:http: http protocol
9293
:socks: socks5 protocol
9394
:ss: shadowsocks protocol
95+
:redir: redirect protocol (iptables nat)
9496
:ssl: communicate in (unsecured) ssl
9597
:secure: comnunicate in (secured) ssl
9698

@@ -233,4 +235,11 @@ If you want to listen in SSL, you must specify ssl certificate and private key f
233235

234236
It listen on both 80 HTTP and 443 HTTPS ports, use the specified certificate and private key files. The "--pac" enable PAC support, so you can put https://yourdomain.com/autopac in your device's auto-configure url.
235237

238+
An iptable NAT redirect example:
239+
240+
| $ iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 5555
241+
| $ pproxy -i redir://:5555 -r http://remote_http_server:3128 -v
242+
243+
This example illustrates how to redirect all local output tcp traffic with destination port 80 to localhost port 5555 listened by **pproxy**, and then tunnel the traffic to remote http proxy.
244+
236245

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def find_version(*file_paths):
3838
'Programming Language :: Python :: 3.5',
3939
'Programming Language :: Python :: 3.6',
4040
],
41-
keywords='proxy socks http shadowsocks cipher ssl',
41+
keywords='proxy socks http shadowsocks redirect tunnel cipher ssl',
4242
packages=['pproxy'],
4343
install_requires=[],
4444
entry_points={

0 commit comments

Comments
 (0)
X Tutup