-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
470 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[NetDev] | ||
Name=t_yume | ||
Kind=ip6tnl | ||
|
||
[Tunnel] | ||
Local=240b:250:8020:d00::17 | ||
Remote=2001:f74:9800:400::eb96 | ||
Mode=any | ||
EncapsulationLimit=none |
11 changes: 11 additions & 0 deletions
11
itamae/hosts/ao/files/etc/systemd/network/32-t_yume.network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Match] | ||
Name=t_yume | ||
|
||
[Network] | ||
DHCP=off | ||
IPv6AcceptRA=no | ||
IPForward=yes | ||
|
||
[Address] | ||
Address=2001:0df0:8500:0022::120:13/128 | ||
Peer=2001:0df0:8500:0022::120:12/128 |
14 changes: 14 additions & 0 deletions
14
itamae/hosts/ao/templates/etc/bird/bird.conf.d/static.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
protocol static static6 { | ||
route 240b:250:8020:d00::/64 via 240b:250:8020:d00::1; | ||
igp table t6_igp; | ||
ipv6 { | ||
table t6_bgp; | ||
import filter | ||
{ | ||
bgp_community.add((AS_SELF, C_CTL_ASSUME_BGP)); | ||
accept; | ||
}; | ||
}; | ||
} | ||
*/ |
71 changes: 71 additions & 0 deletions
71
itamae/hosts/ao/templates/etc/bird/bird.conf.d/t_yume.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
protocol static static_yume { | ||
route 2001:f74:9800:400::eb96/128 via fe80::212:e2ff:fe70:b200%enp11s0f0; | ||
igp table t6_igp; | ||
ipv6 { | ||
table t6_bgp; | ||
import filter | ||
{ | ||
bgp_community.add((AS_SELF, C_CTL_ASSUME_BGP)); | ||
accept; | ||
}; | ||
}; | ||
} | ||
|
||
protocol bgp bgp_t_yume | ||
{ | ||
local 2001:df0:8500:22::120:13 as 64777; | ||
neighbor 2001:df0:8500:22::120:12 as 59128; | ||
|
||
password "<%= node[:secrets].fetch(:bgp_secret_yume) %>"; | ||
|
||
hold time 30; | ||
startup hold time 90; | ||
keepalive time 6; | ||
connect retry time 5; | ||
connect delay time 5; | ||
error wait time 30, 30; | ||
error forget time 30; | ||
default bgp_local_pref 200; | ||
|
||
ipv4 { | ||
table t4_bgp; | ||
igp table t4_igp; | ||
preference 200; | ||
next hop address 2001:df0:8500:22::120:13; | ||
extended next hop on; | ||
|
||
import filter | ||
{ | ||
accept; | ||
filter_accept_default_route(); | ||
reject; | ||
}; | ||
|
||
export filter | ||
{ | ||
if ( net ~ [ 192.50.220.191/32 ]) then accept; | ||
reject; | ||
}; | ||
}; | ||
|
||
|
||
ipv6 { | ||
table t6_bgp; | ||
igp table t6_igp; | ||
preference 200; | ||
next hop self on; | ||
|
||
import filter | ||
{ | ||
accept; | ||
filter_accept_default_route(); | ||
reject; | ||
}; | ||
|
||
export filter | ||
{ | ||
if ( net ~ [ 2001:0df0:8500:a717::/64+ ]) then accept; | ||
reject; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package 'bird2' | ||
|
||
directory '/etc/bird' do | ||
owner 'root' | ||
group 'root' | ||
mode '0755' | ||
end | ||
|
||
directory '/etc/bird/bird.conf.d' do | ||
owner 'root' | ||
group 'root' | ||
mode '0755' | ||
end | ||
|
||
template '/etc/bird/bird.conf' do | ||
owner 'root' | ||
group 'root' | ||
mode '644' | ||
notifies :restart, 'service[bird]' | ||
end |
Oops, something went wrong.