How to use brook on OpenWrt One

Updated at: 2025-04-04

img

中文

Power on OpenWrt One

  1. Power on OpenWrt One

  2. Use an Ethernet cable to connect the computer and the 1G network port of OpenWrt One

  3. If the computer's IP is not in the same network, change it to the same network first

  4. SSH into OpenWrt from the computer

    ssh root@192.168.1.1
    
  5. Modify OpenWrt IP

    uci set network.lan.ipaddr=192.168.2.1
    uci commit
    
  6. Restart or power off and restart

    reboot
    

Access OpenWrt from a computer through a browser

http://192.168.2.1

  1. Remove ULA

    • Network - Interfaces - Global network options - IPv6 ULA-Prefix - Save & Apply
  2. Connect the modem to the 2.5G network port of the router

  3. Because most modems cannot send IPv6 PD, use OpenWrt to dial

    • Network - Interfaces - wan - Edit - General Settings - Protocol: PPPoE - Switch protocol - username/password - Save - Save & Apply
    • If a wan_6 is automatically created at this time, delete the previous wan6. Save & Apply
    • If no IPv6 PD is obtained here. Please contact the ISP and say no to all non-Native solutions such as Relay and NAT6
  4. Configure LAN

    • Network - Interfaces - lan - Edit - Advanced Settings - IPv6 assignment length: 64
    • Network - Interfaces - lan - Edit - DHCP Server - IPv6 RA Settings - RA Flags: None - Save - Save & Apply
  5. Enable Wi-FI

    • Network - Wireless - Edit and enable the channel 36 one

Test the network on the computer

Install brook CLI on the computer

At this time, re-plug the computer's network cable and automatically obtain the IP. You should be able to obtain GUA, and DNS should also be GUA

brook dnsclient -d http3.ooo -t A -s 192.168.2.1:53
brook dnsclient -d http3.ooo -t AAAA -s 192.168.2.1:53
brook dnsclient -d http3.ooo -t A -s [xxx]:53
brook dnsclient -d http3.ooo -t AAAA -s [xxx]:53

xxx is the IPv6 GUA DNS obtained by your computer

brook echoclient -s 137.184.237.95:7777
brook echoclient -s [2604:a880:4:1d0::4cf:b000]:7777

Test the network in OpenWrt

Download brook CLI, rename it to brook and copy it to OpenWrt

brook dnsclient -d http3.ooo -t A -s 127.0.0.1:53
brook dnsclient -d http3.ooo -t AAAA -s 127.0.0.1:53
brook dnsclient -d http3.ooo -t A -s [::1]:53
brook dnsclient -d http3.ooo -t AAAA -s [::1]:53
brook echoclient -s 137.184.237.95:7777
brook echoclient -s [2604:a880:4:1d0::4cf:b000]:7777

You can also test your Brook Server

brook testbrook --link 'brook://...'

If necessary, upgrade OpenWrt

  1. As of this article, the latest version is 24.10.0, download openwrt-24.10.0-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb

  2. Upgrade via OpenWrt web

    • System - Backup / Flash Firmware - Flash images

Install dependencies

opkg update
opkg install ca-bundle kmod-nf-socket kmod-nft-socket kmod-nf-tproxy kmod-nft-tproxy procps-ng-ps

Run brook.openwrt

Download brook.openwrt CLI renamed to brook.openwrt and copied to OpenWrt

brook.openwrt --link 'brook://...'

Test the network on your computer

Take a look at the two DNSs assigned to your computer, one IPv4, one IPv6

brook dnsclient -d http3.ooo -t A -s 192.168.2.1:53
brook dnsclient -d http3.ooo -t AAAA -s 192.168.2.1:53
brook dnsclient -d http3.ooo -t A -s [xxx]:53
brook dnsclient -d http3.ooo -t AAAA -s [xxx]:53

xxx is the IPv6 GUA obtained by your computer DNS

Test IPv4 and IPv6, TCP and UDP, of course your Brook Server should support dual stack

brook echoclient -s 137.184.237.95:7777
brook echoclient -s [2604:a880:4:1d0::4cf:b000]:7777