OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Neil Waldhauer on April 01, 2014, 08:58:20 pm

Title: How to make Tor work on eCS
Post by: Neil Waldhauer on April 01, 2014, 08:58:20 pm
Tor is a program to facilitate anonymous web browsing. Paul Smedley ported it, but there aren't instructions on how to make Tor work on eCS.


http://os2ports.smedley.id.au/index.php?page=tor (http://os2ports.smedley.id.au/index.php?page=tor)

There are two applications of Tor. The first is just to get Tor to work with Firefox and use the existing Tor network.

The second is to run a Tor server as a part of the Tor network to let others browse anonymously.

I don't know which of these applications have been ported, or even, as I suspect that both functions are part of the Tor executable.

I have no idea how to begin doing either of these applications. Any Tor users out there care to comment?
Title: Re: How to make Tor work on eCS
Post by: Martin Iturbide on April 02, 2014, 12:08:23 am
Hi Neil.

Run tor.exe and wait until it gets to 100%, I think it is connecting to the network.

Open Firefox and on Settings,  Advanced put your localhost as a socks server and port 9050.

Try: http://whatismyipaddress.com/
And check your up address.

Google does not work fine when you use this socks thing.

I'm not sure if that is a way to use it, but that is the way that website see you with another IP.  Other comments are welcome.

Title: Re: How to make Tor work on eCS
Post by: Neil Waldhauer on May 14, 2014, 04:26:22 am
I installed Tor, and configured Firefox, and I found it to work. As you mention, google will no longer search.

I also installed Vidalia, which is a control panel for tor. I changed my setup to put Vidalia in the startup folder instead of tor. Now I have a nice control panel for tor.
Title: Re: How to make Tor work on eCS
Post by: Pete on May 15, 2014, 03:39:36 am
Hi All

Just started experimenting with Seamonkey and tor - Seamonkey requires the proxy changes in Edit, Preferences, Advanced, Proxies.

Seems to be working as sites like http://www.myipnumber.com/my-ip-address.asp get my ip address wrong  :-)

However, I now find that I cannot access my Virgin SuperHub configuration and see this instead:-

Failed to Connect       
       
          The connection was refused when attempting to contact 192.168.0.1.

Looks like tor works too well. Guess I need to look into setting up a tor configuration file to allow me access to my router/cable modem configuration. All help welcome.

I thought I'd give vidalia a try as it looks like a neat frontend to tor but it is unable to start tor. Looking at the message log I see this:-

