Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
dream10201
V2EX  ›  Linux

树莓派创建热点后怎么让热点的全部流量走代理

  •  1
     
  •   dream10201 · May 30, 2019 · 1636 views
    This topic created in 2627 days ago, the information mentioned may be changed or developed.
    整不明白了,求个大佬指点指点
    创建热点脚本: https://github.com/oblique/create_ap.git
    树莓派上挂了个 ssr,端口已经用 privoxy 把 socks5 转 http 了,需要让热点的流量全部走 http 代理
    12 replies    2019-06-05 11:18:14 +08:00
    Juszoe
        1
    Juszoe  
       May 30, 2019
    搜“树莓派 透明代理”,用 ss_redir 可以实现,https://www.zfl9.com/ss-redir.html
    dream10201
        2
    dream10201  
    OP
       May 30, 2019
    @Juszoe 晚上回去试试吧
    whatsmyip
        3
    whatsmyip  
       May 30, 2019   ❤️ 1
    用 redsocks 转换流量,然后用 iptables 转发

    https://blog.newnius.com/setup-global-proxy-with-raspberry-pi.html
    StederLee
        4
    StederLee  
       May 31, 2019 via Android
    如果树莓派没有其他的用途的话我觉得可以考虑 openwrt 配对应插件。
    dream10201
        5
    dream10201  
    OP
       May 31, 2019
    @StederLee 用途还是挺大的,部署了很多服务。
    StederLee
        6
    StederLee  
       May 31, 2019 via Android
    那么可以参考 @whatsmyip 的方法


    @dream10201
    dream10201
        7
    dream10201  
    OP
       May 31, 2019
    @StederLee 这两天一直在试,目前还没成功,那个似乎没有代理 udp 吧
    StederLee
        8
    StederLee  
       May 31, 2019 via Android
    dream10201
        9
    dream10201  
    OP
       May 31, 2019
    @StederLee 感谢,今晚回去试试
    DefoliationM
        10
    DefoliationM  
       May 31, 2019 via Android
    iptables
    photon006
        11
    photon006  
       May 31, 2019
    我刷了 openwrt 当路由器使用,搭配梯子还行。
    dream10201
        12
    dream10201  
    OP
       Jun 5, 2019
    已经成功了,用的 ss-redir,感谢各位的帮忙。我写了篇博客记录了一下,https://blog.bidd.net/2019/06/05/20190605101219/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2990 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.