Setup MySQL on Ubuntu
Setup MySQL
Setup PHP on NGINX
Setup PHP Add the below software and repository > sudo apt-get install software-properties-common > sudo add-apt-repository ppa:ondrej/php > sudo apt-get update Install PHP 7.1 > sudo apt-get install php7.1 Install common PHP modules > sudo apt-get install php7.1 php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm Edit the php.ini file > sudo vi /etc/php/7.1/cli/php.ini […]
Use custom .onion address
Changing generic onion to one generated earlier Check the current .onion generated when you first setup TOR (in case you want to use it) > cd /var/lib/tor/hidden_service/ > cat hostname If you wish to use a custom address, delete (or move) the old keys > cd /var/lib/tor/hidden_service/ > rm -rf * locate the keys to […]
How to create a .onion Web Server
Setup NGINX from the APT repository > sudo apt install nginx Edit the web server config to link it to tor listening on port 80 > sudo vi /etc/nginx/sites-enabled/default Change the listen (so it only points to 127.0.0.1) and server name (points to onion address) in the config Restart nginx service > sudo service nginx […]
how to secure a .onion server
Change OS Host DNS to run through TOR > VirtualAddrNetworkIPv4 10.192.0.0/10 AutomapHostsOnResolve 1 TransPort 9040 TransListenAddress 127.0.0.1 DNSPort 53 Change Name Server > vi /etc/resolv.conf > nameserver 127.0.0.1 > sudo service network restart Secure NGINX https://geekflare.com/install-modsecurity-on-nginx/ https://www.rosehosting.com/blog/how-to-secure-your-lemp-stack/ Using Knockd for remote access https://www.techrepublic.com/article/how-to-obscure-open-ports-with-knockd/
How to create a .onion service
For a .onion server you will need to have a linux server, in this example we will use Ubuntu (u can use the same server we setup to generate the address, or use a third party such as AWS, Azure or Alibaba Cloud) Installing the Services install TOR using APT > sudo apt install tor […]
How to create a .onion address
.onion addresses are no longer short (v2) 16 generated characters but are now using 56 characters under version 3. Old .onion address – yyhws9optuwiwsns.onion New .onion address – hello23twa7k536qggxfeqm4orwohwlca3ln6f43b4splcym57msaxid.onion You can use a generator to make a more legible .onion address using the below method, but at this stage the method is only supported under […]