ss终端代理

来源:互联网 发布:程序员述职报告 编辑:程序博客网 时间:2024/05/22 07:44
  • ssserver是服务器客户端sslocal才是用户客户端
sslocal -c 配置文件

要使ss在后台运行,使用

sslocal -c 配置文件 -d start

使ss在后台停止运行

sslocal -c 配置文件 -d stop

如何将socks5转换为http代理
做个备份吧~~
First run polipo with parent proxy set to Shadowsocks:

apt-get install poliposervice polipo stoppolipo socksParentProxy=localhost:1080

Then you can play with the HTTP proxy:

http_proxy=http://localhost:8123 apt-get updatehttp_proxy=http://localhost:8123 curl www.google.comhttp_proxy=http://localhost:8123 wget www.google.comgit config --global http.proxy 127.0.0.1:8123  //8123端口为polipo的端口git clone https://github.com/xxx/xxx.gitgit xxxgit xxxgit config --global --unset-all http.proxy
  • 检测当前IP地址
curl ip.gs
  • 使apt-get命令走代理
    方法1跟2不确定能不能用,2没试过
    1.
    修改个人目录下的.bashrc文件,填入
Acquire::http::proxy "http://127.0.0.1:8123/"; //这里的8123端口为polipo

2.
这个方法应该是不可行的…
如果希望apt-get与其它应用程序都可以一直使用http代理,可以这样:
在终端下编辑~/.bashrc文件:  vim ~/.bashrc
在文件末尾添加如下两句:

  http_proxy=http://host:port  export http_proxy

3.
如果只是希望apt-get使用代理,可以这样:
在终端下编辑/etc/apt/apt.conf加入下面这行,

Acquire::http::Proxy “http://yourproxyaddress:proxyport”;

保存退出apt.conf。

0 0