Author Topic: I want a Tor Server...  (Read 325 times)

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
I want a Tor Server...
« on: November 26, 2011, 10:45:03 PM »
Does anyone have advice or links to tutorials/etc for making a very secure and very anonymous Tor Server that would  be good enough for most people to run something like a Silkroad styled site on?


From one of my posts on another thread....
Quote
I figure it couldn't be that hard to get a well designed BSD server modified to have all of the needed things for security and anonymity  on it by default for use with Tor, or something else.

I am no where near well read up on this stuff, but I know some of you are and could probably do something pretty awesome with this idea. Some probably already have... it is not that hard to make a .ISO image available and keep everything open source, etc. AFAIK

I remember akcom was saying something in relation to silkroad about how the guy should have had the server jailed, with access to virtual IP interface, along with running the exit node in a virtual machine, and so on.. I'm sure he can along with others think of a ton of ways to improve it for people.

Do you think this would be useful for people? They could just pop in the disc, install it on a server and after setting up some login info and what not they would be good to go and able to run whatever website they wanted.  Preferably drug sales, forums like this, and all that jazz.

This would obviously have the goal of protecting the server admin and not the users - but if they are using tor or probably preferably TAILS 0.8.1 or better... they ought to be smart enough to keep it safe  and not giving away any revealing info.

I'd love to hear input on the server idea!

It also sounds like something would need to be setup with IP tables to

This other stuff might be helpful as well...

 http://www.debian-administration.org/articles/479

http://www.zdnet.com/news/openbsd-the-most-secure-os-around/298564 but maybe Linux based is better. They're all really pretty secure.

Browser-Based Attacks on Tor...
http://web.mit.edu/tabbott/www/papers/tor.pdf


Is Tor even secure enough to operate a server and worry about the legal risks involved?
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

Dr. Tox

  • In Stasis: See You In A Few Years!
  • Subordinate Wasp
  • ***
  • Posts: 145
Re: I want a Tor Server...
« Reply #1 on: November 26, 2011, 11:45:41 PM »
This has been a pet project a few friends & I have been considering. One of our guys here is already on it to some degree. I've got a contracted site to finish real quick before I can move on to other things but I'd love to help.

TOR is a given but you'd be just as well using 4096x4096 RSA crypto convo's over it as opposed to plain text.

I'm sure most of you know how to use strong crypto by now but just in case, here's an illustrated PGP tut I made way back describing the situation of the time. It's old but wtf, it's applicable.

Here's the original thread detailing people's questions & answers for the sake of brevity here. http://forums.lycaeum.org/index.php?topic=17417.0

Of course you can use other equally strong programs if you're running linux, GPG etc.

First, get PGP & Install. During install, you'll encounter the Key Generation Wizard. Do the following: Select the SHA-2 512 hash as your preferred & make sure 4096x4096 is TYPED into your key size field as this is not a default size option. Select AES as the cipher. Expire your key as desired. 5 years or so is fine. Less if you want to be real paranoid.



After generation, highlight your key and click on its properties. Make sure it came through as selected.



Digital signatures: This is usefull for plaintext transmissions as it verifies your message's authenticity and that it's not been intercepted/changed. This is where your hash selection comes into play. Also, it determines your key's "fingerprint" as you can see in my signature at the end of my posts & in the pic above. You don't have to manually verify the digital signature in a message if you configure your PGP correctly. It will automatically verify it for you. It adds a bit of extra shit to your message but it's worth it.

You can request a certificate from your IT system admin when you submit your public key in order to get your key stored on your work email key server and your digital sig automatically appended to your email. Alternately, you can enable hot keys in PGP and just Ctl+Shift+S to scan your message, hash it, generate your digi sig for verification (all of that is automated) and enter your passphrase to sign the message. It will appear as so:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Encrypted Chunk O' Message goes here......... Blah blah blah... .

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.5 - Enterprise license

