推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
iiusky
V2EX  ›  Python

如何用 Python 搞一个代理服务器

  •  
  •   iiusky · Mar 24, 2017 · 7570 views
    This topic created in 3529 days ago, the information mentioned may be changed or developed.

    想做一个中转代理服务器,用 python 写,在浏览器上设置代理 ip : port ,然后把所有的 http 和 https 的包都进行转发,同时做一些不可描述的事情,如何搞呢?

    12 replies  •  2017-03-28 23:01:32 +08:00
    LokiSharp
    LokiSharp
    Mar 24, 2017 via iPhone
    1
    看看 SS 的源码不就知道了。。。
    wangxn
    wangxn
    Mar 24, 2017 via Android
    2
    容易,一搜就有教程。
    est
    est
    Mar 24, 2017❤️1
    3
    当年有个人也是这样想的,然后就照着网上的 socks5 教程做了个 ss
    000wangxinyu000
    000wangxinyu000
    Mar 24, 2017
    4
    接楼上~后来那个人被叫去喝茶了
    lixingcong
    lixingcong
    Mar 24, 2017 via Android
    5
    故事继续发展。。 c 大去了美国
    findex
    findex
    Mar 24, 2017
    6
    @lixingcong 你确定是肉翻了吗?
    zk8802
    zk8802
    Mar 24, 2017
    7
    楼主可以参考 https://github.com/inaz2/proxy2 。
    lixingcong
    lixingcong
    Mar 25, 2017 via Android
    8
    @findex 不清楚是不是肉番,推特上看到有人说的
    icedx
    icedx
    Mar 25, 2017
    9
    看你的描述 你应该是从零开始的

    不过我推荐你最好不要开始

    人生多美好啊 何必去浪费时间
    iiusky
    iiusky
    OP
    Mar 25, 2017
    10
    @LokiSharp 嗯好
    @wangxn 恩
    @est -,-
    @000wangxinyu000 @lixingcong @findex 发展成故事会了?
    @zk8802 非常感谢

    @icedx 2333
    claysec
    claysec
    Mar 25, 2017
    11
    肉翻是最好的方法
    gwind
    gwind
    Mar 28, 2017
    12
    我们一开始用 Python 开发消息系统,后来改用 golang 。
    其实现在很多 tunnel 都是用 golang 开发的,如果愿意学习,推荐看看:
    1. https://github.com/getqujing/qtunnel (几百行代码,单向代理隧道,合适你的需求 , TCP 协议都支持)
    2. https://github.com/ooclab/es (我们写的,从 Python 发展而来, 4000 行左右代码,双向对称设计)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 18:52 · PVG 02:52 · LAX 10:52 · JFK 13:52
    ♥ Do have faith in what you're doing.