如何在debian 9 架.onion 網站(內附自訂義域名方法)
[以Apache為例tor架站]
[完成範例 (因考慮到各種因素 只有我爽才會開) ]
http://coreyohg44vgmzr2.onion/
--------------------------------------------------------------------------------------
[tor自訂義域名]
https://github.com/katmagic/Shallot
[問題列]
以下為編譯自訂義域名時可能遇到的問題
1.
In file included from src/math.c:3:0:
src/math.h:23:24: fatal error: openssl/bn.h: 沒有此一檔案或目錄
#include <openssl/bn.h>
[解法]:
2.
error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
[解法]:
apt-get install tor
apt-get install apache2
apt-get install php7.0
vim /etc/tor/torrc
以下兩行註解拿掉
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
systemctl restart tor
systemctl restart apache
cat /var/lib/tor/hidden_service/hostname >>這就是你目前的.onion網站
[完成範例 (因考慮到各種因素 只有我爽才會開) ]
http://coreyohg44vgmzr2.onion/
--------------------------------------------------------------------------------------
[tor自訂義域名]
https://github.com/katmagic/Shallot
apt-get install git
apt-get install gcc
apt-get install make
git clone https://github.com/katmagic/Shallot.git
cd Shallot
./configure && make
[問題列]
以下為編譯自訂義域名時可能遇到的問題
1.
In file included from src/math.c:3:0:
src/math.h:23:24: fatal error: openssl/bn.h: 沒有此一檔案或目錄
#include <openssl/bn.h>
[解法]:
apt-get install libssl-dev
2.
error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
[解法]:
apt-get install libssl1.0-dev
留言
張貼留言