Forward socks5 proxy to HTTP proxy

Some applications cannot use socks5 proxy directly. Therefore, we need channel the socks5 proxy to HTTP proxy for their usage.

Bitvise SSH Client

Startup the SSH socks5 proxy

  1. Login to your SSH proxy server

image_6

2. Enable the SSH proxy service

image_4

Privoxy

Forward the socks5 proxy to HTTP

  1. Edit the main configuration

image_5

2. Make sure “forward-socks5” set to correct value

forward-socks5 / 127.0.0.1:2080 .

3. And setup the “listen-address” which will be your HTTP proxy address

listen-address 127.0.0.1:8118

Proxy Auto-Config (PAC)

function FindProxyForURL(url, host) {
    if (shExpMatch(url,"*.facebook.com/*") || shExpMatch(url,"*.google*.com/*")  || shExpMatch(url,"*.gstatic.com/*") || shExpMatch(url,"*.flickr.com/*") || shExpMatch(url,"*.blogspot.com/*") || shExpMatch(url,"*.wordpress.org/*") || shExpMatch(url,"*.w.org/*") || shExpMatch(url,"*.schema.org/*")) {
        return "PROXY 127.0.0.1:8118";
    }
    return "DIRECT";
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

Back to Top