diff --git a/nix/lib/config/legacy.nix b/nix/lib/config/legacy.nix index 7cf7884..8ee518c 100644 --- a/nix/lib/config/legacy.nix +++ b/nix/lib/config/legacy.nix @@ -112,7 +112,9 @@ in freifunk.ospf.upstreamInstance = 6; upstream3.ospf.upstreamInstance = 7; upstream4.ospf.upstreamInstance = 8; - c3d2-gw.ospf.allowedUpstreams = [ "upstream4" "upstream1" "upstream3" "upstream2" "anon1" "freifunk" ]; + c3d2-gw1.ospf.allowedUpstreams = [ "upstream3" "upstream4" "upstream1" "upstream2" "anon1" "freifunk" ]; + c3d2-gw2.ospf.allowedUpstreams = [ "upstream1" "upstream3" "upstream4" "upstream2" "anon1" "freifunk" ]; + c3d2-gw3.ospf.allowedUpstreams = [ "upstream4" "upstream3" "upstream1" "upstream2" "anon1" "freifunk" ]; serv-gw.ospf.allowedUpstreams = [ "upstream4" "upstream1" "upstream3" "upstream2" "anon1" "freifunk" ]; cls-gw.ospf.allowedUpstreams = [ "upstream4" "upstream1" "upstream3" "upstream2" "anon1" "freifunk" ]; mgmt-gw.ospf.allowedUpstreams = [ "upstream4" "upstream1" "upstream3" "upstream2" "anon1" "freifunk" ]; diff --git a/salt-pillar/bird/radv.sls b/salt-pillar/bird/radv.sls index 233f434..b21bd02 100644 --- a/salt-pillar/bird/radv.sls +++ b/salt-pillar/bird/radv.sls @@ -17,7 +17,7 @@ radv: - dnscache.serv dnssl: - cluster.zentralwerk.org - c3d2-gw: + c3d2-gw1: c3d2: rdnss: - dnscache.serv diff --git a/salt-pillar/hosts/init.sls b/salt-pillar/hosts/init.sls index 0ddfb9a..d0ddb58 100644 --- a/salt-pillar/hosts/init.sls +++ b/salt-pillar/hosts/init.sls @@ -109,7 +109,7 @@ hosts-inet: priv2-gw: 172.20.72.5 upstream1: 172.20.72.6 anon1: 172.20.72.7 - c3d2-gw: 172.20.72.8 + c3d2-gw1: 172.20.72.8 c3d2-anon: 172.20.72.9 upstream2: 172.20.72.10 upstream3: 172.20.72.11 @@ -157,6 +157,8 @@ hosts-inet: priv39-gw: 172.20.72.60 priv40-gw: 172.20.72.61 yggdrasil: 172.20.72.62 + c3d2-gw2: 172.20.72.63 + c3d2-gw3: 172.20.72.64 pub: pub-gw: 172.20.78.1 @@ -301,7 +303,9 @@ hosts-inet: c3d2: c3d2-anon: 172.22.99.1 - c3d2-gw: 172.22.99.4 + c3d2-gw1: 172.22.99.2 + c3d2-gw2: 172.22.99.3 + c3d2-gw3: 172.22.99.4 bgp: 172.22.99.250 hosts-inet-extra: @@ -391,7 +395,9 @@ hosts-inet6: anon1: fd23:42:c3d2:581::9:1 serv-gw: fd23:42:c3d2:581::8:1 pub-gw: fd23:42:c3d2:581::8:2 - c3d2-gw: fd23:42:c3d2:581::c3d2:1 + c3d2-gw1: fd23:42:c3d2:581::c3d2:1 + c3d2-gw2: fd23:42:c3d2:581::c3d2:2 + c3d2-gw3: fd23:42:c3d2:581::c3d2:3 c3d2-anon: fd23:42:c3d2:581::c3d2:a bgp: fd23:42:c3d2:581::c3d2:b mgmt-gw: fd23:42:c3d2:581::8:3 @@ -545,7 +551,9 @@ hosts-inet6: c3d2: c3d2-anon: fd23:42:c3d2:523::c3d2:1 - c3d2-gw: fd23:42:c3d2:523::c3d2:4 + c3d2-gw1: fd23:42:c3d2:523::c3d2:2 + c3d2-gw2: fd23:42:c3d2:523::c3d2:3 + c3d2-gw3: fd23:42:c3d2:523::c3d2:4 bgp: fd23:42:c3d2:523::c3d2:ff0b up1: @@ -555,7 +563,9 @@ hosts-inet6: anon1: 2a02:8106:208:5281::9:1 serv-gw: 2a02:8106:208:5281::8:1 - c3d2-gw: 2a02:8106:208:5281::c3d2:1 + c3d2-gw1: 2a02:8106:208:5281::c3d2:1 + c3d2-gw2: 2a02:8106:208:5281::c3d2:2 + c3d2-gw3: 2a02:8106:208:5281::c3d2:3 c3d2-anon: 2a02:8106:208:5281::c3d2:a bgp: 2a02:8106:208:5281::c3d2:b mgmt-gw: 2a02:8106:208:5281::8:3 @@ -583,7 +593,9 @@ hosts-inet6: c3d2: c3d2-anon: 2a02:8106:208:5201::c3d2:1 - c3d2-gw: 2a02:8106:208:5201::c3d2:4 + c3d2-gw1: 2a02:8106:208:5201::c3d2:2 + c3d2-gw2: 2a02:8106:208:5201::c3d2:3 + c3d2-gw3: 2a02:8106:208:5201::c3d2:4 bgp: 2a02:8106:208:5201::c3d2:ff0b up2: diff --git a/salt-pillar/lxc-containers/server1.sls b/salt-pillar/lxc-containers/server1.sls index d53bf89..fc6b588 100644 --- a/salt-pillar/lxc-containers/server1.sls +++ b/salt-pillar/lxc-containers/server1.sls @@ -518,27 +518,41 @@ containers: type: veth hwaddr: 0A:14:48:01:14:00 - c3d2-gw: + c3d2-gw1: interfaces: core: type: veth - # gw: upstream1 - # gw6: upstream1 hwaddr: 0A:14:48:01:21:00 c3d2: type: veth hwaddr: 0A:14:48:01:21:01 + c3d2-gw2: + interfaces: + core: + type: veth + hwaddr: 0A:14:48:01:21:02 + c3d2: + type: veth + hwaddr: 0A:14:48:01:21:03 + + c3d2-gw3: + interfaces: + core: + type: veth + hwaddr: 0A:14:48:01:21:04 + c3d2: + type: veth + hwaddr: 0A:14:48:01:21:05 + c3d2-anon: interfaces: core: type: veth - # gw: anon1 - # gw6: anon1 - hwaddr: 0A:14:48:01:07:01 + hwaddr: 0A:14:48:01:07:04 c3d2: type: veth - hwaddr: 0A:14:48:01:07:00 + hwaddr: 0A:14:48:01:07:05 bgp: interfaces: diff --git a/salt-pillar/top.sls b/salt-pillar/top.sls index a4608d3..e4df3d7 100644 --- a/salt-pillar/top.sls +++ b/salt-pillar/top.sls @@ -28,9 +28,9 @@ base: - bird.ospf 'pub-gw': - collectd.gw - 'c3d2-gw or c3d2-anon or mgmt-gw or cls-gw': + 'c3d2-gw* or c3d2-anon or mgmt-gw or cls-gw': - bird.ospf - 'c3d2-gw or cls-gw': + 'c3d2-gw1 or cls-gw': - bird.radv 'bgp': - bird.ospf diff --git a/salt/top.sls b/salt/top.sls index a27b6ff..f58be33 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -19,7 +19,7 @@ base: 'pub-gw': - dhcp - collectd - 'pub-gw or serv-gw or cls-gw or c3d2-gw or c3d2-anon or mgmt-gw': + 'pub-gw or serv-gw or cls-gw or c3d2-gw* or c3d2-anon or mgmt-gw': - no-ssh - forwarding - bird