iQIVAwUBRMkg1MuGnTghtvTHAQoT1A//ZXuJWxzXUUTUqUtBTZG9yQt8UQWfYI1D
bxYWI0FKEnNpmOaAATNEjuyLqjQlCO2YAmzpZYq8OT4DMKqzefZMoWBF/4aLS+xc
cB3ImIlfivmg9zKv+hSmOGgo0XqQB6jECIIwrroDtiavEWDgSngSktb65ljhSUV7
jkv5N4mygI6r8sxPdBR0HFJiVrvhVVHZ64p2Zzr4PpVhedXskQlPRh/yebulGc0R
2JxpIck0LdExcraRvjt1rD6KX/06Xr+ODsrnTbqWwnIIEvfZHFakFPw4WShSyLCU
2MDPQ8kV9I7BEyoRlpqStNKbCJjAQ+PhSsLGRoGP4F+BVlmf2hPQcTGWddqTv7Ft
3wyt44kOX1FTKE7e5vATRj+7vH8nxjQVF/9yGm398J+5/rgpZVEt3uc+BTnxYeUr
YcRtQpy38JmsgYK0hFNeTItenLXEREUznluzs4JZKDLTs2Nj42BOatbvhPhpQ7xK
L556J+FzuIerwEj27IccVY9ldKXT7rBr42tLptcEaJFeKO9x8U/+8Yyxom73+YBb
aIJY3dbMV4TLo9xj5CAFdulfR60otNZ8N7p9jKx0/7fxU4NlYRyfrdlb0lBjDNku
2+4AF5JNi5b1IbyBjHordBy1Yl7yEu8NDfMLFzD1/XMGbOrbgi0MuB8rro91kH/l
JbjVAWdSL6c=
=dCPP
-----END PGP SIGNATURE-----

This voids the "man in the middle" attack on your info.





« Last Edit: November 27, 2011, 12:22:33 AM by Dr. Tox »
Alimentary, dear Watson; I had a gut feeling.

Wizard X

  • Lord of the Realms
  • Foundress Queen
  • *****
  • Posts: 1,224
Re: I want a Tor Server...
« Reply #2 on: November 27, 2011, 12:31:45 AM »
Browser-Based Attacks on Tor: http://web.mit.edu/tabbott/www/papers/tor.pdf Page 13, 6.1 & 6.2.

I have stated many times to DISABLE ALL SCRIPTING. http://127.0.0.1/talk/index.php/topic,2033.msg24176.html#msg24176

6.2 ON SSL "man in the middle"

Also, make sure the Apache server is fully patched and up-to-date on whichever Linux based OS.

Unpatched Apache flaw allows access to internal network.
http://www.computerworld.com/s/article/9222160/Unpatched_Apache_flaw_allows_access_to_internal_network?taxonomyId=17


Other posts...
http://127.0.0.1/talk/index.php/topic,2561.msg26887.html#msg26887
http://127.0.0.1/talk/index.php/topic,2033.msg24344.html#msg24344
« Last Edit: November 27, 2011, 12:47:03 AM by Wizard X »
Albert Einstein - "Great ideas often receive violent opposition from mediocre minds."

dream0n

  • Subordinate Wasp
  • ***
  • Posts: 204
Re: I want a Tor Server...
« Reply #3 on: November 27, 2011, 12:37:03 AM »
SR was running unpatched for a long time...  ::)  though, they eventually got it fixed-up. It was fun to play with the internals of it while it lasted, but that was a quite some time ago.
I am all for a TOR-only version of this site, and an optimized version (I know it is minimal already, but think about it).
off to bigger and better things - don't worry I will visit from time to time

Wizard X

  • Lord of the Realms
  • Foundress Queen
  • *****
  • Posts: 1,224
Re: I want a Tor Server...
« Reply #4 on: November 27, 2011, 12:38:38 AM »
TOR is a given but you'd be just as well using 4096x4096 RSA crypto convo's over it as opposed to plain text.

