linux - 路由器如何设置可以实现产生的wifi经过socks5代理?
PHP中文网
PHP中文网 2017-04-17 16:35:21
0
1
772

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

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

PHP中文网
PHP中文网

认证高级PHP讲师

répondre à tous(1)
Peter_Zhu

建议使用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等其他命令就自己看文档了~

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!