opkg update
 opkg install tor
 opkg install obfs4proxy
 tor -f /etc/tor/torrc
 # Read configuration file "/etc/tor/torrc"
 
# 查看默认配置文件
cat /etc/tor/torrc
# 配置文件参考
#SocksPort 0.0.0.0:9050

#HTTPSProxy 127.0.0.1:8787
#Socks5Proxy 127.0.0.1:1080

UseBridges 1
#Log notice file ./tor.log
AvoidDiskWrites 1

#StrictNodes 1
#ExcludeExitNodes {cn},{hk},{mo},{sg},{th},{pk},{by},{ru},{ir},{vn},{ph},{my},{cu}
#ExcludeNodes {cn},{hk},{mo},{sg},{th},{pk},{by},{ru},{ir},{vn},{ph},{my},{cu}

ClientTransportPlugin obfs4 exec ./obfs4proxy managed
#下面是apt安装路径
#ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed

# 替换ip与端口 / 添加更多 Bridges
Bridge ?.?.?.?:41563 8975AAF1????820FF516

Bridge obfs4 ?.?.?.?:41563 8975AAF1????820FF516 cert=??? iatmode=0

NewCircuitPeriod 900

check if it works:

curl ip.gs -x socks5://192.168.1.1:9050

Get Bridges: https://bridges.torproject.org/bridges?transport=obfs4

References:https://111111.online/posts/tor_obfs4_proxy.html

https://111111.online/posts/tor_bridges_proxy.html

https://gitlab.torproject.org/legacy/trac/-/wikis/doc/OpenWRT