https://www.txthinking.com
Created at: 06 Apr 2022
Updated at: 06 Apr 2022
cloud@txthinking.com
https://github.com/txthinking/brook
Only Windows 10 Pro or Enterprise, version 1803 (“April 2018 Update”) or later
Version >= 1.9.0
.exe
file, https://github.com/canonical/multipass/releasesGet network list
multipass networks
Output like this
Name Type Description
Default Switch switch Virtual Switch with internal networking
WLAN wifi Broadcom 802.11ac Network Adapter
以太网 ethernet Broadcom NetXtreme Gigabit Ethernet
Choose the Ethernet name,here is 以太网
, Of course your windows needs to be connected to the network cable, the wireless network card may not work well
Set bridged network
Open a CMD terminal as administrator
multipass set local.bridged-network="以太网"
Close the CMD terminal opened as an administrator, continue to use the CMD terminal of ordinary users
Set name mybrook
multipass launch --name mybrook --bridged
https://github.com/txthinking/brook/releases/latest/download/brook_linux_amd64
https://github.com/txthinking/joker/releases/latest/download/joker_linux_amd64
Copy brook_linux_amd64 and joker_linux_amd64 to mybrook
: /tmp/
multipass transfer brook_linux_amd64 mybrook:/tmp/brook
multipass transfer joker_linux_amd64 mybrook:/tmp/joker
mybrook
multipass shell mybrook
Change to root
sudo su
copy joker and brook command
mv /tmp/joker /usr/bin/joker
chmod +x /usr/bin/joker
mv /tmp/brook /usr/bin/brook
chmod +x /usr/bin/brook
Stop systemd-resolved occupying port 53
systemctl stop systemd-resolved
systemctl disable systemd-resolved
echo nameserver 8.8.8.8 > /etc/resolv.conf
Start brook tproxy, more parameters and rules --help
joker brook tproxy --link 'brook://...' --dnsListen :53
Check if the startup is successful
joker list
If not running, take a look at the error log
joker log `joker last`
exit root user
exit
exit mybrook
exit
multipass info mybrook
The IP on the same network segment as your host is the gateway created
Set the gateway and DNS of other devices to this IP.