summaryrefslogtreecommitdiffstats
path: root/new_domain.page
blob: 42da6e6d69ada49b1deb71fef9030d0cd2381427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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>
    cd /etc/openvpn/clients
    [copy and edit existing file]
    /etc/init.d/openvpn reload

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