Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyliutw/tor_hidden_service_setup
Create TOR hidden service with apache / mac sierra 10.12.2
https://github.com/zyliutw/tor_hidden_service_setup
mac-osx setup sierra tor
Last synced: about 1 month ago
JSON representation
Create TOR hidden service with apache / mac sierra 10.12.2
- Host: GitHub
- URL: https://github.com/zyliutw/tor_hidden_service_setup
- Owner: zyliutw
- Created: 2017-02-20T13:34:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T13:49:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-25T05:50:00.060Z (3 months ago)
- Topics: mac-osx, setup, sierra, tor
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tor-Hidden-Service-Setup
### Environment
OS : MacOSX Sierra 10.12.2
Apache : 2.4.23### Step
#### Install MacPort
```
Download the MacPort.pkg
From https://github.com/macports/macports-base/releases/download/v2.4.0/MacPorts-2.4.0-10.12-Sierra.pkg
Install , it may install under /opt/local/bin/
```#### Install tor
```
sudo port install tor
```#### Make a directory, use to store sk, onion url
```
cd /Users/{Your-home-name}
mkdir hidden-service
sudo chmod 700 hidden-service # You can't give the folder too permissive
```
#### Modify the torrcAfter install tor
/usr/local/ect/tor/ has torrc.sample
Modify it!
```
sudo cp torrc.sample torrc
sudo vim torrc
```
Insert the following to torrc
```
SocksPort 9050 # You have to open this port!
SockListenAddress 127.0.0.1
HiddenServiceDir /Users/{Your-home-name}/hidden-service/ # Absolute path
HiddenServicePort 80 127.0.0.1:80 # first port : for tor, second port : for your server
```
#### Modify the httpd
```
sudo vim /etc/apache2/httpd.conf
ServerName {your onion address}
# ex : jn4nshpywumoda7s.onion:80
```#### Open the port( if necessary)
```
sudo vim /etc/pf.conf
Insert following
pass in proto tcp from any to any port 9050 # open port 9050
sudo pfctl -vnf /ect/pf.conf
```
#### Run tor
```
Use console, run tor
It will generate the private key file and onion url file
in the hidden-service/
```
#### Run Apache
```
sudo apachectl start
```#### Open tor browser
```
Connect to the onion url in the hidden-service/hostname/
```### Reference
1. https://www.torproject.org/docs/tor-hidden-service.html.en
2. https://github.com/whackashoe/tor-hidden-service-setup/blob/master/setting-up-webserver.md
3. https://rolfje.wordpress.com/2014/05/10/open-a-port-in-osx-mavericks-firewall/