May 15 02:00:13.441 [Notice] Tor v0.2.4.20 (git-3cb5c70beec5bf46) running on OS/2 with Libevent 2.0.21-stable and OpenSSL 1.0.0g.
May 15 02:00:13.441 [Notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 15 02:00:13.441 [Warning] Unable to open configuration file "J:/PROGRAMS/TOR/VIDALIA/I:\USERS\PETER\HOME\.vidalia\torrc".
May 15 02:00:13.441 [Error] Reading config failed--see warnings above.


Looks like there is a problem with vidalia as it seems to be appending the configuration file drive:\path\filename to the drive:\path that vidalia is installed in and then passing the resulting mess to tor which then bitches that it cannot open(find) the configuration file.

I've created a bug report http://trac.netlabs.org/qtapps/ticket/82#ticket


Regards

Pete


Title: Re: How to make Tor work on eCS
Post by: Dave Yeo on May 15, 2014, 05:29:13 am

However, I now find that I cannot access my Virgin SuperHub configuration and see this instead:-

Failed to Connect       
       
          The connection was refused when attempting to contact 192.168.0.1.

Looks like tor works too well. Guess I need to look into setting up a tor configuration file to allow me access to my router/cable modem configuration. All help welcome.


Just go to SeaMonkeys proxy preferences and add localhost, 127.0..1, 192.168.0.1 etc to the No Proxy for box. See the example right under the box
Dave
Title: Re: How to make Tor work on eCS
Post by: Pete on May 15, 2014, 09:00:25 pm
Hi Dave

Thanks, that worked fine.

The Vidalia problem was *not* a Vidalia problem. The problem was in Tor v0.2.4.20 and is resolved in Tor v0.2.4.21

Anyone looking for Tor documentation should probably start here https://www.torproject.org/docs/documentation.html.en
Obviously nothing specific to eCS (OS/2)...


Regards

Pete
Title: Re: How to make Tor work on eCS
Post by: Boris on May 17, 2014, 09:43:20 am
FoxyProxy (https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/).
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on November 08, 2014, 09:26:04 am
updated tor version for testing:
https://dl.dropboxusercontent.com/u/76425158/tor-0.2.5.10-os2-20141108.zip

Note, only minimally tested locally
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 12, 2016, 11:55:36 am
updated tor version for testing:
https://dl.dropboxusercontent.com/u/76425158/tor-0.2.5.10-os2-20141108.zip

Note, only minimally tested locally

Updated build 0.2.8.7 - requires latest libcx0.dll from rpm/yum - hopefully http://rpm.netlabs.org/release/00/zip/libcx-0_2_1-1_oc00.zip should work, but might need http://rpm.netlabs.org/test/tlx4.zip

http://smedley.id.au/tmp/tor-0.2.8.7-os2-20160912.zip

Cheers,

Paul
Title: Re: How to make Tor work on eCS
Post by: Pete on September 24, 2016, 07:10:59 pm
Hi Paul

Seems to work as well as previous versions; still has the "[Error] libevent call with select failed: Bad address" problem though  :-(


Regards

Pete
Title: Re: How to make Tor work on eCS
Post by: Dave Yeo on September 25, 2016, 02:29:21 am
Paul, perhaps this would help, https://github.com/bitwiseworks/mozilla-os2/blob/master/ipc/chromium/src/third_party/libevent/select.c (https://github.com/bitwiseworks/mozilla-os2/blob/master/ipc/chromium/src/third_party/libevent/select.c) and of course above this is other fixes that dmik did.
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 25, 2016, 11:33:32 am
Hi Dave,

Paul, perhaps this would help, https://github.com/bitwiseworks/mozilla-os2/blob/master/ipc/chromium/src/third_party/libevent/select.c (https://github.com/bitwiseworks/mozilla-os2/blob/master/ipc/chromium/src/third_party/libevent/select.c) and of course above this is other fixes that dmik did.

Thanks, but I shoplifted these fixes a while ago. I'd also hoped that the select() changes in libcx would help, but unfortunately not.

Cheers,

Paul
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 16, 2018, 11:45:21 am
Updated tor build at http://smedley.id.au/tmp/tor-0.3.4.8-os2-20180916.zip

Not tested, so feedback appreciated :)
Title: Re: How to make Tor work on eCS
Post by: David McKenna on September 16, 2018, 03:40:18 pm
 Thanks again! It seems to work as well as the last one, but there is a new warning in the message log:

Warning: Cannot get strong entropy: no entropy source found.

 Is it looking for some kind of randomizer?

 Since Firefox 24, I have not been able to connect to HTTPS website URL's using Tor. I presume that is a defect in our Firefox, but was wondering if anyone else has seen this or even found a way around it...
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 17, 2018, 09:27:24 am
Hi Dave,

Thanks again! It seems to work as well as the last one, but there is a new warning in the message log:

Warning: Cannot get strong entropy: no entropy source found.

 Is it looking for some kind of randomizer?

 Since Firefox 24, I have not been able to connect to HTTPS website URL's using Tor. I presume that is a defect in our Firefox, but was wondering if anyone else has seen this or even found a way around it...

OK the entropy bug is caused by a failed patch yesterday, which one too many beers made me thing wasn't important :)

Turns out it was!! Try http://smedley.id.au/tmp/tor-0.3.4.8-os2-20180917.zip for the fix.

Meanwhile, I'll see if I can test https sites with firefox/2 locally

Cheers,

Paul
Title: Re: How to make Tor work on eCS
Post by: Remy on September 17, 2018, 10:50:18 am
Hi Paul,

The older one could start but no socket connection while this one doesn't start here despite having a torrc file presnt:
Sep 17 10:48:44.829 [notice] Configuration file "/tor/etc/tor/torrc" not present
, using reasonable defaults.
A non-recoverable error occurred.  The process ended.

Cheers
Remy
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 17, 2018, 11:19:25 am
Hi Paul,

The older one could start but no socket connection while this one doesn't start here despite having a torrc file presnt:
Sep 17 10:48:44.829 [notice] Configuration file "/tor/etc/tor/torrc" not present
, using reasonable defaults.
A non-recoverable error occurred.  The process ended.

I'll take a punt that libcx needs updating - 0.6.3 was released recently. Sorry, I should have mentioned this.

Cheers,

Paul
Title: Re: How to make Tor work on eCS
Post by: Remy on September 17, 2018, 07:00:24 pm
No libcx 0.6.3 available under APM  (official ones)
Title: Re: How to make Tor work on eCS
Post by: TeLLie on September 17, 2018, 07:45:58 pm
Hello Remy,

It's under the experimental
Title: Re: How to make Tor work on eCS
Post by: Pete on September 17, 2018, 08:35:33 pm
Hi

I bumped into the same problem as Remy with the 20180916 release and updated libc to 0.6.6-38 and libcx to 0.6.3-1 which resolved the problem.

Seems to be the best tor port to date as I only hit the "[Error] libevent call with select failed: Bad address" failure once in around an hours use - previous releases have been unusable as the problem cropped up every few minutes.

Now to try the 20180917 release to get rid of the log entry "Warning: Cannot get strong entropy: no entropy source found."


Regards

Pete
Title: Re: How to make Tor work on eCS
Post by: Remy on September 17, 2018, 11:33:49 pm
Hello Remy,

It's under the experimental

Then I have to wait until it is official.
No expérimental with ArcaOS on a unique system which is production system.

Any idea if it will be made available as official ?
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 18, 2018, 05:08:39 am
Hi Pete,

I bumped into the same problem as Remy with the 20180916 release and updated libc to 0.6.6-38 and libcx to 0.6.3-1 which resolved the problem.

Seems to be the best tor port to date as I only hit the "[Error] libevent call with select failed: Bad address" failure once in around an hours use - previous releases have been unusable as the problem cropped up every few minutes.

Now to try the 20180917 release to get rid of the log entry "Warning: Cannot get strong entropy: no entropy source found."

With respect to the "[Error] libevent call with select failed: Bad address" message - did tor close, or just log the error and keep running? I had thought I had added workaround code to prevent the app closing.

Thanks,

Paul
Title: Re: How to make Tor work on eCS
Post by: Dave Yeo on September 18, 2018, 05:56:31 am
There's also a port of libevent here, https://github.com/bitwiseworks/mozilla-os2/tree/esr45/ipc/chromium/src/third_party/libevent (https://github.com/bitwiseworks/mozilla-os2/tree/esr45/ipc/chromium/src/third_party/libevent).
Title: Re: How to make Tor work on eCS
Post by: Pete on September 18, 2018, 04:57:54 pm
Hi Paul

When the "[Error] libevent..." happens tor stops running.


Regards

Pete
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 19, 2018, 11:27:28 am
Hey Pete,

When the "[Error] libevent..." happens tor stops running.

Just confirming - this failure is still occurring with 0.3.4.8? I don't understand how given the patch I made - can you post me a full log to my email?

Cheers,

Paul
Title: Re: How to make Tor work on eCS
Post by: Paul Smedley on September 20, 2018, 11:45:54 am
Attempt to fix the select() fix is in http://smedley.id.au/tmp/tor-0.3.4.8-os2-20180920.zip