The issue with 4096x4096 RSA SSL is that it impacts on server performance.
Albert Einstein - "Great ideas often receive violent opposition from mediocre minds."

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
Re: I want a Tor Server...
« Reply #5 on: November 27, 2011, 01:29:58 AM »
My interest isn't really into getting *This* site to be ran on a Tor server.
I just want to make a distribution of a secure Tor server to make it super easy for individuals to setup a tor server properly to create Hive/Vesp styled tor sites, more silkroads, and anything else that helps the spread of knowledge and substances.

@WizardX -- How big of issuer does 4096x4096 RSA SSL cause for server performance? Wouldn't the trade off be worth it?
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

Dr. Tox

  • In Stasis: See You In A Few Years!
  • Subordinate Wasp
  • ***
  • Posts: 145
Re: I want a Tor Server...
« Reply #6 on: November 27, 2011, 02:49:50 AM »
Last week I sat up out of my deathbed after surgery correcting a massive gastric bleed due to alcoholism. I ruptured an artery in my esophagus and puked at least a gallon of blood. I lost 50Lb in the few weeks preceding the rupture.

Now that I have synthetics and metal inside of me and I'm officially bionic, perhaps I can install linux on myself and just eat like a pig to support the required performance.

[root@Guthost root]# sudo apt-get install lamp-server^
Reading package lists... Done
Building dependency tree
Reading state information... Done
blah blah blah...
...
..
..

[root@Guthost root]# sudo get me a beer while I wait
ok...
« Last Edit: November 27, 2011, 03:51:10 AM by Dr. Tox »
Alimentary, dear Watson; I had a gut feeling.

Wizard X

  • Lord of the Realms
  • Foundress Queen
  • *****
  • Posts: 1,224
Re: I want a Tor Server...
« Reply #7 on: November 27, 2011, 03:52:27 AM »
@WizardX -- How big of issuer does 4096x4096 RSA SSL cause for server performance? Wouldn't the trade off be worth it?

RAM, CPU, and cache tweaking helps server performance. The http://127.0.0.1 cert is Size: 256 Bytes / 2048 Bits, PKCS #1 SHA-1 With RSA Encryption.
Albert Einstein - "Great ideas often receive violent opposition from mediocre minds."

Dr. Tox

  • In Stasis: See You In A Few Years!
  • Subordinate Wasp
  • ***
  • Posts: 145
Re: I want a Tor Server...
« Reply #8 on: November 27, 2011, 05:11:24 AM »
With permission, I would like to invite a linux geek friend of mine and associate of one of our own in house linux pro's to help with this project. He's pretty stoked on the idea and is of like mind.  ;)
Alimentary, dear Watson; I had a gut feeling.

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
Re: I want a Tor Server...
« Reply #9 on: November 27, 2011, 05:24:54 AM »
Yes go for it. :)

It seems like a lot of us here are also interested in computers and I honestly would not mind creating a section specifically for the discussion of computer science and how it relates to the law, or to drugs and the things that surround the culture - but I'll wait on this and until now Law & Security can have most of the technological discussions.
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

Dr. Tox

  • In Stasis: See You In A Few Years!
  • Subordinate Wasp
  • ***
  • Posts: 145
Re: I want a Tor Server...
« Reply #10 on: November 27, 2011, 05:29:34 AM »
Very well, I will bring him in tomorrow.

Thank you. I'd be honored to be of any help with it.
Alimentary, dear Watson; I had a gut feeling.

tryl

  • Pupae
  • **
  • Posts: 89
Re: I want a Tor Server...
« Reply #11 on: November 27, 2011, 08:48:25 AM »
awesome!

didn't i start a thread about exactly the same thing here not too long ago, or was it at the-collective?

my machine here is all available and running *nix and pretty fuckin secured, me being a security geek and all.

and i am totally up for it.

