Site Posts - Embrace the Unknown
AboutLinksPostsDlGitTor

Setting up this site for free

In the process of creating this site with an abnormal way (using ddns), most people had told me to give up and go buy a domain, I refuse. And now, here am I.

First they ignore you, then they laugh at you, then they fight you, then you win. -- Mahatma Gandhi

Warning: Always believe in yourselves and never give up during the process.

Patience and diligence, like faith, remove mountains. -- Willian Penn

Site generator

Get the source, run make, the generated files will be in the html directory.

Setup httpd

Install nginx.

Setup cgit

Install cgit, fcgiwrap.

Bare repository

Do git clone --bare.

Virtual hosting

http://nginx.org/en/docs/http/request_processing.html

DNS setup

Aha, free sites

DOT.TK

Get my domain pickfire.tk here

NSD DNS server

I use nsd authoritative-only dns server in conjunction with dnsmasq.

https://www.digitalocean.com/community/tutorials/how-to-use-nsd-an-authoritative-only-dns-server-on-ubuntu-14-04

Zone file

Backup DNS

Planning to use afraid.org

Iptables

Redirect requests to NSD since MX records aren't working.

Open DNS

Using this setup, people could just spoof udp request and use the server as a bot to ddos other servers. To solve this fast, I did this myself without my father's help (slow), so I did add an iptables rule. external:53 -> internal:5353

iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p udp -m udp --dport 53 -j DNAT --to 127.0.0.1:5353

Dynamic DNS service (old setup)

I personally used changeip.com after signing up for a few dns service.

Port forwarding

I am not sure about this currently. Go ask my father.

Tor Hidden Service

Why? Firewall isn't Tor-proof, prevent censorship and support a better privacy.

Setup Tor hidden service

Edit /etc/tor/torrc

Directing subdomain to Tor

https://www.nginx.com/blog/creating-nginx-rewrite-rules/