首页  >  问答  >  正文

linux - 路由器如何设置可以实现产生的wifi经过socks5代理?

socks服务端我搭建好了,路由器也装好了ss-local,接下来还需要设置什么啊?

我想实现的是路由器产生的wifi,只要另一台电脑连接上就可以实现代理,这样linux装软件速度快

PHP中文网PHP中文网2742 天前778

全部回复(1)我来回复

  • 天蓬老师

    天蓬老师2017-04-17 16:37:21

    建议使用privoxy将socks转成http,毕竟有些项目不支持socks代理,privoxy配置非常的简单

    # step1
    $ sudo apt-get install privoxy
    
    # step2,末尾添加一行文件即可,如果题主用shawdosocks的话默认就是1080
    $ vim etc/privoxy/config
    forward-socks5 / 127.0.0.1:1080 .

    以后要用的时候临时设置下就行了

    $ export http_proxy='http://localhost:8118'

    如果使用GitHub的话git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port,即git config --global http.proxy http://localhost:8118,wget等其他命令就自己看文档了~

    回复
    0
  • 取消回复