{ "info": { "author": "gonewind", "author_email": "gonewind.he@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking" ], "description": "PPVLAN\n\n======\n\nPPVLAN \u662f\u65e0\u4e2d\u5fc3\u8282\u70b9\u7684\u865a\u62df\u5c40\u7f51\u3002\u4efb\u4f55\u8282\u70b9\uff0c\u65e0\u8bba\u4f4d\u4e8eInternet\u6216\u8005\u9632\u706b\u5899\u540e\uff0c\u53ea\u9700\u8981\u5b89\u88c5\u8be5\u8f6f\u4ef6\uff0c\u8fd0\u884c\u540e\uff0c\u5c31\u53ef\u4ee5\u5efa\u7acb\u548c\u5176\u4ed6\u8282\u70b9\u4e4b\u95f4\u7684\u865a\u62df\u5c40\u57df\u7f51\u3002\u5982\u529e\u516c\u5ba4\u548c\u5bb6\u5ead\u7535\u8111\u76f4\u63a5\u7ec4\u5efa\u865a\u62df\u5c40\u7f51\uff0c\u6216\u8005\u4eb2\u53cb\u4e4b\u95f4\u5efa\u7acb\u865a\u62df\u5c40\u7f51\uff0c\u5728\u5c40\u7f51\u4e0a\u8fdb\u884c\u6587\u4ef6\u5171\u4eab\u7b49\u3002\n\n\u7b80\u8981\u539f\u7406\n============\n\u8282\u70b9\u8fd0\u884c\u540e\uff0c\u4f1a\u5c1d\u8bd5\u8fde\u63a5\u7f51\u7edc\u4e0a\u5176\u4ed6\u8282\u70b9\uff0c\u901a\u8fc7\u7f51\u7edc\u5404\u8282\u70b9\u5bfb\u627e\u76f8\u540c\u7684VLAN\u53f7\u548cSecret\u7684\u8282\u70b9\uff0c\u5e76\u542f\u52a8\u865a\u62df\u7f51\u5361\uff0c\u865a\u62df\u5c40\u57df\u7f51\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002\n\n\u5b89\u88c5\n=======\nLinux\n=========\npip install python-ppvlan\n\nwindows \n===========\n1. \u9700\u8981\u5148\u5b89\u88c5openvpn\u4e2d\u7684tapdriver\n2. \u5982\u679c\u5b89\u88c5\u4e86python\u548cpip , \u53ef\u4ee5\u76f4\u63a5::\n\n\tpip install python-ppvlan\n\n \u5982\u679c\u4e0d\u60f3\u5b89\u88c5python\uff0c\u5219\u53ef\u4ee5\u4e0b\u8f7d \u6267\u884c\u7248\n pan.baidu.com\n \n\u914d\u7f6e\n=========\n\u914d\u7f6e\u6587\u4ef6\u91c7\u7528yaml\u683c\u5f0f\u3002\u6587\u4ef6\u540d\u79f0\u81ea\u5b9a\u4e49\uff0c\u5982ppnetwork.yaml\n\n\u793a\u4f8b\u5982\u4e0b\n::\n{\n#ppnet \nnode_id: 818300194,\nnode_port: 54194,\n\nnode_nic: \"\u65e0\u7ebf\u7f51\u5361\",\nDebugLevel: 20,\n#DebugFile: 'pplink.log',\n\nnode_file: nodes.pkl,\nnode_type: client,\n\n#flow\nflow : {\nflow_port: 9000,\n},\n\n#service\n\"services\": {\n\"vpn\": enable,\n}, \n \n#vpn\nvpn: {\nVlanId : 0,\nIPRange : { start : 192.168.33.1, end : 192.168.33.255 },\nVlanIP : 0.0.0.0,\nVlanMask : 255.255.255.0,\nVlanSecret : \"12345678\",\n} \n} \n::\n\u8fd0\u884c\n=====\nppnetwork -h | --help \u5e2e\u52a9\nppnetwork --config pp.yaml \u7528\u6307\u5b9a\u7684\u914d\u7f6e\u6587\u4ef6\uff08pp.yaml\uff09 \u8fd0\u884c\u3002\nppnetwork \u7528\u7f3a\u7701\u914d\u7f6e\u6587\u4ef6ppnetwork.yaml \u8fd0\u884c\n \n\n\u5b89\u5168\u8bf4\u660e\n========\n1. \u4efb\u4f55\u8282\u70b9\u52a0\u5165\u865a\u62df\u5c40\u7f51\u63a5\u5165\u90fd\u9700\u8981\u9a8c\u8bc1\uff0c\u7f51\u7edc\u53f7+\u5bc6\u94a5 +\u65f6\u95f4\u7a97\u53e3\u3002 \n2. \u6240\u6709\u865a\u62df\u7f51\u7edc\u4e2d\u6570\u636e\u4f20\u8f93\u4e3a\u900f\u4f20\uff0c\u6ca1\u6709\u4f7f\u7528\u52a0\u5bc6\u3002\n3. \u865a\u62df\u7f51\u4e2d\u7684\u5730\u5740\u5206\u914d\uff0c\u53ef\u4ee5\u81ea\u884c\u6307\u5b9a\uff0c\u4e5f\u53ef\u4ee5\u52a8\u6001\u83b7\u5f97\uff08\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e3a0.0.0.0\uff09\u3002\n \u5982\u679c\u81ea\u884c\u6307\u5b9a\u6709\u51b2\u7a81\uff0c\u540e\u8fdb\u5165\u8005\u4f1a\u52a8\u6001\u5206\u914d\u53e6\u4e00\u4e2a\u7a7a\u95f2\u5730\u5740\u3002\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u547d\u4ee4 \u5982 ifconfig \u6216 ipconfig \u67e5\u770b\n4. \u7f51\u7edc\u53f7\u548c\u7f51\u7edc\u5730\u5740\u6bb5\u5fc5\u987b\u4fdd\u6301\u4e00\u81f4\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u5730\u5740\u5206\u914d\u9519\u8bef\u3002\n\n## \u6fc0\u52b1\u539f\u5219\n1. \u6309\u8f6c\u53d1\u6d41\u91cf\u3001\u65f6\u6bb5\u3001\u533a\u57df\uff08\u65f6\u5ef6\uff09 \u6fc0\u52b1", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gonewind73/pp_vlan", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-ppvlan", "package_url": "https://pypi.org/project/python-ppvlan/", "platform": "Linux", "project_url": "https://pypi.org/project/python-ppvlan/", "project_urls": { "Homepage": "https://github.com/gonewind73/pp_vlan" }, "release_url": "https://pypi.org/project/python-ppvlan/1.0.0/", "requires_dist": null, "requires_python": ">=3", "summary": "Linux/Windows Virtual LAN application written in python", "version": "1.0.0" }, "last_serial": 3903575, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e69094eb306fb6f6bfeebe674feb8c89", "sha256": "8c5074603c1dc9f6bdb1eb965b622b404fa5f35bf8a99dbe2e857c0455e59a78" }, "downloads": -1, "filename": "python-ppvlan-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e69094eb306fb6f6bfeebe674feb8c89", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 8578, "upload_time": "2018-05-27T15:03:20", "url": "https://files.pythonhosted.org/packages/16/c3/4c6f4488ccecd2f4f513cb516f2d29e1d66708f275d6541b67b61553cf6c/python-ppvlan-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e69094eb306fb6f6bfeebe674feb8c89", "sha256": "8c5074603c1dc9f6bdb1eb965b622b404fa5f35bf8a99dbe2e857c0455e59a78" }, "downloads": -1, "filename": "python-ppvlan-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e69094eb306fb6f6bfeebe674feb8c89", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 8578, "upload_time": "2018-05-27T15:03:20", "url": "https://files.pythonhosted.org/packages/16/c3/4c6f4488ccecd2f4f513cb516f2d29e1d66708f275d6541b67b61553cf6c/python-ppvlan-1.0.0.tar.gz" } ] }