Skip to content

Commit 3086def

Browse files
committed
show: RK:NO_CS for IPv4 /32
otherwise it'll never traverse NAT functions
1 parent b0cce6c commit 3086def

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

itamae/roles/show/default.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
include_cookbook 'nftables'
1515
include_cookbook 'bird'
1616

17+
package 'iperf3'
18+
package 'tmux'
19+
1720
file '/etc/rk-show.json' do
1821
content "#{JSON.pretty_generate(node.fetch(:show))}\n"
1922
owner 'root'

itamae/roles/show/templates/etc/bird/bird.conf.d/show.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ protocol static static_server4 {
100100
table server4;
101101
};
102102

103-
route <%= node.dig(:show, :addresses).fetch(:server4) %>/32 blackhole;
103+
route <%= node.dig(:show, :addresses).fetch(:server4) %>/32 blackhole {
104+
bgp_community.add((65000, 6030));
105+
};
104106
}
105107
protocol static static_server6 {
106108
ipv6 {

0 commit comments

Comments
 (0)