From 99ce768a7d6fe9e828caf932554c4e095c1d00b2 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 11 Jan 2019 07:45:58 +0100 Subject: lxc-host: Moving to its own playbook. Adding arius-test1. Only configuring ipv4/6 forwarding for the created interface. Adding configurable ipv6 address too. wireguard: Tagging old nets with never. nftables: Trying out portforwarding on arius. --- ansible/group_vars/all/host_database.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'ansible/group_vars/all/host_database.yml') diff --git a/ansible/group_vars/all/host_database.yml b/ansible/group_vars/all/host_database.yml index 4342f23..c7bce07 100644 --- a/ansible/group_vars/all/host_database.yml +++ b/ansible/group_vars/all/host_database.yml @@ -1,13 +1,15 @@ -# Generate hwaddr with -# echo $(od -vN 6 -An -tx1 /dev/urandom) |tr ' ' : # Generate ipv6 with # echo $(od -vN 8 -An -tx2 /dev/urandom) |tr ' ' : +# Generate hwaddr with +# echo $(od -vN 6 -An -tx1 /dev/urandom) |tr ' ' : # Note that the last bit of the first byte can't be set! Keep that byte even! # After you boot the container you'll get the IPv6 address ipv6_networks: conflatorio: prefix: fd56:1ae9:097d:3ddd + arius: + prefix: f338:7b65:2445:ef9a host_database: birgitte: @@ -87,3 +89,26 @@ host_database: ipv6: address: "{{ ipv6_networks.conflatorio.prefix }}:5375:e67b:7878:310d" netmask: 64 + + arius: + interfaces: + lxc0-int: + ipv4: + address: 10.1.1.1 + netmask: 24 + ipv6: + address: "{{ ipv6_networks.arius.prefix }}:954b:90fc:c42d:1aef" + netmask: 64 + + arius-test1: + interfaces: + veth0: + hwaddr: 42:bc:1e:d3:bb:c5 + ipv4: + address: 10.1.1.2 + netmask: 24 + gateway: 10.1.1.1 + ipv6: + address: "{{ ipv6_networks.arius.prefix }}:2d35:abc6:97c1:cbf3" + netmask: 64 + gateway: auto -- cgit v1.2.3