Be sure to read Why you need balls of steel to operate a Tor exit node if you are thinking about Tor.
Date: 2 Sep 2005 19:23:08 -0000 Message-ID: <8LDCCMM038598.1410648148@reece.net.au> From: Tor Johnson <planet9x63w@yahoo.com> Subject: Tor Hidden Web Service. Comments, Tips If anybody using tor wants to set up a hidden web server under linux, my experience doing it might be helpful if you are new to linux. The tor manual pages on setting up hidden services are very well done: http://tor.eff.org/doc/tor-hidden-service.html In addition to having tor/privoxy running, you will need to install a web server. They recommended thttpd, which was just the thing for me - very simple and fast. They recommend using port 5222 for the server, but I was delayed by this instruction: <quote> Step Three: Connect your web server to your hidden service This part is very simple. Open up your torrc again, and change the HiddenServicePort line from "www.google.com:80" to "localhost:5222". Then restart Tor. Make sure that it's working by reloading your hidden service hostname in your browser. </quote> It's probably obvious, but to spell it out a little more, you wnat to change the HiddenServicePort line to: 80 localhost:5222 You will also need to forward 80 and 5222 if you are behind a router. The biggest problem I had was in setting the permissions correctly. Linux is very fussy about permissions, rightly so, and it took me awhile to get straight on them. I set up the hidden services dirctory in /var/tor/hidserv/. When I restarted Tor after making the necessary changes to its conf file, hidserv contained the expected additional files (this is all spelled out in the manual very clearly). On my system, tor runs under a user called debian-tor, so when I created /var/tor/hidserv, I set the owner and group to debian-tor. thttpd defaults to a user of www-data. You have to go into its .conf file, which is in /etc/thttpd/thttpd.conf on my system, and change this little bit to be as shown: <quote> # user: userid # Specified which user to switch after intialiazation when started as root. # Default: www-data user=debian-tor </quote> Then restart thttpd. The only other thing I did was to create an index.html in /var/tor, which is the home directory for thttpd. When you start thttpd, your userid will be debian-tor. To become debian-tor, open a terminal and type su root password when prompted su debian-tor then cd /var/tor Then start thttpd. The command I used was /usr/sbin/thttpd -p 5222 -h localhost. It's mentioned in the manual. You have to start thttpd from /var/tor. If anybody is running tor and cares to test my hidden web service, go to http://3u2z5isd6vlkxmql.onion. You should see a test page and a couple of test links. If you do test it, please let me know the results. It works when I use my torrified browser, but it would be good to know that others can see it as well. Questions? Ask here.
/Bofcusm/2602.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar