Centos7_搭建暗网网站

Tor运行原理

请求方需要使用:洋葱浏览器(Tor Browser)来对暗网网站进行访问
响应放需要使用:Tor协议的的Hidden_service

搭建步骤

更新YUM源:

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

安装nginx:

yum -y install nginx

安装Tor协议:

yum -y install tor

停止并禁用防火墙:

systemctl stop firewalld
systemctl disable firewalld

配置Nginx:

vi /etc/nginx/nginx.conf

配置Tor:

vi /etc/tor/torrc
添加一下两行:
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 服务器IP:8080

查看hostname:

cat /var/lib/tor/hidden_service/hostname 

启动nginx服务与Tor服务:

systemctl start nginx
systemctl start tor

配置验证

此时只需要我们在洋葱浏览器中浏览这个以onion结尾的地址就可以访问到我们自己搭建的网站了

猜你喜欢

转载自www.cnblogs.com/x-hong/p/12083324.html
今日推荐