diff options
-rw-r--r-- | new_domain.page | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/new_domain.page b/new_domain.page new file mode 100644 index 0000000..9db7da9 --- /dev/null +++ b/new_domain.page @@ -0,0 +1,50 @@ + +2600:3c03:e001:1301::/64 -> woods +2600:3c03:e001:1302::/64 -> ttt +2600:3c03:e001:1305::/64 -> haip +2600:3c03:e001:1306::/64 -> kika + +add DNS entries: + A <site>.rooter.is -> rooter.is + AAAA <site>.rooter.is -> <ipv6>::1 + CNAME *.<site>.rooter.is -> <site>.rooter.is + +setup openvpn server: + cd /etc/openvpn/easy-rsa/2.0/ + sudo su + . vars + . build-key <site> + . build-dh + cp keys/<site>.{crt,key} <ROOTER> + +setup openvpn client: + scp <remote>:<keys> /etc/openvpn + vi /etc/openvpn/client.conf + cert /etc/openvpn/<site>.crt + key /etc/openvpn/<site>.key + +setup IPv4 HTTP proxying on rooter.is: + sudo vim /etc/nginx/sites-enabled/vpns + [copy an existing section, add server names, update proxy address] + sudo /etc/init.d/nginx reload + +edit rooter lxc configurations: + vi /data/wheezy/rootfs/etc/nginx/sites-enabled/hosts + append to all <site> server_names + vi /data/pub/www/index.html + [restart nginx in wheezy vm, or just restart entire rooter later] + +edit rooter configuration: + vi /etc/config/network + option ip6addr '2600:3c03:e001:1306::1/64' + vi /etc/config/radvd + list prefix '2600:3c03:e001:1306::/64' + vi /etc/config/dhcp + option local '/kika.rooter.is/' + vi /etc/config/wireless + option ssid 'kika.rooter.is' + vi /etc/hosts + 2600:3c03:e001:13??::1 <site>.rooter.is + vi /etc/banner + # easiest to just reboot at this point + |