aboutsummaryrefslogtreecommitdiff
path: root/tnet/files
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/files')
-rw-r--r--tnet/files/akili/bird-tnet-pre.conf7
-rw-r--r--tnet/files/akili/bird-tnet.conf38
-rw-r--r--tnet/files/astyanax/bird-tnet-pre.conf7
-rw-r--r--tnet/files/astyanax/bird-tnet.conf38
-rw-r--r--tnet/files/hash/bird-tnet-pre.conf7
-rw-r--r--tnet/files/hash/bird-tnet.conf56
-rw-r--r--tnet/files/knot/bird-tnet-pre.conf7
-rw-r--r--tnet/files/knot/bird-tnet.conf49
-rw-r--r--tnet/files/lhn2pi/bird-tnet-pre.conf7
-rw-r--r--tnet/files/lhn2pi/bird-tnet.conf38
-rw-r--r--tnet/files/node1/bird-tnet-pre.conf7
-rw-r--r--tnet/files/node1/bird-tnet.conf38
-rw-r--r--tnet/files/node2/bird-tnet-pre.conf7
-rw-r--r--tnet/files/node2/bird-tnet.conf38
14 files changed, 344 insertions, 0 deletions
diff --git a/tnet/files/akili/bird-tnet-pre.conf b/tnet/files/akili/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/akili/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/akili/bird-tnet.conf b/tnet/files/akili/bird-tnet.conf
new file mode 100644
index 0000000..f9b9d08
--- /dev/null
+++ b/tnet/files/akili/bird-tnet.conf
@@ -0,0 +1,38 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fdb1:4242:3538:ffff:ca85:f812:3935:5fba;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fdb1:4242:3538:ffff:59d7:cf77:8b5d:761a;
+ interface "tnet-knot";
+}
diff --git a/tnet/files/astyanax/bird-tnet-pre.conf b/tnet/files/astyanax/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/astyanax/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/astyanax/bird-tnet.conf b/tnet/files/astyanax/bird-tnet.conf
new file mode 100644
index 0000000..d697e54
--- /dev/null
+++ b/tnet/files/astyanax/bird-tnet.conf
@@ -0,0 +1,38 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:a0fd:89e4:42c6:f617:7398:abf4:b516;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fe80:6728:53fc:fc81:40b3:9beb:8336:ba56;
+ interface "tnet-knot";
+}
diff --git a/tnet/files/hash/bird-tnet-pre.conf b/tnet/files/hash/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/hash/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/hash/bird-tnet.conf b/tnet/files/hash/bird-tnet.conf
new file mode 100644
index 0000000..16ce2cc
--- /dev/null
+++ b/tnet/files/hash/bird-tnet.conf
@@ -0,0 +1,56 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_astyanax from tnet_tpl {
+ neighbor fe80:a0fd:89e4:42c6:f617:7398:abf4:b517;
+ interface "tnet-astyanax";
+
+ rr client;
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fe80:3b20:4cb0:5315:22a:c7de:a45b:8a7c;
+ interface "tnet-knot";
+
+ rr client;
+}
+
+protocol bgp tnet_node1 from tnet_tpl {
+ neighbor fe80:a026:6ec2:b356:21c5:b51:22b9:a1df;
+ interface "tnet-node1";
+
+ rr client;
+}
+
+protocol bgp tnet_node2 from tnet_tpl {
+ neighbor fe80:a7a6:c1a8:c261:232e:7d67:fc27:7c8d;
+ interface "tnet-node2";
+
+ rr client;
+}
diff --git a/tnet/files/knot/bird-tnet-pre.conf b/tnet/files/knot/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/knot/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/knot/bird-tnet.conf b/tnet/files/knot/bird-tnet.conf
new file mode 100644
index 0000000..fcecc19
--- /dev/null
+++ b/tnet/files/knot/bird-tnet.conf
@@ -0,0 +1,49 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:3b20:4cb0:5315:22a:c7de:a45b:8a7d;
+ interface "tnet-hash";
+
+ rr client;
+}
+
+protocol bgp tnet_node1 from tnet_tpl {
+ neighbor fe80:58eb:3930:1815:2a6d:8918:70c9:96f3;
+ interface "tnet-node1";
+
+ rr client;
+}
+
+protocol bgp tnet_node2 from tnet_tpl {
+ neighbor fe80:9dd8:abac:cf05:aea3:dc03:4c74:32db;
+ interface "tnet-node2";
+
+ rr client;
+}
diff --git a/tnet/files/lhn2pi/bird-tnet-pre.conf b/tnet/files/lhn2pi/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/lhn2pi/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/lhn2pi/bird-tnet.conf b/tnet/files/lhn2pi/bird-tnet.conf
new file mode 100644
index 0000000..864ad0b
--- /dev/null
+++ b/tnet/files/lhn2pi/bird-tnet.conf
@@ -0,0 +1,38 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:6195:1d43:9655:35f7:9dba:798c:26b8;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fdb1:4242:3538:ffff:374e:2c7d:319e:e526;
+ interface "tnet-knot";
+}
diff --git a/tnet/files/node1/bird-tnet-pre.conf b/tnet/files/node1/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/node1/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/node1/bird-tnet.conf b/tnet/files/node1/bird-tnet.conf
new file mode 100644
index 0000000..88bd6f8
--- /dev/null
+++ b/tnet/files/node1/bird-tnet.conf
@@ -0,0 +1,38 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:a026:6ec2:b356:21c5:b51:22b9:a1de;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fe80:58eb:3930:1815:2a6d:8918:70c9:96f2;
+ interface "tnet-knot";
+}
diff --git a/tnet/files/node2/bird-tnet-pre.conf b/tnet/files/node2/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/node2/bird-tnet-pre.conf
@@ -0,0 +1,7 @@
+define tnet = fdb1:4242:3538::/48;
+define tnet_router = fdb1:4242:3538:ffff::/64;
+
+function is_tnet() # -> bool
+{
+ return net ~ tnet && ! (net ~ tnet_router);
+}
diff --git a/tnet/files/node2/bird-tnet.conf b/tnet/files/node2/bird-tnet.conf
new file mode 100644
index 0000000..99dfc5e
--- /dev/null
+++ b/tnet/files/node2/bird-tnet.conf
@@ -0,0 +1,38 @@
+template bgp tnet_tpl {
+ local as 4242423538;
+ neighbor internal;
+
+ direct;
+
+ password "trygvis";
+
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then {
+ print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": import reject, reason=not tnet"; reject;
+ };
+ # newer bird's only
+ # import keep filtered;
+ export filter {
+ if is_tnet() then {
+ print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
+ accept;
+ }
+ print proto, ": export reject, reason=not tnet"; reject;
+ };
+ };
+}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:a7a6:c1a8:c261:232e:7d67:fc27:7c8c;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fe80:9dd8:abac:cf05:aea3:dc03:4c74:32da;
+ interface "tnet-knot";
+}