Dark Web site set up Centos7_

Tor operating principle

Requester need: onion browser (Tor Browser) to access the web site of the dark 
response needs to put to use: Tor protocol of Hidden_service

Build step

YUM update source:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install nginx:

yum -y install nginx

Install Tor protocol:

yum -y install tor

Stop and disable the firewall:

systemctl stop firewalld
systemctl disable firewalld

Configuration Nginx:

we /etc/nginx/nginx.conf

Configuring Tor:

vi / etc / tor / torrc 
add about two lines: 
HiddenServiceDir / var / lib / Tor / hidden_service / 
HiddenServicePort 80 Server IP: 8080

View hostname:

cat /var/lib/tor/hidden_service/hostname 

Start nginx service and Tor Service:

systemctl start nginx
systemctl start tor

Configuration Validation

At this point we just need to browse the onion browser to this address can access the end of the onion to build our own site

Guess you like

Origin www.cnblogs.com/x-hong/p/12083324.html