Linux Note / 探知未来 / 运维笔记

Linksys WRT32X Openwrt 科学上网固件

Einic Yeo · 11月5日 · 2019年 · ·

Current Stable Release – OpenWrt 18.06.4

固件集成

  • 新增USB驱动
  • 高级重启
  • 负载均衡
  • WireGuard
  • ShadowSocksR Plus+ (支持SS/SSR/V2RAY)
  • MWAN3 分流助手

一、版权声明:本文遵循 CC 4.0 BY-SA 版权协议,若要转载请务必附上原文出处链接及本声明,谢谢合作!链路聚合

1、新增WAN口

在交换机配置页,新增 VLAN ID 3,并指定一个LAN 1 为新的WAN(LAN1页面位置标记为“未标记”)

2、WAN 负载均衡

MWAN – 接口
MWAN – 成员
MWAN – 策略
MWAN – 规则

3、配置 WAN2 接口

4、链路聚合验证

负载均衡WAN状态
聚合后的LAN
WAN/WAN2(100M带宽)

二、配置 WireGuard

1、配置 WG 接口

基本设置配置
防火墙新增wg区域
配置Peers

2、配置防火墙

3、WG 负载均衡

MWAN – 接口 版权声明:本文遵循 CC 4.0 BY-SA 版权协议,若要转载请务必附上原文出处链接及本声明,谢谢合作!
MWAN – 成员
MWAN – 策略
启动 MWAN3 分流助手
MWAN – 规则

4、WireGuard 状态

版权声明:本文遵循 CC 4.0 BY-SA 版权协议,若要转载请务必附上原文出处链接及本声明,谢谢合作!
上次握手与数据传输
负载均衡WireGuard状态

三、ShadowSocksR Plus+

配置服务器节点
客户端版权声明:本文遵循 CC 4.0 BY-SA 版权协议,若要转载请务必附上原文出处链接及本声明,谢谢合作!配置
版权声明:本文遵循 CC 4.0 BY-SA 版权协议,若要转载请务必附上原文出处链接及本声明,谢谢合作!
状态检测

四、 验证 USB 驱动

新插入金士顿32GB USB(DT Ultimate G3)

[email protected]:~# fdisk -l
Disk /dev/mtdblock0: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 128 KiB, 131072 bytes, 256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 5.77 MiB, 6029312 bytes, 11776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock4: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock5: 123 MiB, 128974848 bytes, 251904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock6: 120 MiB, 125829120 bytes, 245760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock7: 123 MiB, 128974848 bytes, 251904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock8: 120 MiB, 125829120 bytes, 245760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock9: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/ubiblock0_0: 11.27 MiB, 11808768 bytes, 23064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

### 关注如下:

GPT PMBR size mismatch (102399 != 61472767) will be corrected by write.
Disk /dev/sda: 29.32 GiB, 31474057216 bytes, 61472768 sectors
Disk model: DT Ultimate G3  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B3CAAA25-3CA1-48FA-A5B6-105ADDE4793F

Device     Start    End Sectors Size Type
/dev/sda1   2048  32767   30720  15M EFI System
/dev/sda2  32768  94207   61440  30M Linux filesystem
/dev/sda3  94208 102366    8159   4M BIOS boot
[email protected]:~# 

参考文献

https://openwrt.org/zh-cn/toh/start

https://openwrt.org/toh/linksys/linksys_wrt32x

1 条回应
  1. wix2019-11-5 · 12:32

    thanks