convert ssh tunnel to http proxy

来源:互联网 发布:ad域安装软件 编辑:程序博客网 时间:2024/06/05 00:12

首先是安装

apt-get install privoxy

然后修改配置文件/etc/privoxy/conf

        forward-socks5   /               127.0.0.1:8528 .

8528是我ssh tunnel监听本地的端口,但是用于socks5协议


privoxy默认会自己监听本地端口8118,在8118端口接收的http/https请求会被转发到8528端口。


然后在命令行中设置环境变量,即可使用http(s) proxy了。

export https_proxy=https://localhost:8118/





原创粉丝点击