Not working TOR client mode "Hidden Service Access Only"
When selecting mode "Hidden Service Access Only" DNS for websites * .onion not working.
If you select operating mode "Enabled For All Hosts" then DNS is working correctly.
What needs to be fixed to properly use the TOR mode "Hidden Service Access Only"?
Router: TP-Link TL-WDR4300, Gargoyle 1.7.2
Network config:
WAN IP Address:10.7.19.107
WAN Netmask:255.255.0.0
WAN Gateway IP:10.7.19.1
WAN DNS Server(s):10.7.19.1
LAN IP Address:192.168.1.1
LAN Netmask:255.255.255.0
Not working TOR client mode "Hidden Service Access Only"
Moderator: Moderators
Not working TOR client mode "Hidden Service Access Only"
Last edited by Spine on Wed Jul 29, 2015 5:28 pm, edited 1 time in total.
WDR-4300, WR-740n
Experience increases in proportion to the number of broken equipment.
Experience increases in proportion to the number of broken equipment.
Re: Not working TOR client mode "Hidden Service Access Only"
I can confirm this behaviour on TL-WDR3600 : Gargoyle 1.7.2
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
[solved] TOR client mode "Hidden Service Access Only"
Problem solved.
The reason is that revision of 45423 completely removed support layer7 filter. https://dev.openwrt.org/changeset/45423
File tor.firewall use this feature.
To fix this, you want to change two lines in the file /etc/tor.firewall
find
replaced by
I do not know exist TOR site names in upper-case or not.
If there are names like * .ONION or * .OnIoN you'll have to use the more common pattern in which DNS queries for myonionsite.com the same will be forwarded to the TOR.
more common pattern
The reason is that revision of 45423 completely removed support layer7 filter. https://dev.openwrt.org/changeset/45423
File tor.firewall use this feature.
To fix this, you want to change two lines in the file /etc/tor.firewall
find
Code: Select all
iptables -t nat -A tor_client -p udp --dport 53 -m layer7 --l7proto oniondns -j REDIRECT --to-ports $dns_port
iptables -t nat -A tor_client -p tcp --dport 53 -m layer7 --l7proto oniondns -j REDIRECT --to-ports $dns_port
Code: Select all
iptables -t nat -A tor_client -p tcp --dport 53 -m string --hex-string '|056f6e696f6e00|' --algo bm -j REDIRECT --to-ports $dns_port
iptables -t nat -A tor_client -p udp --dport 53 -m string --hex-string '|056f6e696f6e00|' --algo bm -j REDIRECT --to-ports $dns_port
If there are names like * .ONION or * .OnIoN you'll have to use the more common pattern in which DNS queries for myonionsite.com the same will be forwarded to the TOR.
more common pattern
Code: Select all
iptables -t nat -A tor_client -p tcp --dport 53 -m string --icase --string "onion" --algo bm -j REDIRECT --to-ports $dns_port
iptables -t nat -A tor_client -p udp --dport 53 -m string --icase --string "onion" --algo bm -j REDIRECT --to-ports $dns_port
WDR-4300, WR-740n
Experience increases in proportion to the number of broken equipment.
Experience increases in proportion to the number of broken equipment.
Re: [solved] TOR client mode "Hidden Service Access Only"
Thanks @ spine - well done.Spine wrote:Problem solved.
The reason is that revision of 45423 completely removed support layer7 filter. https://dev.openwrt.org/changeset/45423
File tor.firewall use this feature.
To fix this, you want to change two lines in the file /etc/tor. find .....
This also means that the Layer 7 filtering options in QOS can now be removed from the Gargoyle GUI - as the Gargoyle doco preemts ...
http://www.gargoyle-router.com/wiki/doku.php?id=qos under the heading L7 Pattern Matching
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E