You may use this script instead of the WebUI to configure Tor. Run this script as-is to start Tor with no devices redirected. Un-comment the commit line if you want the change to stick. You know what to do...
/jffs/scripts/tor-configure.sh
Code:
#!/bin/sh
Tor_enable=1
Tor_redir_list="<" # No devices
#Tor_redir_list=".25-30 aa:bb:cc:dd:ee:ff .104 .114 .124" # Only specified devices
#Tor_redir_list="" # LAN(br0)
Tor_socksport=9050
Tor_dnsport=9053
Tor_transport=9040
IPADDR="$(/usr/sbin/nvram get lan_ipaddr)"
NETWORK="${IPADDR%.*}"
[ "${Tor_redir_list:0:1}" != " " ] && Tor_redir_list=" $Tor_redir_list"
Tor_redir_list=$(/bin/echo ${Tor_redir_list// ./ ${NETWORK}.})
Tor_redir_list="${Tor_redir_list// /<}"
/usr/sbin/nvram set Tor_redir_list="$Tor_redir_list"
/usr/sbin/nvram set Tor_socksport="$Tor_socksport"
/usr/sbin/nvram set Tor_dnsport="$Tor_dnsport"
/usr/sbin/nvram set Tor_transport="$Tor_transport"
/usr/sbin/nvram set Tor_enable="$Tor_enable"
#/usr/sbin/nvram commit
/sbin/service restart_tor
Tor_enable=1
Tor_redir_list="00:0C:XX"
Tor_socksport=9050
Tor_dnsport=9053
Tor_transport=9040
IPADDR="$(nvram get lan_ipaddr)"
NETWORK="${IPADDR%.*}"
[ "${Tor_redir_list:0:1}" != " " ] && Tor_redir_list=" $Tor_redir_list"
Tor_redir_list=$(echo ${Tor_redir_list// ./ ${NETWORK}.})
Tor_redir_list="${Tor_redir_list// /<}"
nvram set Tor_redir_list="$Tor_redir_list"
nvram set Tor_socksport="$Tor_socksport"
nvram set Tor_dnsport="$Tor_dnsport"
nvram set Tor_transport="$Tor_transport"
nvram set Tor_enable="$Tor_enable"
#nvram set "Tor_redir_list=<[mac1]<[mac2]"
service restart_tor
it it work well,thank you very much
the new problem is that the router will issue the new MAC to the iphone mobile when the SSID changed.
Can you show us the code by using NETWORK to get the MAC?
so the router will work better by MAC or by Network.