Jeremys

Regular
Joined
28.09.20
Messages
74
Reaction score
204
Points
18
First of all, we need to install MacPorts

Download and install, before that, do not forget to install Xcode. We need MacPorts to help install TOR, it is a system for building programs from source.

Next, open terminal and use MacPorts to install tor as administrator.
Code:
port install tor
Make sure Tor is installed correctly. We launch it in the terminal without root rights.
Code:
tor
If all is well, then we will see the following lines in the terminal.

kak-pustit-ves-trafik-cherez-tor-mac1-300x226.jpg



This completes the work with the console, let's move on to the network settings. To do this, open: System Preferences> Network. On the left, select the network interface and at the top, where it says Placement, select Edit Placements. Click on + and add a new location, let's call it tor for example.

Now switch from automatic placement to the newly created one (tor) and go to the additional settings in the lower right corner (Advanced ...). Go to the proxy tab and select SOCKS proxy in the Protocol for configuration. We register 127.0.0.1 in the SOCKS proxy server and, of course, port 9050.

In order not to start tor manually every time after restarting the computer, you can set it up automatically. To do this, launch the Automator utility, select the Program.

On the left, select Run shell script and drag it to the right.

Instead of cat, insert the following command:

Code:
nohup / opt / local / bin / tor & gt ; / dev / null 2 & gt ; & amp ; 1 & amp ;
nohup is a utility that ignores user logging and continues to execute the command in the background.

Close Automator and save changes.

Next, go to System Preferences> Users and Groups, select the current user and Login Objects on the left, click + and add the newly created utility to run. Now, to turn tor on and off, just click on the apple in the upper left corner and select Placement.
 
Top Bottom