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选项中连接设置代理服务器即可