设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 25200|回复: 17

proxy轻量级的PAC翻墙工具,不需要安装客户端。可以设置系统代理,也可以设置浏览器

[复制链接]

签到天数: 29 天

[LV.4]偶尔看看III

发表于 2016/1/20 13:49 | 显示全部楼层 |Google Chrome 43.0.2357.132|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻

提供个思路,请小樱看看可不可行

WPAD可以通过DHCP,这是建议的解决方案。

a wpad file. This is the same javascript file as the pac file, renamed (or symlinked) to wpad.dat
a web server to host the wpad.dat script. The wpad script needs to be located in the document root of the http server
the web server must be configured for .dat files with a MIME type of "application/x-ns-proxy-autoconfig"
a dhcp server, configured with option 252 = "http://your.server.here/wpad.dat"
一个 wpad 文件。跟 pac 文件是一样的,只是改名为 wpad.dat。
存放 wpad.dat 文件的 WEB 服务器,文件位置必须是 www 主机的根目录下比如 http://192.168.8.1/wpad.dat
WEB 服务器必须设置为XXX(看不懂,没接触过)
dhcp 服务器,配置文件要有dhcp-option=252,http://192.168.8.1/wpad.dat >openwrt 的 dnsmasq 可能在 /etc/dnsmasq.conf只需编辑加入dhcp-option=252,http://192.168.8.1/wpad.dat即可。 > >FF 不支持通过 DHCP 配置的 WPAD 只支持 DNS 配置的 WPAD,所以在 host 文件(建议在 DHCP 服务器上进行修改,在本机修改也可以)中加入192.168.0.1 wpad使得主机 ping wpad 结果为服务器的地址
sample lighttpd wpad setup

## /etc/lighttpd/lighttpd.conf
mimetype.assign = (
            ".html"    =>   "text/html",
            ".txt"     =>   "text/plain",
        ".wpad"    =>   "application/x-ns-proxy-autoconfig",
        [...]
)
[...]   
sample dnsmasq wpad setup

## dnsmasq is a combined dns and dhcp server
##  /etc/dnsmasq.conf
dhcp-option=252,http://your.server.here/wpad.dat
引用地址:https://gist.github.com/wen-long/6020543

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

签到天数: 29 天

[LV.4]偶尔看看III

发表于 2016/2/12 15:42 | 显示全部楼层 |TheWorld Browser|Windows 8.1
server01.pac.itzmx.com 检测不到IP,山东联通已全挂
[发帖际遇]: 她的胸毛 乐于助人,奖励 7 贡献. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2025/6/11 19:41 , Processed in 0.171430 second(s), 24 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表