summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-12-04 14:44:23 +0100
committerbnewbold <bnewbold@robocracy.org>2012-12-04 14:44:23 +0100
commit06156d0523a9ced304ded9a9f1552c306e10bcbd (patch)
tree56b2a298b61d639c895c009efe3adf30191ee39d
parentcd485c3b0f5f0e116b947527977a089ab56f5715 (diff)
downloadrooter_wiki-06156d0523a9ced304ded9a9f1552c306e10bcbd.tar.gz
rooter_wiki-06156d0523a9ced304ded9a9f1552c306e10bcbd.zip
add change domain instructions
-rw-r--r--new_domain.page50
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
+