1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-30 05:31:56 +02:00

Merge pull request #53 from kremalicious/tor-update

tor article update
This commit is contained in:
Matthias Kretschmann 2018-07-11 02:09:44 +02:00 committed by GitHub
commit c2a819eb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 KiB

After

Width:  |  Height:  |  Size: 266 KiB

View File

@ -5,7 +5,7 @@ title: Simple Tor setup on macOS
image: teaser-tor.png
author: Matthias Kretschmann
date: 2015-08-02 21:57:30.912218000 +02:00
updated: 2016-10-03 22:52:46+02:00
updated: 2018-07-11 00:52:46+02:00
category:
tags:
@ -17,9 +17,19 @@ tags:
coinhive: true
---
There're many reasons you might want to browse anonymously which can be accomplished by using [Tor](https://www.torproject.org). The setup instructions on Tor's website are quite scattered and outdated so here're some steps to setup Tor on macOS with a simple automated script at the end.
There are many reasons you might want to browse anonymously which can be accomplished by using [Tor](https://www.torproject.org). The setup instructions on Tor's website are quite scattered and outdated so here are some steps to setup Tor on macOS with a simple automated script at the end.
I'm using macOS Sierra (10.12) for the following instructions but it should work on almost any macOS version.
I'm using macOS High Sierra (10.13) for the following instructions but it should work on almost any macOS version.
## Table of Contents
- [Tor Browser](#tor-browser)
- [Install Tor](#install-tor)
- [Set network proxy settings via System Preferences](#set-network-proxy-settings-via-system-preferences)
- [All in one go: start Tor & set network proxy settings automatically](#all-in-one-go-start-tor-set-network-proxy-settings-automatically)
- [Non-standard apps](#non-standard-apps)
---
## Tor Browser
@ -27,23 +37,27 @@ I'm using macOS Sierra (10.12) for the following instructions but it should work
The most simple way to surf anonymously with Tor is to just grab [Tor Browser](https://www.torproject.org/projects/torbrowser.html.en). It's a modified version of [Firefox Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/organizations/) with Tor and some extensions (Torbutton, TorLauncher, NoScript, and HTTPS-Everywhere) built right in. Upon start, Tor Browser automatically starts the required Tor background processes and routes traffic through the Tor network. That's the way to go if you want the highest level of protection without much further configuration.
But it's based on a super old version of Firefox and there might be more you want to do anonymously on your machine than just browsing the web, like accessing resources via the Terminal or any other app. Or just use the browser you're used to.
But it's based on an old version of Firefox and there might be more you want to do anonymously on your machine than just browsing the web, like accessing resources via the Terminal or any other app. Or just use the browser you're used to.
For this you need to have Tor installed on your system and additionally set specific proxy values in your network preferences after you've started Tor.
<div class="alert alert-info">
<p>Be aware that the instructions and the script mentioned below will not make whatever you do on the web anonymous. Much depends on your browsing habits, what apps you're using, and none of the methods below will offer the same level of protection than <a href="https://www.torproject.org/projects/torbrowser.html.en">Tor Browser</a> out of the box. You have been warned.</p>
</div>
## Install Tor
Contrary to the weirdly outdated [install instructions on Tor's website](https://www.torproject.org/docs/tor-doc-osx.html.en) (hey, remember Macports?), installing Tor on macOS is super simple with [Homebrew](http://brew.sh).
In your Terminal execute:
```shell
```bash
brew install tor
```
Then you can start it up by running:
```shell
```bash
tor
```
@ -56,8 +70,8 @@ In order for all your system traffic being routed through Tor you need to adjust
You can do this under *System Preferences > Network* by creating a specific Tor network location for it:
1. From Location dropdown at the top, select *Edit Locations...*
2. Create a new location by hitting the plus button and name it *Tor*. Hitting Done will select the new location which is now ready to be configured
4. Go to *Advanced > Proxies* and activate *SOCKS Proxy* and add those values:
1. Create a new location by hitting the plus button and name it *Tor*. Hitting Done will select the new location which is now ready to be configured.
1. Go to *Advanced > Proxies* and activate *SOCKS Proxy* and add those values:
- *SOCKS proxy server*: `localhost`
- *Port*: `9050`
@ -112,7 +126,7 @@ tor
Save this script under something like `tor.sh` in one of your sourced `bin` folders, make it executable with `chmod + x` and use it as a replacement for the general `tor` command. So you can just run
```shell
```bash
tor.sh
```
@ -123,3 +137,15 @@ and Tor should run smoothly on your system without additional configuration:
Verify you're indeed browsing over the Tor network by going to [check.torproject.org](https://check.torproject.org).
When you're done, just exit the script with <kbd>ctrl</kbd> + <kbd>c</kbd> and the network settings will be reverted to their previous configuration.
## Non-standard apps
Some apps are just not good Mac citizens and use their own network settings, ignoring macOS system network proxy settings. E.g. older versions of Google Chrome were using their own custom network settings and therefore were not routing their web traffic through the proxy configured in System Preferences.
But the most recent Chrome version automatically picks up macOS's native proxy settings, as does the most recent version of Firefox.
Always [check](https://check.torproject.org) your Tor connection with whatever app you're using and if needed set the proxy preferences manually in the respective app with:
- *SOCKS proxy server*: `localhost`
- *Port*: `9050`