使用Privoxy进行代理上网

1、设置组策略
开始--运行--gpedit.msc--计算机配置--管理模板--WINDOWS组件-- Internet Explorer-- 点击Internet控制面板,
在右边的设置里双击[禁用连接页],选择未配置,然后应用确定后退出。

2、导入注册表
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel]
"ConnectionsTab"=dword:00000000

3、安装Privoxy,打开配置文件(https://velaciela.ms/privoxy_share_proxy

A、转发所有请求

搜索到5.2节,在一堆示例(example.com)下添加一行:”forward               /               .”

# Examples:
 #
 # From the company example.com, direct connections are made to
# all “internal” domains, but everything outbound goes through
 # their ISP’s proxy by way of example.com’s corporate SOCKS 4A
 # gateway to the Internet.
 #
 # forward-socks4a / socks-gw.example.com:1080 www-cache.isp.example.net:8080
 # forward .example.com .
 #

forward               /               .

# A rule that uses a SOCKS 4 gateway for all destinations but no
 # HTTP parent looks like this:
 #
 # forward-socks4 / socks-gw.example.com:1080 .
 #
 # To chain Privoxy and Tor, both running on the same system, you
 # would use something like:
 #
 # forward-socks5 / 127.0.0.1:8080 .


意思是转发所有通信(/)到所有目标(.)  注意这个点不能少,不然就失败了。

B、接收代理请求

搜索“listen-address”或在750行附近找到以下内容:

# listen-address 192.168.0.1:8118
 #
 # Suppose you are running Privoxy on an IPv6-capable machine and
 # you want it to listen on the IPv6 address of the loopback
 # device:
 #
 # listen-address [::1]:8118
 #
 #

加一行(如果有已经设置的监听127.0.0.1:port的请删除):

# listen-address 192.168.0.1:8118
 #
 # Suppose you are running Privoxy on an IPv6-capable machine and
 # you want it to listen on the IPv6 address of the loopback
 # device:
 #
 # listen-address [::1]:8118
 #
listen-address 0.0.0.0:8964        #地址必须为0.0.0.0,端口号为刚才防火墙里设置的端口

保存退出。



此时一样用其他设备连接HTTP代理到服务器,看是否能上网。(上的是服务器正常的网,因为没有启动VPN)

流程为:

手机—–HTTP—-[服务器(192.168.1.100:8964)—-Privoxy– 直接发出]——目标网站

4、IE的Internet选项中连接设置代理服务器即可

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值