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

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

  •  1
     
  •   dream10201 · May 30, 2019 · 1819 views
    This topic created in 2721 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
    Juszoe
    May 30, 2019
    1
    搜“树莓派 透明代理”,用 ss_redir 可以实现,https://www.zfl9.com/ss-redir.html
    dream10201
    dream10201
    OP
    May 30, 2019
    2
    @Juszoe 晚上回去试试吧
    whatsmyip
    whatsmyip
    May 30, 2019❤️1
    3
    用 redsocks 转换流量,然后用 iptables 转发

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


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