Hello fellows,
Where can we contribute (post a guide) to deploy Tor in Windows without the extras unneeded stuff? I was looking for a Tor Server installation guide on Windows to run Tor as a service. I did not wanted to install all the extra browser stuff but a plain "Tor server" service and secure it by giving the service its own limited account and write permissions just to the datadir. Since I couldn't find information online to help me out, I ended up using the latest Tor Browser package and removing everything except Tor itself and deployed it in two Windows servers as services. I would like to post somewhere in the Top project about the process for others to benefit from it.
Click on the "Download" button on torproject.org. This brings you to the "easy" download page with just the browser bundle. Click on the "View All Downloads" link to get all available options: https://www.torproject.org/download/download.html.en
On 2014-10-31 09:18, Rafael Rodriguez wrote:
Hello fellows,
Where can we contribute (post a guide) to deploy Tor in Windows without the extras unneeded stuff? I was looking for a Tor Server installation guide on Windows to run Tor as a service. I did not wanted to install all the extra browser stuff but a plain "Tor server" service and secure it by giving the service its own limited account and write permissions just to the datadir. Since I couldn't find information online to help me out, I ended up using the latest Tor Browser package and removing everything except Tor itself and deployed it in two Windows servers as services. I would like to post somewhere in the Top project about the process for others to benefit from it.
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
On Fri, Oct 31, 2014 at 4:18 AM, Rafael Rodriguez rafaelr@icctek.com wrote:
Hello fellows,
Where can we contribute (post a guide) to deploy Tor in Windows without the extras unneeded stuff? I was looking for a Tor Server installation guide on Windows to run Tor as a service. I did not wanted to install all the extra browser stuff but a plain "Tor server" service and secure it by giving the service its own limited account and write permissions just to the datadir. Since I couldn't find information online to help me out, I ended up using the latest Tor Browser package and removing everything except Tor itself and deployed it in two Windows servers as services. I would like to post somewhere in the Top project about the process for others to benefit from it.
I'd suggest that you start by posting your process to this mailing list, so that other folks can add improvements for it. (Though I hope that expert packages in some form will return soon.)
Does the mailing list accept images in emails? The process is rather simple but screenshots in a how-to is what makes it easy for not technical people.
I will be posting the process to this mailing list in a few.
On 2014-11-04 17:25, Nick Mathewson wrote:
On Fri, Oct 31, 2014 at 4:18 AM, Rafael Rodriguez rafaelr@icctek.com wrote:
Hello fellows, Where can we contribute (post a guide) to deploy Tor in Windows without the extras unneeded stuff? I was looking for a Tor Server installation guide on Windows to run Tor as a service. I did not wanted to install all the extra browser stuff but a plain "Tor server" service and secure it by giving the service its own limited account and write permissions just to the datadir. Since I couldn't find information online to help me out, I ended up using the latest Tor Browser package and removing everything except Tor itself and deployed it in two Windows servers as services. I would like to post somewhere in the Top project about the process for others to benefit from it.
I'd suggest that you start by posting your process to this mailing list, so that other folks can add improvements for it. (Though I hope that expert packages in some form will return soon.)
Hi, here is it. Please, feel free to contribute to it.
RUNNING A TOR SERVER IN WINDOWS
- Download latest Tor Browser Bundle. - Install to c:tor - Create a temporary folder on your Desktop and name it "server". - Copy all files from C:TorBrowserTorBrowserDataTor to the "server" folder on the Desktop. - Browse to C:TorBrowserTorBrowserTor; delete the folder "PluggableTransports" and it content. - Copy all files from C:TorBrowserTorBrowserTor to the "server" folder on the Desktop. - Browse to C:Tor and delete everything inside that folder. C:Tor should be completely empty at this point. - Move all files from the "server" folder on your Desktop to C:Tor - Browse to C:Tor and create a new folder named "datadir". - Create a new text file in C:Tor named "notices" (I myself use notices.log but we want to keep it simple for users who may not know how to change the file extension from .txt to .log) - EDIT C:TORTORRC FILE: (this could be the torrc-defaults file and all its comments). Note that the sample below is just for references. Each user needs to define her/his own parameters based on their own needs and that's impossible for me to cover in a single file for everyone. Hence, each parameter should be included in the torrc-defaults with due comments to be used as reference. Also, noted that I'm using IPv4 geoip by default. Users using IPv6 should define geoip6 in their torrc file. Then again, I cannot use a single sample file for all deployments. The defaults file should be used as reference once again.
DATADIRECTORY .DATADIR LOG NOTICE FILE .NOTICES.TXT GEOIPFILE .GEOIP AvoidDiskWrites 1 SocksPort 0 ORPort 9001 DirPort 9030 ExitPolicy reject *:* Nickname RelayBandwidthRate RelayBandwidthBurst
Up until this point, all I've written is nothing more than using the default Tor Bundle to create a "Server" package. All steps above could be made easier for users if a "Tor Windows Server" package was available for download on the Tor Project or somewhere else. I refuse the idea of creating such package myself to distribute it since many packages could start floating on the net and bad intentioned people could bundle them with arbitrary code, viruses and so on. A Windows Installer package can be built for distribution though.
Next, I will address the two main things we need to run tor as a Windows service (server):
1- Install Tor as Windows Service. 2- Security (Isolating the Tor service).
INSTALL TOR AS WINDOWS SERVICE
I personally use nssm [2] (Non-Sucking Service Manager) myself to register the service but feel free to use default Windows tools for registering Tor service if you believe so. Anyways, irrespective the tool used to register the Tor service, we just need the following:
Service: C:Tortor.exe Name: TorServer Parameters: -f C:Tortorrc
Start the TorServer service and everything should just work at this point. The datadir directory will be populated with tor files once started and the notices.txt file will also reflect so.
SECURITY (Quick explanation - We can go into details later)
- Create a Standard user account and name it Tor with a strong password. - Policies:
1- Deny access to this computer from the network 2- Deny log on locally 3- Deny log on through Remote Desktop Services
- NTFS Permissions for Tor windows user account:
1- Read/Write permissions to datadir folder 2- Read/Write permissions to notices.txt or (notices.log) file
- Open Services, Start -> Run -> type "services.msc" without quotes, press enter and your Services window will pop up. Scroll down and find the TorServer service and double click it. Move to the LOG ON tab and set the "Log on as: This account: .TOR. Enter the strong password for the Tor user account in the password field and apply changes. Restart the service and now Tor will be running in its own isolated/limited account in Windows.
954-610-4545
On 2014-11-04 18:06, Rafael Rodriguez wrote:
Does the mailing list accept images in emails? The process is rather simple but screenshots in a how-to is what makes it easy for not technical people.
I will be posting the process to this mailing list in a few.
On 2014-11-04 17:25, Nick Mathewson wrote:
On Fri, Oct 31, 2014 at 4:18 AM, Rafael Rodriguez rafaelr@icctek.com wrote: Hello fellows, Where can we contribute (post a guide) to deploy Tor in Windows without the extras unneeded stuff? I was looking for a Tor Server installation guide on Windows to run Tor as a service. I did not wanted to install all the extra browser stuff but a plain "Tor server" service and secure it by giving the service its own limited account and write permissions just to the datadir. Since I couldn't find information online to help me out, I ended up using the latest Tor Browser package and removing everything except Tor itself and deployed it in two Windows servers as services. I would like to post somewhere in the Top project about the process for others to benefit from it.
I'd suggest that you start by posting your process to this mailing list, so that other folks can add improvements for it. (Though I hope that expert packages in some form will return soon.)
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays [1]
Links: ------ [1] https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays [2] http://nssm.cc/download
On Tue, Nov 04, 2014 at 05:25:28PM -0500, Nick Mathewson wrote:
I'd suggest that you start by posting your process to this mailing list, so that other folks can add improvements for it. (Though I hope that expert packages in some form will return soon.)
The expert packages have indeed returned, albeit in a slightly different form. See https://dist.torproject.org/torbrowser/4.0.1/ and scroll down to tor-win32-tor-0.2.5.10.zip
But nobody has linked to them from the download page; and I think it might require a bit of thought to make our links on the download page auto update to the new location of this zip after future Tor Browser releases.
--Roger
That's indeed pretty handy. Now we just need to put a guide together somewhere and point to that download section.
I do not mind writing a step by step guide with screenshots. Only if we had a section in the Tor Project where to post it.
I'm planning to write it up in one of my old blogs in the mean time and maybe someone shows interest in copying it over to the Tor Project?
Anyone?
On 2014-11-05 11:13, Roger Dingledine wrote:
On Tue, Nov 04, 2014 at 05:25:28PM -0500, Nick Mathewson wrote:
I'd suggest that you start by posting your process to this mailing list, so that other folks can add improvements for it. (Though I hope that expert packages in some form will return soon.)
The expert packages have indeed returned, albeit in a slightly different form. See https://dist.torproject.org/torbrowser/4.0.1/ [1] and scroll down to tor-win32-tor-0.2.5.10.zip
But nobody has linked to them from the download page; and I think it might require a bit of thought to make our links on the download page auto update to the new location of this zip after future Tor Browser releases.
--Roger
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays [2]
Links: ------ [1] https://dist.torproject.org/torbrowser/4.0.1/ [2] https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays@lists.torproject.org