惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
Cloudbric
Cloudbric
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
IT之家
IT之家
F
Full Disclosure
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
B
Blog
H
Help Net Security
The Cloudflare Blog
Recorded Future
Recorded Future
P
Proofpoint News Feed
P
Proofpoint News Feed
C
Cisco Blogs
T
Tailwind CSS Blog
P
Palo Alto Networks Blog
D
Docker
爱范儿
爱范儿
Know Your Adversary
Know Your Adversary
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Y
Y Combinator Blog
雷峰网
雷峰网
AWS News Blog
AWS News Blog
D
DataBreaches.Net
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
Blog — PlanetScale
Blog — PlanetScale
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
C
CERT Recently Published Vulnerability Notes
阮一峰的网络日志
阮一峰的网络日志
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Cyber Attacks, Cyber Crime and Cyber Security
腾讯CDC
小众软件
小众软件
G
Google Developers Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
O
OpenAI News

Razeen`s Blog

Let's Encrypt 推出 Gen Y 根证书架构:揭示 Web PKI 的五大未来趋势 通过 Wi-Fi 自动备份你的 iPhone 到 Nas 管理培训感悟:从技术视角看管理之路 UPS 一拖多:保护你的 NAS 和 Linux 服务器 从影音中心到 AI 助手:我的50款 Homelab 服务清单 从SSL证书有效期将缩短到47天聊开去 部署一个自己的 Running Page 谈谈特斯拉 Model Y 用车一年的感受和费用分析 弃用 Disqus 评论,使用自建 Waline 使用 Prometheus 和 Grafana 搭建你的证书监控面板 服务器迁移记:一次磁盘换板引发的Linux分区与挂载的学习 改善信息来源, 利用 RSS 高效获取资讯 (RSShub + Reeder5 + WeWe RSS) 多种 Docker 镜像拉取解决方案与实践 App分享 | AppCleaner - Mac上的卸载神器 Azure OpenAI API 申请和使用 如何开通 OneKey 虚拟信用卡,并充值消费 如何拥有一个可长期在国内使用的国外手机号码 分享开通 ChatGPT Plus 过程 如何开通 Depay 虚拟信用卡,并充值消费 如何开通欧易Web3钱包, 交易入账 如何5分钟内1块钱注册 ChatGPT 如何注册美区的 Apple ID (2023年/无需科学上网) NAS折腾记(11): NASTool3.0体验和降级 NAS折腾记(10): Docker版本的NASTool配置 NAS折腾记(9): NASTool与微信交互,微信发送消息远程下载电影【多图】 NAS折腾记(8):群晖安装 NASTool 实现影音半自动化【多图】 内网穿透(2):Tailscale 组网实现内网穿透,操作简单,无成本 内网穿透(1):总结了11中内网穿透的方式,总有一种适合你 NAS折腾记(7):从零开始设置(黑)群晖系统 NAS折腾记(6):黑群晖系统安装好后怎么洗白? NAS折腾记(5):群晖硬盘休眠设置与分析 NAS折腾记(4): 20分钟手把手带你完美安装 DS918+ 黑群晖7.1.1 NAS折腾记(3):NAS 装机 NAS折腾记(2):B360-ITX 双M.2 双2.5G网口 6 SATA主版 开箱 NAS折腾记(1):328元的4盘位Nas机箱开箱 Openwrt + Clash 全局科学上网 Newifi3 刷入 OpenWrt 固件 v21.02 利用 Markdown 画一些流程图、时序图、甘特图等 Homelab(8): 搭建自用 Gitlab 与 Docker 仓库 Nginx Tcp 转发保留客户端真实 IP (PROXY Protocol) Homelab (7):IPSec VPN(基于证书认证)客户端设置 Homelab (6): 基于自签发证书的 IPSec VPN 搭建 Homelab (5): DDNS 动态域名解析 Homelab (4): Linux 服务器基础环境准备 Homelab (3): 整体网络与基础硬件介绍 Go学习笔记(十)老项目迁移 go module 大型灾难记录 Github Actions 初体验之自动化部署 Hexo 博客 记一次 Nginx DNS 缓存导致转发问题 Homelab (2): 电信悦me网关修改桥接模式,路由器拨号 Homelab (1):5分钟上手黑群晖 NAS 终极 Bash 脚本指南 Typora 自动上传图片到七牛云 Ubuntu 20.04 LTS 有线网卡驱动安装 折腾 Ubuntu 20.04 LTS 开发环境 Go学习笔记(九) 计时器的生命周期[译] 利用 git hook 规范你的代码与 commit message 规范 git commit message 与自动化版本控制 超详细 vim 配置 (with MacVim) Golang 中的 RESTful API 最佳实践 折腾服务器(开篇) 我的第一台个人服务器 Go学习笔记(八) | 使用 os/exec 执行命令 如何用 Go 调用 Windows API Mac OS 自动根据 WI-FI 名字改变网络位置 关于 Docker 清理 MIME Types 速查表 Go学习笔记(七) | 理解OAuth 2.0并实现一个客户端 我又又又把博客迁移了 Go学习笔记(六) | 使用swaggo自动生成Restful API文档 Go学习笔记(五) | 使用代码片段(snippets)提高编码效率 书单 - 2018 IPFS 初体验,利用 IPFS 托管你的静态网站 记一次 PostgreSQL LIKE 索引优化,联合字段 LIKE 查询优化。 Disqus 添加有趣的 Reactions 的功能 TLS 1.3 详解 (RFC 8446解读) gRPC在Go中的使用(三)gRPC实现TLS加密通信与流模式 gRPC在Go中的使用(二)gRPC实现简单通讯 gRPC在Go中的使用(一)Protocol Buffers语法与相关使用 CentOS 安装 tshark 抓包工具 Go学习笔记(四) | win上使用VSCode搭建Go开发环境 日常 Postgres 数据库点滴记录 简单了解 PKCS 规范 美食篇 | DIY戚风蛋糕(烤箱做蛋糕) Go学习笔记(三) | 怎么写Go基准测试(性能测试) TLS1.3正式更新,为Nginx添加TLS1.3的支持 一次诡异的数据库删除 GitHub Pages自定义域名开启HTTPS 证书透明度是什么?它是怎么工作的? Go学习笔记(二) | 我对 recover 的一点误解 搭建证书透明度(certificate-transparency)日志服务之从入门到放弃 修复远程登陆 Centos 时,出现 UTF-8 Warning HTTPS篇之SSL握手过程详解 Go学习笔记(一) | postgres与golang点点滴滴 AWS 命令行界面(aws-cli)从安装到快速上手 数字证书分类及怎么区分各类数字证书 常用 linux 命令小结(一)文件目录操作 云服务器搭建 hexo 博客,git hooks自动更新 SSH 免密登陆, SSH Config 配置 Golang CGO Mac 交叉编译 Windows 使用 goose 让数据库迁移更加轻松 开始使用Ghost
Newifi3 实现低成本家庭级科学上网
2019-09-01 · via Razeen`s Blog

为了搭建一个家庭智能科学上网的环境,想找个支持Openwrt的路由刷一刷, 观望了一段时间,入手了款矿渣newifi3 d2,虽说有人吐槽信号不好,然而房间小的我并不担心==。

2022/08/13 更新

目前我已经刷入了 OpenWrt, 并且设置了全局代理,用起来真香。 详见 Openwrt + Clash 全局科学上网Newifi3 刷入 OpenWrt 固件 v21.02

2021/12/18 更新

文中的 ShadowSocks 已经能被GFW准确识别了,不能用来科学上网了。但目前还有VMess, Trojan协议等。 我目前用的 Trojan 协议,结合 https://github.com/p4gefau1t/trojan-go 项目,完美使用。 而且最新的老毛子固件也支持 Trojan 了。

配置

CPU: MT7621A 闪存: 32MB 内存: 512MB 传输频段: 2.4G;5G 网口: 全千兆 4xLAN + 1xWAN USB: 3.0x1 价格: 某宝¥85

我买的是刷了Openwrt的,后来觉得Openwrt折腾起来还是需要点时间的,自己又刷了老毛子。

我们SSH上去看看。

$ cat /proc/cpuinfo
system type             : MediaTek MT7621 SoC
processor               : 0
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0000, 0x0003]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0004, 0x0000, 0x0000]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 1
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 2
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 3
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0004, 0x0003, 0x0000]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 1
VCED exceptions         : not available
VCEI exceptions         : not available

CPU架构mips, 可以支持跑Go程序哦,一会试试。

$ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   13.0M     13.0M         0 100% /
/dev/root                13.0M     13.0M         0 100% /
tmpfs                     8.0K         0      8.0K   0% /dev
tmpfs                    20.0M      1.7M     18.3M   8% /etc
tmpfs                     1.0M         0      1.0M   0% /home
tmpfs                     8.0K         0      8.0K   0% /media
tmpfs                     8.0K         0      8.0K   0% /mnt
tmpfs                    40.0M     17.9M     22.1M  45% /tmp
tmpfs                     4.0M    348.0K      3.7M   8% /var
tmpfs                    40.0M     17.9M     22.1M  45% /opt
/dev/sda2               795.0M    438.8M    356.2M  55% /media/AiDisk_a2
/dev/sda1               118.5G     56.1G     62.4G  47% /media/home

