DarkModus
›
Discussion
›
Technology
›
[TUTORIAL] How to setup a .onion (tor) website and protect youself from breaches
sudo apt-get install tor
sudo pacman -S tor
yum install epel-release
yum install tor
edit /etc/tor/torrc (you can do this by typing nano /etc/torrc)and uncomment
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
sometimes this is commented so uncomment it and restart tor using systemctl restart tor
cat /var/lib/tor/hidden_service/hostname
edit /etc/apache2/sites-available/000-default.conf (nano /etc/apache2/sites-available/000-default.conf)
<virtualhost 127.0.0.1:80>
ServerName bvibfr576o4zpdr6.onion
ServerAdmin [email protected]
DocumentRoot /var/www/hidden_service
</virtualhost>
cd /var/www
sudo mkdir hidden_service
nano /etc/apache2/apache2.conf
ServerSignature Off
ServerTokens Prod
sudo a2dismod status
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/hidden_service
server_name bvibfr576o4zpdr6.onion;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/hidden_service
server_name bvibfr576o4zpdr6.onion;
}
sudo pacman -S tor
(7 months ago)Sweets Wrote: This is completely allowed. There's nothing inherently related to hacking at all, so it's not against MyBB terms of usage. Which honestly we may just toss out the window anyways. In any case, I'm glad someone posted a tutorial. I'd also like to add that, in addition to what's been stated here, you may also supplement Apache with NGINX. All of the same steps still apply, save for #4.
With regards to #4, should you so choose to use NGINX, your configuration will look as such
Code:server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/hidden_service
server_name bvibfr576o4zpdr6.onion;
}
This configuration will likely be located in /etc/nginx/sites-available, with the same name symlinked to the previous path at /etc/nginx/sites-enabled. I'm not entirely certain of how one may disable localhost related information for an NGINX backend, though, since I've never needed to. That being said, it would be wisest to look into that, for users that are using NGINX.
Also, another addition, Arch Linux users can install tor with
Code:sudo pacman -S tor