{"id":13459306,"url":"https://github.com/hoochanlon/fq-book","last_synced_at":"2025-04-13T14:06:19.662Z","repository":{"id":37524561,"uuid":"134949638","full_name":"hoochanlon/fq-book","owner":"hoochanlon","description":"📖《网络代理与VPN应用详解》 详细阐述代理、隧道、VPN运作过程，并对GFW策略如：地址端口封锁、服务器缓存投毒、数字验证攻击、SSL连接阻断做相关的原理说明","archived":false,"fork":false,"pushed_at":"2024-01-12T06:08:51.000Z","size":260,"stargazers_count":3995,"open_issues_count":0,"forks_count":1191,"subscribers_count":115,"default_branch":"master","last_synced_at":"2025-04-13T14:06:13.697Z","etag":null,"topics":["deep-web","digital-certificate","fq-book","gfw","https","ip-blocking","ipfs","proxy","rst","shadowsocks","ssh","ssr","tcp","tunnel","vpn"],"latest_commit_sha":null,"homepage":"https://hoochanlon.github.io/fq-book","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoochanlon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-05-26T09:57:13.000Z","updated_at":"2025-04-13T07:20:50.000Z","dependencies_parsed_at":"2024-01-12T09:45:02.530Z","dependency_job_id":null,"html_url":"https://github.com/hoochanlon/fq-book","commit_stats":null,"previous_names":["hoodiearon/fq-book"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoochanlon%2Ffq-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoochanlon%2Ffq-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoochanlon%2Ffq-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoochanlon%2Ffq-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoochanlon","download_url":"https://codeload.github.com/hoochanlon/fq-book/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724639,"owners_count":21151561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-web","digital-certificate","fq-book","gfw","https","ip-blocking","ipfs","proxy","rst","shadowsocks","ssh","ssr","tcp","tunnel","vpn"],"created_at":"2024-07-31T09:01:15.126Z","updated_at":"2025-04-13T14:06:19.638Z","avatar_url":"https://github.com/hoochanlon.png","language":"Shell","funding_links":[],"categories":["Shell","信息搜集"],"sub_categories":[],"readme":"# 《网络代理与VPN应用详解》\n\n|[![cc](https://i.creativecommons.org/l/by-nc/4.0/80x15.png)](http://creativecommons.org/licenses/by-nc/4.0/)|[![fq-book](https://img.shields.io/badge/%F0%9F%93%96book-fq--book-red.svg?longCache=true\u0026style=flat-square)](https://hoochanlon.github.io/fq-book)|[![blog](https://img.shields.io/badge/%F0%9F%94%97blog-hoochanlon-lightgrey.svg?longCache=true\u0026style=flat-square)](https://hoochanlon.github.io/)|[![outlook](https://img.shields.io/badge/%F0%9F%93%A7hotmail-@邮箱联系-blue.svg?longCache=true\u0026style=flat-square)](mailto:hoochanlon@outlook.com)|[![stars](https://img.shields.io/github/stars/hoochanlon/fq-book.svg?style=social)](https://github.com/hoochanlon/fq-book)\n|:-:|:-:|:-:|:-:|:-:|\n\n## ***intro***\n\n本书着重于上网的方式与获取信息的技巧，并对相关流行且典型的软件做简要的上手配置，以及原理的相关说明。\n\n* [导读](docs/README.md)\n* [目录](docs/_sidebar.md)\n* [后记](docs/postscript.md)\n\n**《这本书》示例的多数网址，以及更多资料收录在 [w3-goto-world](https://github.com/hoochanlon/w3-goto-world) ，书中的相关章节搭配存储库 `科学上网` 效果会更好！**\n\n\u003c!--[![Stargazers over time](https://starchart.cc/hoochanlon/fq-book.svg)](https://starchart.cc/hoochanlon/fq-book)--\u003e\n\n[![Star History Chart](https://api.star-history.com/svg?repos=hoochanlon/fq-book\u0026type=Date)](https://star-history.com/#hoochanlon/fq-book\u0026Date)\n\n## ***update***\n\n《这本书能让你连接互联网》-\u003e 《网络代理与VPN应用详解》的更新要点：\n\n* 增加速成科学上网篇章\n* 增加相关上网方式以及软件配置操作\n* crx_header_invalid 解决方案的说明\n* VPN连接上服务器却无法访问任何网页及其他网络的解决办法\n* Windows 无法设置系统代理的问题\n* 项目内置 probot 机器人，method 新增 战略家模式\n\n* \u003cdetails\u003e\u003csummary\u003e其他更新 click me! \u003c/summary\u003e\n\n    * 增加对虚拟电话注册方案的说明\n    * 谷歌新账户注册方式\n    * 网页时光机以及查找相似站点\n    * 利用个人博客作为连接互联网的中转\n\n    \u003c/details\u003e\n\n此外，还精简了不必要的重复内容，图片采用 postimages 支持，项目由30M降低到144KB大小，非常方便在线部署及下载，欢迎 fork 《这本书》！\n\n### ***NET::ERR_CERT_AUTHORITY_INVALID***\n\n浏览器会额外提示：攻击者可能试图从 xxx.github.io 窃取你的信息，此服务器无法证明它是 xxx.github.io；你的计算机的操作系统不信任它的安全证书。这可能是由配置错误或者有攻击者截获你的连接而导致的。当继续访问时又会403。\n\n解招！：更改为如下提供的百度、阿里、腾讯DNS，再用ipconfig/flushdns 刷新缓存。原因简述：ISP提供的DNS发送错误的根证书，换成能向访问网站提供正确证书的第三方DNS。\n\n* 百度DNS：180.76.76.76\n* 阿里DNS：223.5.5.5、223.6.6.6\n* 腾讯DNS：119.29.29.29、182.254.116.116\n\n## ***usage***\n\n### 在线部署\n\n1. fork 《这本书》 到你的 repo\n2. 修改 docs/index.html 将`window.$docsify = {}` 的`repo` 修改成你的 repo\n3. 在 settings 找到 GitHub Pages 并选择 `master brach/docs folder` \n4. 访问 `https://你的GitHub用户名.github.io/fq-book` 即可看到效果\n\n\u003cdetails\u003e\u003csummary\u003e这里以 anhoodie 为示例 click me! \u003c/summary\u003e\n\n![](https://user-images.githubusercontent.com/35732922/59164863-80b72000-8b45-11e9-8807-849ba56056f4.png)\n\n![](https://user-images.githubusercontent.com/35732922/59164963-e061fb00-8b46-11e9-9647-c827fa784e38.png)\n\n\u003c/details\u003e\n\n\u003c!--\u003cdetails\u003e\u003csummary\u003e click me! \u003c/summary\u003e\u003c/details\u003e--\u003e\n\n预览\n\n![Snipaste_2019-06-10_06-18-56](https://user-images.githubusercontent.com/35732922/59165031-d7255e00-8b47-11e9-8a5b-829b61afeb24.png)\n\n\n### 本地部署\n\n \n所需环境：[git](https://git-scm.com/)、[node](https://nodejs.org/zh-cn)；安装很简单一直 `下一步` 直到完成安装即可。\n\n* 右击选择`git bash`在命令行中输入 `npm i docsify-cli -g`\n* 点击`clone or download`下载`.zip` 并解压缩\n* 进入到`fq-book-master/docs`目录\n* 右击打开`git bash`输入`docsify init .`\n* 使用`docsify serve`完成本地部署\n* 在浏览器中输入`localhost:3000`即可看到效果 :joy: \n\n关于更多详细，请看[docsify官网文档](https://docsify.js.org/)\n\n使用[Offline Explorer](https://www.52pojie.cn/thread-790037-1-1.html)可将《这本书》的整个网页内容下载到本地，进行离线观看\n\n当然，也可选择将该书docsify类型转换为gitbook生成格式，并用其自带的命令制作《这本书》的PDF\n\n\u003c!--\n也可使用[wkhtmltopdf](https://github.com/wkhtmltopdf/wkhtmltopdf)  以及结合[tools.pdf24.org](https://tools.pdf24.org/zh/webpage-to-pdf)制作《这本书》的PDF\n--\u003e\n\n### 获取更新\n\n以01user为例，在本地部署时，旧版图链已经失效了，新版已经采用 postimage 支持；此时就需升级成 《这本书Ⅱ》,获取更新其实非常简单，在fork的基础上，执行以下指令\n\n```\ngit clone https://github.com/你的github用户名/fq-book.git\ncd fq-book\ngit remote add upstream https://github.com/hoochanlon/fq-book.git\n# 若需必要的分支变更，还是使用合适： git fetch --all\ngit fetch upstream\n# 对Git有所了解的话，建议还是使用：`git pull upstream master --allow-unrelated-histories` 以审查代码的形式更新\ngit reset --hard upstream/master\n\n```\n提交到自己的repo\n\n```\ngit add .\ngit commit -m \"test\"\n# 此指令只方便newbie或不得已的强制；会些Git还是推荐：git push -u --force-with-lease origin master\ngit push -u -f origin master  \n```\n\n输入账号\u0026密码即可上传到自己repo完成Github账户仓库远程更新。**更多作业指令操作说明，请看[Git 官方文档](https://git-scm.com/book/zh/v2)**，在特殊情况，有可能需要涉及到代理、镜像、浅克隆设置\n\n\u003cdetails\u003e\u003csummary\u003e更新图示 click me! \u003c/summary\u003e\n\n![](https://i.postimg.cc/YSY78GPL/Snipaste-2019-06-12-15-59-16.png)\n\n![](https://i.postimg.cc/pTrZRztp/Snipaste-2019-06-12-16-40-01.png)\n\n部署测试\n\n![](https://i.postimg.cc/dV1tRjrW/Snipaste-2019-06-12-16-42-04.png)\n\n提交到repo\n\n![](https://i.postimg.cc/tRkjrVX8/Snipaste-2019-06-12-16-43-37.png)\n\n\u003c/details\u003e\n\n### 代理设置\n\n#### git代理\n\ngit客户端代理设置，以及取消代理\n\n```\ngit config --global http.proxy 'socks5://127.0.0.1:1080' \u0026\u0026 \\\ngit config --global https.proxy 'socks5://127.0.0.1:1080'\n\ngit config --global --unset https.proxy\ngit config --global --unset http.proxy\n```\n\ngit clone 默认会下载项目的完整历史版本，若只关心最新的代码，而不关心之前的历史，网速差的朋友可以使用浅复制功能：\n\n```\ngit clone --depth=1  https://github.com/你的用户名/你的repo.git\n```\n\n#### Mac终端\n\nMac终端的代理设置（http\u0026https）以及取消代理\n\n```\nexport ALL_PROXY=socks5://127.0.0.1:1080\n\nunset ALL_PROXY\"\n```\n\n代理软件即便是开全局模式，终端也不会走代理的，需另设。此外，Mac终端设置了代理git是可以不用在设置了。这个可用 `curl cip.cc` 来判断软件是否走了代理通道\n\n#### ssh\n\n```\n## github ssh 配置\n### https://help.github.com/articles/using-ssh-over-the-https-port/\n\n## HTTP 代理\nProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8848\n\n## socks5 代理\n ProxyCommand nc -v -x 127.0.0.1:1080 %h %p\n```\n\n更多代理设置见：[SunSeekerX's Notebook-代理设置大全](https://doc.yoouu.cn/basic/proxy.html)，相关问题见：[v2ex-为什么全局代理后，CMD依然Ping不通Google？](https://www.v2ex.com/t/877527) （2024.1.12）\n\n## ***essays***\n\n设置HOSTS、DNS的软件，推荐：[SwitchHosts](https://github.com/oldj/SwitchHosts)(导入GitHub hosts可参考[ineo6/hosts](https://github.com/ineo6/hosts))、[DNSCrypt](https://github.com/DNSCrypt/dnscrypt-proxy) ，我觉得不管代理、vpn怎么变(技术迭代，换来换去)，反正这两个设置软件总是要的。VPN、proxy软件又出来个新玩意什么，[clashios](https://clashios.com/about-me/)提及到的软件也是可以参考的咯。\n\n下载组件方面，一些喜欢折腾环境配置的人也自然总结了一些经验写着项目里，例如：[homebrew-install](https://github.com/ineo6/homebrew-install)、[Thanks-Mirror](https://github.com/eryajf/Thanks-Mirror)、[package-manager-proxy-settings](https://github.com/comwrg/package-manager-proxy-settings)。\n\n[SteamTools](https://github.com/BeyondDimension/SteamTools)游戏加速器，满足steam基本的社区商店、社区消息浏览，还行吧，毕竟是免费的。[dogfight360](https://www.dogfight360.com/blog/475/#comment-25207)写的UsbEAm Hosts Editor在进入游戏anti-cheat（反外挂插件）加速上也还好。以及apex英雄（iOS/iPadOS版）虽然锁区，但挂个小火箭，其实也能玩。\n\n\n## ***mind you*** \n\n本书允许演绎及共享但禁止商用，科学上网仅为研究需要，以下是免责声明：\n\n* 本书面向海外华人用户且仅供科研与学习，切勿用于其他用途\n* 中国居民请自觉关闭本书并24小时内删掉与此相关的所有内容，否则出现一切后果本书作者概不负责\n\n© 2019 [hoochanlon](https://github.com/hoochanlon)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoochanlon%2Ffq-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoochanlon%2Ffq-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoochanlon%2Ffq-book/lists"}