- NGINX HNS
- NGINX ICANN
- Redirect/Mirror Automation
- Varo Clone
- MariaDB Replication (after Varo cloning)
- Email Server
- DoH Server
- HSD Scripts
- Varo Auth
Run Installation scripts as below.
Then add A record to point to your server and add the TLSA generated by the script to your DNS.
Running these scripts without arguments will start the interactive mode which will ask you for each variable.
Variables should be in this format (changing as needed)
Domain: woodburn
or for slds nathan.woodburn
Location: /var/www/woodburn
URL: https://nathan.woodburn.au
or https://nathan.woodburn.au/about
This creates a website with TLD and SLD pointing to one directory.
This installs nginx as well as setup HNS domains.
Change directory into the directory containing your website files.
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/new
sudo chmod +x new
sudo ./new <HNSDOMAIN>
Same as above without wildcard.
This uses the prexisting SSL Cert.
So add the same TLSA DNS record as the previously generated one.
Change directory into the directory containing your website files.
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/addsld
sudo chmod +x addsld
sudo ./addsld <HNSTLD> <HNSSLD>
#For example nathan.woodburn would be sudo ./addsld woodburn nathan
This will create a mirror of the ICANN site showing the Handshake domain in the url bar.
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/proxy
sudo chmod +x proxy
sudo ./proxy <HNSDOMAIN> <target url>
Example proxy *.3dprintingservice -> nathan3dprinting.au
sudo ./proxy 3dprintingservice https://nathan3dprinting.au
This will create a mirror of the ICANN site showing the Handshake domain in the url bar.
This will only proxy the provided SLD or TLD.
Eg only proxy nathan.3dprintingservice
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/proxy-sld
sudo chmod +x proxy-sld
sudo ./proxy-sld nathan.3dprintingservice https://nathan3dprinting.au
Replace proxy with redirect to do a redirect instead of a mirror (proxy).
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/redirect
sudo chmod +x redirect
sudo ./redirect <HNSDOMAIN> <target url>
Replace proxy with redirect to do a redirect instead of a mirror (proxy).
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/redirect-sld
sudo chmod +x redirect-sld
sudo ./redirect-sld nathan.3dprintingservice https://nathan3dprinting.au
This script will find the TLSA record for you.
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/tlsa
sudo chmod +x tlsa
./tlsa <HNSTLD>
First add A record to point to your server so Letsencrypt can generate you SSL cert.
Then run this script
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/newicann
sudo chmod +x newicann
sudo ./newicann <DOMAIN>
Eg proxy 3dprinting.woodburn.au -> nathan3dprinting.au
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/proxyicann
sudo chmod +x proxyicann
sudo ./proxyicann 3dprinting.woodburn.au https://nathan3dprinting.au
Eg redirect 3dprinting.woodburn.au -> nathan3dprinting.au
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/redirecticann
sudo chmod +x redirecticann
sudo ./redirecticann 3dprinting.woodburn.au https://nathan3dprinting.au
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/wp.sh
sudo chmod +x wp.sh
sudo ./wp.sh <HNSDOMAIN>
If you want to have multiple wordpress sites on the same server you can use the following command to create a new wordpress site. The port offset only affects the port used for the wordpress site. The port used for the HNS domain will always be 80 & 443.
sudo ./wp.sh <HNSDOMAIN> <PORT OFFSET>
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/git.sh
sudo chmod +x git.sh
sudo ./git.sh <HNSDOMAIN> <GIT REPO>
The csv file should be format
<HNSDOMAIN>,<TARGETURL>
Eg
3dprintingservice,https://nathan3dprinting.au
Please note you need a header row as this script will not use the first row of the csv file.
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/proxy-csv.sh
sudo chmod +x proxy-csv.sh
sudo ./proxy-csv.sh <csv file>
wget https://raw.githubusercontent.com/Nathanwoodburn/HNS-server/main/redirect-csv.sh
sudo chmod +x redirect-csv.sh
sudo ./redirect-csv.sh <csv file>