国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| #!/usr/sbin/nft -f | |
| # see also: | |
| # https://wiki.nftables.org/wiki-nftables/index.php/Netfilter_hooks | |
| # https://docs.kernel.org/networking/tproxy.html | |
| # https://powerdns.org/tproxydoc/tproxy.md.html | |
| # http://git.netfilter.org/nftables/commit/?id=2be1d52644cf77bb2634fb504a265da480c5e901 | |
| # http://wiki.squid-cache.org/Features/Tproxy4 | |
| # https://serverfault.com/questions/1052717/how-to-translate-ip-route-add-local-0-0-0-0-0-dev-lo-table-100-to-systemd-netw | |
| # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/net/netfilter/nft_tproxy.c |
| ######### 锚点 start ####### | |
| # proxy 相关 | |
| pr: &pr {type: select, proxies: [🎁默认,🇭🇰香港,🇹🇼台湾,🇯🇵日本,🇸🇬新加坡,🇺🇸美国,🎻其它地区,🌐全部节点,🛩️自动选择,DIRECT]} | |
| #这里是订阅更新和延迟测试相关的 | |
| p: &p {type: http, interval: 3600, health-check: {enable: true, url: https://www.gstatic.com/generate_204, interval: 300}} | |
| ######### 锚点 end ####### | |
| b: &b {type: load-balance, include-all-providers: true, url: http://www.gstatic.com/generate_204, interval: 300, strategy: consistent-hashing, lazy: true} |
| { | |
| "log": { | |
| "level": "info", | |
| "output": "sing-box.log", | |
| "timestamp": true | |
| }, | |
| "dns": { | |
| "servers": [ | |
| { | |
| "tag": "cloudflare", |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| # mihomo (Clash Meta) 懒人配置 | |
| # 版本 V1.4.1-231211 | |
| # https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33 | |
| # 作者: 笨蛋ovo (bdovo.cc) | |
| # Telegram: https://t.me/baka_not_baka | |
| # 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel | |
| # 修改自官方示例规则 https://wiki.metacubex.one/example/#meta | |
| # 转载请保留此注释 | |
| # 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解 | |
| # 虚空终端 (Clash Meta) Docs 地址: https://wiki.metacubex.one |
| #! /usr/bin/env bash | |
| PORT=8888 | |
| function get_proxy() { | |
| local p="$1" | |
| if [[ -n "$p" ]] | |
| then | |
| echo "$p" | |
| else |