{ "info": { "author": "Kay Zheng", "author_email": "l04m33@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.4" ], "description": "Moses\n#####\n\nMoses \u662f\u4e00\u4e2a\u4f7f\u7528\u52a0\u5bc6\u8fde\u63a5\u7684 Socks5 \u4ee3\u7406\uff0c\u539f\u7406\u4e0e `ShadowSocks`_ \u4e00\u81f4\uff0c\n\u4e0d\u8fc7\u52a0\u5bc6\u65b9\u6cd5\u6362\u6210\u4e86 TLS, \u652f\u6301\u670d\u52a1\u7aef\u3001\u5ba2\u6237\u7aef\u53cc\u5411\u9a8c\u8bc1\uff0c\u66f4\u5b89\u5168\uff0c\u4e0d\u8fc7\u8fde\u63a5\n\u901f\u5ea6\u4e5f\u66f4\u6162\u3002\n\n.. _ShadowSocks: https://shadowsocks.org/\n\n\u5b89\u88dd\n####\n\n.. code-block:: text\n\n \u276f pip install moses\n\n\u6216\u8005\u4f7f\u7528\u6700\u65b0\u4ee3\u7801\uff1a\n\n.. code-block:: text\n\n \u276f git clone https://github.com/l04m33/moses.git\n \u276f pip install ./moses\n\n\u4f7f\u7528\u65b9\u6cd5\n########\n\n.. code-block:: text\n\n \u276f moses -h\n usage: moses [-h] (-c | -s) [-b
:] [-n] [-l LOCAL_CERT]\n [-r REMOTE_CERT] [-e CIPHERS] [--backlog BACKLOG]\n [--loglevel {critical,fatal,error,warning,info,debug}]\n [--block-size BLOCK_SIZE] [-k KEEPALIVE] [-p
:]\n [-f
:]\n\n optional arguments:\n -h, --help show this help message and exit\n\n Common Options:\n -c, --client Client mode\n -s, --server Server mode\n -b
:, --bind
:\n IP & port to bind (default: :1080)\n -n, --no-tls Do not use TLS encryption\n -l LOCAL_CERT, --local-cert LOCAL_CERT\n Local SSL certificates (default: ./local.pem)\n -r REMOTE_CERT, --remote-cert REMOTE_CERT\n Remote SSL certificates (default: ./remote.pem)\n -e CIPHERS, --ciphers CIPHERS\n Ciphers to use for encryption. Run `openssl ciphers`\n to see available ciphers\n --backlog BACKLOG Backlog for the listening socket (default: 128)\n --loglevel {critical,fatal,error,warning,info,debug}\n Log level (default: info)\n --block-size BLOCK_SIZE\n Block size for data streaming, in bytes (default:\n 2048)\n -k KEEPALIVE, --keepalive KEEPALIVE\n TCP keepalive parameters, in the form of\n ,,.\n See `man 7 tcp` for details (default: keepalive\n disabled)\n\n Client Options:\n -p
:, --peer
:\n Peer (server) address\n\n Server Options:\n -f
:, --forward
:\n Simply forward all connections to the given address\n\nSocks5 \u4ee3\u7406\n###########\n\n\u542f\u52a8\u670d\u52a1\u5668\uff1a\n\n.. code-block:: text\n\n \u276f moses -s -b some.server.addr.ess:32000 \\\n -l server_key.pem -r client_cert.pem\n\n\u542f\u52a8\u5ba2\u6237\u7aef\uff1a\n\n.. code-block:: text\n\n \u276f moses -c -b 127.0.0.1:1080 -p some.server.addr.ess:32000 \\\n -l client_key.pem -r server_cert.pem\n\n\u8f6c\u53d1 HTTP \u4ee3\u7406\n##############\n\nMoses \u672c\u8eab\u6ca1\u6709\u5b9e\u73b0 HTTP \u4ee3\u7406\uff0c\u4e0d\u8fc7\u4f60\u53ef\u4ee5\u7528 Moses \u5c06 HTTP \u4ee3\u7406\u8bf7\u6c42\u8f6c\n\u53d1\u5230\u5176\u4ed6 HTTP \u4ee3\u7406\u7a0b\u5e8f\uff08\u4f8b\u5982 Privoxy_ \uff09\u4e0a\u3002\u5047\u8bbe\u4f60\u7684\u670d\u52a1\u5668\u5728 8118 \u7aef\n\u53e3\u4e0a\u914d\u7f6e\u4e86\u4e00\u4e2a Privoxy \u5b9e\u4f8b\uff0c\u8fd9\u6837\u542f\u52a8 Moses \u670d\u52a1\u5668\u5373\u53ef\uff1a\n\n.. code-block:: text\n\n \u276f moses -s -b some.server.addr.ess:32000 \\\n -f 127.0.0.1:8118 \\\n -l server_key.pem -r client_cert.pem\n\n.. _Privoxy: http://www.privoxy.org/\n\nLinux \u4e0b\u7684\u5168\u5c40\u900f\u660e\u4ee3\u7406\n######################\n\n``staff`` \u662f\u4e00\u4e2a\u900f\u660e\u4ee3\u7406\u811a\u672c\uff0c\u901a\u8fc7\u4e0e ``moses`` \u914d\u5408\u53ef\u4ee5\u81ea\u52a8\u8f6c\u53d1\n\u6240\u6709 DNS \u8bf7\u6c42\u548c TCP \u8fde\u63a5\uff0c poor man's VPN :)\n\n\u4f7f\u7528\u65b9\u6cd5\uff08\u5047\u8bbe Moses \u5ba2\u6237\u7aef\u8fd0\u884c\u5728 127.0.0.1:1080 \u4e0a\uff09\uff1a\n\n.. code-block:: text\n\n \u276f staff -p 127.0.0.1:1080\n\n\u7136\u540e\u7528 iptables \u6dfb\u52a0\u8fd9\u4e09\u6761\u89c4\u5219\uff08\u5f53\u7136 eth0 \u8981\u66ff\u6362\u6210\u4f60\u81ea\u5df1\u7684\u7f51\u7edc\u63a5\u53e3\uff09\uff1a\n\n.. code-block:: text\n\n \u276f iptables -t nat -I OUTPUT -o eth0 -p udp --dport 53 -j DNAT --to 127.0.0.1:32000\n \u276f iptables -t nat -I OUTPUT -o eth0 -p tcp --dport 80 -j DNAT --to 127.0.0.1:32000\n \u276f iptables -t nat -I OUTPUT -o eth0 -p tcp --dport 443 -j DNAT --to 127.0.0.1:32000\n\n\u8fd9\u6837\u6240\u6709 DNS \u8bf7\u6c42\u548c\u76ee\u6807\u7aef\u53e3\u662f 80\u3001443 \u7684 TCP \u8fde\u63a5\u90fd\u4f1a\u8d70 Moses \u4ee3\u7406\u3002\n\n\u4f60\u4e5f\u53ef\u4ee5\u66f4\u8fdb\u4e00\u6b65\uff0c\u7528 geoip \u89c4\u5219\u5ffd\u7565\u67d0\u5899\u56fd\u7684 IP \uff08\u9700\u8981\u5b89\u88c5 `xtables-addons`_ \uff09\uff1a\n\n.. code-block:: text\n\n \u276f iptables -t nat -I OUTPUT -o eth0 -p tcp -m geoip ! --dst-cc CN -j DNAT --to 127.0.0.1:32000\n\n\u8981\u67e5\u770b\u5176\u4ed6\u9009\u9879\u7684\u7528\u6cd5\uff0c\u6267\u884c ``staff -h`` .\n\n.. _xtables-addons: http://xtables-addons.sourceforge.net/\n\nLicense\n#######\n\nMIT.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/l04m33/moses", "keywords": "socks,proxy", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "moses", "package_url": "https://pypi.org/project/moses/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/moses/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/l04m33/moses" }, "release_url": "https://pypi.org/project/moses/0.10.0/", "requires_dist": null, "requires_python": null, "summary": "TLS encrypted socks5 proxy", "version": "0.10.0" }, "last_serial": 2394547, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "d88628aa5e9349686d86f3e41986e97a", "sha256": "e3a1068099d9bb9768e71380f452e18c4f523b7c95208ba1e8f123d3af6dfce7" }, "downloads": -1, "filename": "moses-0.10.0.tar.gz", "has_sig": false, "md5_digest": "d88628aa5e9349686d86f3e41986e97a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17844, "upload_time": "2016-10-12T04:27:49", "url": "https://files.pythonhosted.org/packages/84/0d/783ac17bd7ce07a1cd5f1ec4c4c3c1d6feee1b09a743933c4bed94e7c68b/moses-0.10.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "efd58ae4f0fed600e5e4dfd9be82cc02", "sha256": "113f2b4668fc1b2ef59fce64ec85c9fe251363437b2bf15029744840284d929d" }, "downloads": -1, "filename": "moses-0.9.0.tar.gz", "has_sig": false, "md5_digest": "efd58ae4f0fed600e5e4dfd9be82cc02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14203, "upload_time": "2016-04-12T13:52:21", "url": "https://files.pythonhosted.org/packages/25/46/d2cc5c0ed87633cb566bbe8a30a296dc3363daf0b4095b45c126be84bb27/moses-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d88628aa5e9349686d86f3e41986e97a", "sha256": "e3a1068099d9bb9768e71380f452e18c4f523b7c95208ba1e8f123d3af6dfce7" }, "downloads": -1, "filename": "moses-0.10.0.tar.gz", "has_sig": false, "md5_digest": "d88628aa5e9349686d86f3e41986e97a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17844, "upload_time": "2016-10-12T04:27:49", "url": "https://files.pythonhosted.org/packages/84/0d/783ac17bd7ce07a1cd5f1ec4c4c3c1d6feee1b09a743933c4bed94e7c68b/moses-0.10.0.tar.gz" } ] }