1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-29 07:26:22 +01:00
blog/.jest/__fixtures__/postWithMore.json

42 lines
27 KiB
JSON
Raw Normal View History

2019-12-14 15:46:43 +01:00
{
"post": {
"html": "<p>There are many reasons you might want to browse anonymously which can be accomplished by using <a href=\"https://www.torproject.org\">Tor</a>. The setup instructions on Tors website are quite scattered and outdated so here are some steps to setup Tor on macOS with a simple automated script at the end.</p><!-- more -->\n<p>Im using macOS Catalina (10.15) for the following instructions but it should work on almost any macOS version.</p>\n<h2 id=\"tor-browser\"><a href=\"#tor-browser\" aria-label=\"tor browser permalink\" class=\"anchor\"><span>#</span></a>Tor Browser</h2>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n <span\n class=\"gatsby-resp-image-wrapper\"\n style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px;\"\n >\n <span\n class=\"gatsby-resp-image-background-image\"\n style=\"padding-bottom: 79.67625899280576%; position: relative; bottom: 0; left: 0; display: block;\"\n ></span>\n <img\n class=\"gatsby-resp-image-image\"\n alt=\"Tor Browser\"\n title=\"Tor Browser\"\n src=\"/static/d254d922666449c4550bd8591a72a6f4/0f489/tor-browser.png\"\n srcset=\"/static/d254d922666449c4550bd8591a72a6f4/896af/tor-browser.png 158w,\n/static/d254d922666449c4550bd8591a72a6f4/b70ff/tor-browser.png 315w,\n/static/d254d922666449c4550bd8591a72a6f4/0f489/tor-browser.png 630w,\n/static/d254d922666449c4550bd8591a72a6f4/85b6f/tor-browser.png 945w,\n/static/d254d922666449c4550bd8591a72a6f4/4d498/tor-browser.png 1260w,\n/static/d254d922666449c4550bd8591a72a6f4/fce11/tor-browser.png 2224w\"\n sizes=\"(max-width: 630px) 100vw, 630px\"\n loading=\"lazy\"\n />\n </span>\n <figcaption class=\"gatsby-resp-image-figcaption\">Tor Browser</figcaption>\n </figure></p>\n<p>The most simple way to surf anonymously with Tor is to just grab <a href=\"https://www.torproject.org/projects/torbrowser.html.en\">Tor Browser</a>. Its a modified version of <a href=\"https://www.mozilla.org/en-US/firefox/organizations/\">Firefox Extended Support Release (ESR)</a> 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. Thats the way to go if you want the highest level of protection without much further configuration.</p>\n<p>But its based on an older 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 youre used to.</p>\n<p>For this you need to have Tor installed on your system and additionally set specific proxy values in your network preferences after youve started Tor.</p>\n<div class=\"alert alert-info\">\n <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>\n</div>\n<h2 id=\"install-tor\"><a href=\"#install-tor\" aria-label=\"install tor permalink\" class=\"anchor\"><span>#</span></a>Install Tor</h2>\n<p>Contrary to the weirdly outdated <a href=\"https://www.torproject.org/docs/tor-doc-osx.html.en\">install instructions on Tors website</a> (hey, remember Macports?), installing Tor on macOS is super simple with <a href=\"http://brew.sh\">Homebrew</a>.</p>\n<p>In your Terminal execute:</p>\n<pre class=\"nord vscode-highlight\" data-language=\"bash\"><code class=\"vscode-highlight-code\"><span class=\"vscode-highlight-line\"><span class=\"mtk1\">brew install tor</span></span></code></pre>\n<p>Then you can start it up by running:</p>\n<pre class=\"nord vscode-highlight\" data-language=\"bash\"><code class=\"vscode-highlight-code\"><span c
"excerpt": "There are many reasons you might want to browse anonymously which can be accomplished by using Tor. The setup instructions on Tors website…",
"frontmatter": {
"type": "post",
"title": "Simple Tor setup on macOS",
"image": {
"childImageSharp": {
"fluid": {
"aspectRatio": 3.2,
"src": "/static/c87c817b4191fb48e9ca4419c0c70bb8/3995d/teaser-tor.png",
"srcSet": "/static/c87c817b4191fb48e9ca4419c0c70bb8/f0031/teaser-tor.png 200w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/cad89/teaser-tor.png 400w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/3995d/teaser-tor.png 800w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/32ce4/teaser-tor.png 1200w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/1ed7e/teaser-tor.png 1600w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/19dc3/teaser-tor.png 1920w",
"srcWebp": "/static/c87c817b4191fb48e9ca4419c0c70bb8/240ac/teaser-tor.webp",
"srcSetWebp": "/static/c87c817b4191fb48e9ca4419c0c70bb8/04c4c/teaser-tor.webp 200w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/ebea1/teaser-tor.webp 400w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/240ac/teaser-tor.webp 800w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/823f0/teaser-tor.webp 1200w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/9e49e/teaser-tor.webp 1600w,\n/static/c87c817b4191fb48e9ca4419c0c70bb8/68ae1/teaser-tor.webp 1920w",
"sizes": "(max-width: 800px) 100vw, 800px",
"originalImg": "/static/c87c817b4191fb48e9ca4419c0c70bb8/19dc3/teaser-tor.png",
"originalName": "teaser-tor.png",
"presentationWidth": 800,
"presentationHeight": 250
}
},
"fields": null
},
"toc": true,
"author": "Matthias Kretschmann",
"updated": "2019-11-07T22:52:46.000Z",
"tags": ["tutorial", "tor", "macos", "goodies", "apple"],
"linkurl": null,
"style": null,
"changelog": null
},
"fields": {
"slug": "/simple-tor-setup-on-mac-os-x",
"date": "2015-08-02T19:57:30.912Z",
2020-07-02 20:03:35 +02:00
"githubLink": "https://github.com/kremalicious/blog/tree/main/content/posts/2015-08-02-simple-tor-setup-on-mac-os-x/index.md"
2019-12-14 15:46:43 +01:00
},
"rawMarkdownBody": "\nThere 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.\n\n<!-- more -->I'm using macOS Catalina (10.15) for the following instructions but it should work on almost any macOS version.\n\n## Tor Browser\n\n![Tor Browser](tor-browser.png)\n\nThe 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.\n\nBut it's based on an older 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.\n\nFor 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.\n\n<div class=\"alert alert-info\">\n <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>\n</div>\n\n## Install Tor\n\nContrary 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).\n\nIn your Terminal execute:\n\n```bash\nbrew install tor\n```\n\nThen you can start it up by running:\n\n```bash\ntor\n```\n\nCongratulations, you now have Tor running on your system. But none of your network traffic is routed through it yet.\n\nIn order for all your system traffic being routed through Tor you need to adjust your system's network proxy settings which you can either do visually in the System Preferences or programmatically via macOS's builtin `networksetup`.\n\n## Set network proxy settings via System Preferences\n\nYou can do this under _System Preferences > Network_ by creating a specific Tor network location for it:\n\n1. From Location dropdown at the top, select _Edit Locations..._\n2. 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.\n3. Go to _Advanced > Proxies_ and activate _SOCKS Proxy_ and add those values:\n\n- _SOCKS proxy server_: `localhost`\n- _Port_: `9050`\n\n![Network Settings](tor-osx-proxy.png)\n\nAfter hitting _OK_ & _Apply_ at the initial network screen, you can easily switch to this newly created location from your menu bar under _ > Location_ whenever you start up Tor.\n\nSwitching to the Tor location routes all network traffic on your system through Tor. Note that you have to repeat those steps for every other network interface if you use, say, Wi-Fi and Ethernet interchangeably.\n\n## All in one go: start Tor & set network proxy settings automatically\n\nWhen you're already in the Terminal to start up Tor, additionally setting the network settings involves a lot of fiddling around. Ain't nobody got time for that.\n\nThankfully macOS provides a way to programmatically set those proxy values via the `networksetup` utility. I've found a [nice script](http://leonid.shevtsov.me/en/an-easy-way-to-use-tor-on-os-x) for this but running it opened multiple admin passwo
"tableOfContents": "<ul>\n<li><a href=\"/simple-tor-setup-on-mac-os-x/#tor-browser\">Tor Browser</a></li>\n<li><a href=\"/simple-tor-setup-on-mac-os-x/#install-tor\">Install Tor</a></li>\n<li><a href=\"/simple-tor-setup-on-mac-os-x/#set-network-proxy-settings-via-system-preferences\">Set network proxy settings via System Preferences</a></li>\n<li><a href=\"/simple-tor-setup-on-mac-os-x/#all-in-one-go-start-tor--set-network-proxy-settings-automatically\">All in one go: start Tor &#x26; set network proxy settings automatically</a></li>\n<li><a href=\"/simple-tor-setup-on-mac-os-x/#non-standard-apps\">Non-standard apps</a></li>\n</ul>"
}
}