这是磁盘情况(/dev/sda1-2 是我的外接硬盘)。

刷不死Breed

由于我的路由器是已经刷了Openwrt了,我就不用再刷了,看了一下网友步骤,不外乎:

  1. 初始化,设密码;

  2. 连LAN口,登陆后台 “http://192.168.99.1” ,访问“http://192.168.99.1/newifi/ifiwen_hss.html”激活SSH;

  3. 下载Breed文件newifi-d2-jail-break.koscp newifi-d2-jail-break.ko root@192.168.99.1:/tmp;

  4. ssh 登陆, cd /tmp && insmod newifi-d2-jail-break.ko;

  5. 系统重启,成功刷入;

  6. 拔掉电源,按住reset后, 插入电源,等几秒,电源灯闪缩,浏览器输入192.168.1.1进入Breed,如下。

在刷之前,我们备份一下。两个都选一下。

然后我们在固件更新这里就可以 刷机/恢复 我们的固件了。

我原来的Openwrt固件在这里-> 【链接:https://share.weiyun.com/5hDGrBl 密码:9u73g3】

这里有newifi3 d2支持的固件帖子新路由三 NEWifi D2 固件集合贴

刷老毛子

下载h大的Padavan固件 原下载地址“http://opt.cn2qq.com/padavan/” ,下载RT-N56UB1-newif3D2-512M_3.4.3.9-099.trx。 我在微云备份了一个【链接:https://share.weiyun.com/5YyHFA2 密码:iiuf29】

进入上面图片中的固件更新,固件选择刚刚下载的估计,上传,进度完成再等几分钟,重启即可。

启动后默认开启了无线网 PDCN_5GPDCN, 密码为1234567890

默认网关地址192.168.123.1, 用户名密码都是admin

登陆后,大概是这样子。

配置ShadowSocks

要配置ShadowSocks,你先要有ShadowSocks服务,可以自己搭建或购买。

我个人是购买的SS服务,毕竟用自己的服务器有被封的概率。我在这里买的,约97RMB一年,基本能满足日常工作生活的需求。

点击ShadowSocks, 就可以配置了,如图是我的配置。

为了达到全局自动代理的效果,我开启了重定向DNS,也就是我所有的DNS都会走dnsmasq, dnsmsq配合chinaDNS自动将国外的站点走翻墙。

GFW -> https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

配置好后,点击应用本页配置,稍等片刻(可以点击右上角log,查看配置进度),就可以轻松科学上网啦。

在路由器上跑golang

这个漏油器有512MB的内存,不跑点什么感觉浪费了。查了一下,go居然可以在上面跑起来。

通过uname -m我们可以看出来,cpu架构为mpis。 我们查到golang支持的如下:

  • amd64 (also known as x86-64)
    • A mature implementation.
  • 386 (x86 or x86-32)
    • Comparable to the amd64 port.
  • arm (ARM)
    • Supports Linux, FreeBSD, NetBSD, OpenBSD and Darwin binaries. Less widely used than the other ports.
  • arm64 (AArch64)
    • Supports Linux and Darwin binaries. New in 1.5 and not as well exercised as other ports.
  • ppc64, ppc64le (64-bit PowerPC big- and little-endian)
    • Supports Linux binaries. New in 1.5 and not as well exercised as other ports.
  • mips, mipsle (32-bit MIPS big- and little-endian)
    • Supports Linux binaries. New in 1.8 and not as well exercised as other ports.
  • mips64, mips64le (64-bit MIPS big- and little-endian)
    • Supports Linux binaries. New in 1.6 and not as well exercised as other ports.
  • s390x (IBM System z)
    • Supports Linux binaries. New in 1.7 and not as well exercised as other ports.

我们写个hello world试一下。

# file openwrt.go

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte("hello world"))
		return
	})

	fmt.Println("start listen")
	http.ListenAndServe(":12345", nil)
}

编译:

$ GOOS=linux GOARCH=mipsle go build openwrt.go 

上传:

$ scp openwrt razeen@192.168.123.1:/tmp
# 输入路由登陆密码,上传成功
# 注意目录。 其他目录可能没有空间

运行:

访问:

$ curl -v http://192.168.123.1:12345/hello 
*   Trying 192.168.123.1...
* TCP_NODELAY set
* Connected to 192.168.123.1 (192.168.123.1) port 12345 (#0)
> GET /hello HTTP/1.1
> Host: 192.168.123.1:12345
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< date: Tue, 01 Oct 2019 16:23:43 GMT
updated: Tue, 01 Oct 2019 16:23:43 GMT
< Content-Length: 11
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host 192.168.123.1 left intact
hello world%  

完美~