i'll start looking into it soon as i overeat on beetroot and mayonaise and the apple struddel my mom is seducing me with.

tox, you say you've gotten j. into this?:)
has he been working on a similar thing?
"In the words of Archimedes, give me a lever long enough and a place to rest it... or I shall kill one hostage every hour."

Dr. Tox

  • In Stasis: See You In A Few Years!
  • Subordinate Wasp
  • ***
  • Posts: 145
Re: I want a Tor Server...
« Reply #12 on: November 27, 2011, 08:59:33 AM »
Actually I meant you. lol.

But I'm going over to see him tomorrow for a bad movie fest, like we used to do. This time it's Doc Savage, Man Of Bronze. It think last time it was the MST3K version of Space Mutiny....

Anyway, yeah, he's down as down can be! I'm excited!
Alimentary, dear Watson; I had a gut feeling.

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
Re: I want a Tor Server...
« Reply #13 on: November 27, 2011, 10:02:51 AM »
Sounds like we could build a pretty good group of interested individuals with this project.

My dream/goal is to eventually make this an open source Tor server to make it readily available. :)
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

tryl

  • Pupae
  • **
  • Posts: 89
Re: I want a Tor Server...
« Reply #14 on: November 27, 2011, 10:15:15 AM »
let's IRC later on, everybody that's interested, hm?
"In the words of Archimedes, give me a lever long enough and a place to rest it... or I shall kill one hostage every hour."

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
Re: I want a Tor Server...
« Reply #15 on: November 27, 2011, 10:21:40 AM »
Yeah, I would be up for that, though I'll need to get an IRC account :P
Also I really do not have much to offer at all.

Kinda related/interesting: http://thehackernews.com/2011/11/new-apache-reverse-proxy-flaw-allows.html
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

tryl

  • Pupae
  • **
  • Posts: 89
Re: I want a Tor Server...
« Reply #16 on: November 27, 2011, 10:22:31 AM »
irc account? :P
just /nick, /server. /join and that's it.
"In the words of Archimedes, give me a lever long enough and a place to rest it... or I shall kill one hostage every hour."

tryl

  • Pupae
  • **
  • Posts: 89
Re: I want a Tor Server...
« Reply #17 on: November 27, 2011, 10:26:14 AM »
im rather thinking something along lighttpd or ngnix than apache, tell you the truth. :)
"In the words of Archimedes, give me a lever long enough and a place to rest it... or I shall kill one hostage every hour."

Vesp

  • Administrator
  • Foundress Queen
  • *****
  • Posts: 3,130
Re: I want a Tor Server...
« Reply #18 on: November 27, 2011, 10:31:03 AM »
Why would that be better? Apache is open source and has a large community around it - so any security issues are likely noticed fast and are fixed as soon as possible. I would fear the others would have the same likely hood of security issues, but a slower fix time?

Or I guess they would be less likely to be attacked because they are less popular?
Bitcoin address: 1FVrHdXJBr6Z9uhtiQKy4g7c7yHtGKjyLy

tryl

  • Pupae
  • **
  • Posts: 89
Re: I want a Tor Server...
« Reply #19 on: November 27, 2011, 11:11:57 AM »
both lighttpd and nginx are open source too.
reddit runs on the former, the latter was developed by russians for the purpose of running their rambler.ru on it.
it is just that they are faster, lighter and accent on performance, while apache is a bit cumbersome in comparison.
but actually, it matters little weather it is apache or any other of the popular open source web servers.

SSL was badly compromised not too long ago, one fix is to use a stream instead of a block cipher.
but let's start with the beginning - where would that be hosted?
as i said, i'm OK with hosting it from my home.
that's bulgaria.

let's just make an irc channel and discuss this in more detail so we/i can get started, i really wanna pull this one through (unlike most my 'projects' that i usually abandon halfway).
"In the words of Archimedes, give me a lever long enough and a place to rest it... or I shall kill one hostage every hour."