./brook relay -l :22222 -r 223.5.5.5:53

以上代码可以将发往本机22222端口的所有流量转发到223.5.5.5的53端口。
安装:

mkdir /usr/local/brook
cd /usr/local/brook
wget https://github.com/txthinking/brook/releases/download/v20180601/brook
chmod +x ./brook