Skip to content

Commit bf1a7bf

Browse files
authored
pproxy 1.4.1
1 parent f7cec29 commit bf1a7bf

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎README.rst‎

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

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

66
Features
77
-----------
@@ -17,6 +17,7 @@ Features
1717
- SSL connection support to prevent Man-In-The-Middle attack.
1818
- Encryption cipher support to keep communication secure. (chacha20, aes-256-cfb, etc)
1919
- Shadowsocks OTA (One-Time-Auth_) experimental feature support.
20+
- SSR plugins support. (http_simple, verify_simple, tls1.2_ticket_auth, etc)
2021
- Basic statistics for bandwidth and total traffic by client/hostname.
2122
- PAC support for automatically javascript configuration.
2223
- Iptables NAT redirect packet tunnel support.
@@ -31,7 +32,7 @@ Python3
3132

3233
From **pproxy** 1.1.0, the minimal Python requirement is **3.3**, since old python versions are still widely used and PyPy3 only has 3.3 support currently. *Python 2* will not be supported in the future.
3334

34-
From **proxy** 1.3.0, the minimal Python requirement is **3.7**, since **Python 3.7** make the **async**/**await**/ reserved words, we cannot make pproxy compatible with old versions anymore.
35+
From **proxy** 1.3.0, the minimal Python requirement is **3.6**, since **Python 3.7** make the **async**/**await**/ reserved words, we cannot make pproxy compatible with old versions anymore.
3536

3637
Installation
3738
-----------
@@ -86,14 +87,15 @@ Usage
8687
URI Syntax
8788
-----------
8889

89-
{scheme}://[{cipher}@]{netloc}[?{rules}][#{auth}]
90+
{scheme}://[{cipher}@]{netloc}[/{plugins}][?{rules}][#{auth}]
9091

9192
- scheme
9293
- Currently supported scheme: http, socks, ss, ssl, secure. You can use + to link multiple protocols together.
9394

9495
:http: http protocol
9596
:socks: socks5 protocol
9697
:ss: shadowsocks protocol
98+
:ssr: shadowsocksR protocol
9799
:redir: redirect protocol (iptables nat)
98100
:ssl: communicate in (unsecured) ssl
99101
:secure: comnunicate in (secured) ssl
@@ -179,6 +181,9 @@ URI Syntax
179181
- netloc
180182
- It can be "hostname:port" or "/unix_domain_path". If the hostname is empty, server will listen on all interfaces.
181183
- Valid netloc: localhost:8080, 0.0.0.0:8123, /tmp/domain_socket, :8123
184+
- plugins
185+
- It can be multiple plugins joined by ",". Supported plugins: plain, origin, http_simple, tls1.2_ticket_auth, verify_simple, verify_deflate
186+
- Valid plugins: /tls1.2_ticket_auth,verify_simple
182187
- rules
183188
- The filename that contains regex rules
184189
- auth
@@ -237,6 +242,10 @@ If you want to listen in SSL, you must specify ssl certificate and private key f
237242

238243
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.
239244

245+
A ShadowsocksR example:
246+
247+
$ pproxy -i ssr://chacha20:mypass@0.0.0.0:443/tls1.2_ticket_auth,verify_simple
248+
240249
An iptable NAT redirect example:
241250

242251
| $ iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 5555

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def find_version(*file_paths):
2525
author='Qian Wenjie',
2626
author_email='qianwenjie@gmail.com',
2727
license='MIT',
28-
python_requires='>=3.7',
28+
python_requires='>=3.6',
2929
classifiers=[
3030
'Development Status :: 5 - Production/Stable',
3131
'Environment :: Console',

0 commit comments

Comments
 (0)