Tor

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

pbix
Developer
Posts: 1365
Joined: Fri Aug 21, 2009 5:09 pm

Re: Tor

Postby pbix » Sat Dec 03, 2011 5:20 pm

Yesterday I did a make FULL_BUILD=1 and loaded the resulting image on my Buffalo wzr-hp300nh. Then I restored my settings and went looking for the tor functionality when I did not see the promised controls on the login screen.

Found the tor web page and found tor set to "Enabled, Toggled by each host". Tried to set it to disabled but the "Please wait while settings are applied" dialog came up and never went away. Refreshed and found no change to the settings. Tried just pressing "Save changes' with the same result.

Then I opened up a command shell, cd /etc/init.d and ran "./tor restart". The below was output.

Code: Select all


root@Gargoyle:/etc/init.d# ./tor restart
uci: Entry not found
Dec 03 16:08:48.433 [notice] Tor v0.2.2.34 (git-c4eae752f0d157ce). This is experimental software. Do not rely on it for strong anonymity. (Running on Linux mips)
Dec 03 16:08:48.505 [warn] ControlPort is open, but no authentication method has been configured.  This means that any program on your computer can reconfigure your Tor.  That's bad!  You should upgrade your Tor controller as soon as possible.
Dec 03 16:08:48.511 [notice] Initialized libevent version 2.0.15-stable using method epoll. Good.
Dec 03 16:08:48.511 [notice] Opening Transparent pf/netfilter listener on 192.168.2.1:9040
Dec 03 16:08:48.512 [notice] Opening DNS listener on 192.168.2.1:9053
Dec 03 16:08:48.512 [notice] Opening Control listener on 127.0.0.1:9051
iptables v1.4.6: option `--to-ports' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: option `--to-ports' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
root@Gargoyle:/etc/init.d# cat tor.sh
cat: can't open 'tor.sh': No such file or directory
root@Gargoyle:/etc/init.d# cat ./tor.sh
cat: can't open './tor.sh': No such file or directory


it seems that the script is looking for variables that may not be there after a restore. I would think that unless this is explicitly enabled it should be disabled by default.
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

ispyisail
Moderator
Posts: 4603
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Tor

Postby ispyisail » Sun Dec 04, 2011 1:31 am

Just installed on my ubnt RSPro and it show up and works

ispyisail
Moderator
Posts: 4603
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Tor

Postby ispyisail » Sun Dec 04, 2011 1:38 am

I've found a bug with Tor and the GUI on my RSpro

I you enable Tor it works. If you then decide to toggle "Protocols not used by Tor:" (doesn't matter which direction) say "Ignore" to "Block" Tor will fail. (I was clicking "save" after the toggle)

mates
Posts: 128
Joined: Mon Nov 14, 2011 7:53 am

Re: Tor

Postby mates » Mon Dec 05, 2011 5:25 pm

I cant see Tor on login screen

also I have problem when I change Enabled, Toggled By Each Host to Enabled For all Host and when I press Save change than message Please wait stays for long time and nothings happen.

It is problem that I used configuration from 1.5.0 to 1.5.1?

ispyisail
Moderator
Posts: 4603
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Tor

Postby ispyisail » Mon Dec 05, 2011 6:17 pm


mates
Posts: 128
Joined: Mon Nov 14, 2011 7:53 am

Re: Tor

Postby mates » Tue Dec 06, 2011 1:37 am

ispyisail wrote:should be fixed in 1.5.1

http://www.gargoyle-router.com/wiki/doku.php?id=tor


maybe i dont understand you but I actualy have 1.5.1

ispyisail
Moderator
Posts: 4603
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Tor

Postby ispyisail » Tue Dec 06, 2011 4:43 am


pbix
Developer
Posts: 1365
Joined: Fri Aug 21, 2009 5:09 pm

Re: Tor

Postby pbix » Tue Dec 06, 2011 8:09 am

Sounds like mates has the same issue I had and reported above.

SSH into your router and run /etc/init.d/tor restart for the command line and see the errors.

Tor seems to need a little more work.
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Eric
Site Admin
Posts: 1436
Joined: Sat Jun 14, 2008 1:14 pm

Re: Tor

Postby Eric » Tue Dec 06, 2011 11:29 am

I actually don't think this is a problem with Tor, but rather the backup restore system. I think the Tor config file is getting erased when performing the restoration from backup, and this is leading to this strange behavior.

mates
Posts: 128
Joined: Mon Nov 14, 2011 7:53 am

Re: Tor

Postby mates » Tue Dec 06, 2011 12:08 pm

ispyisail wrote:http://www.gargoyle-router.com/wiki/doku.php?id=tor

Are you using a supported router?

Using netgear WNDR 3700v2

Eric wrote:I actually don't think this is a problem with Tor, but rather the backup restore system. I think the Tor config file is getting erased when performing the restoration from backup, and this is leading to this strange behavior.


I will try later today to reset settings and make settings manualy (without using restore). I will inform you later today or tommorow from work.


Return to “Show / Tell / Contribute”

Who is online

Users browsing this forum: No registered users and 2 guests