Skip to content

Commit d547775

Browse files
committed
Improve blackholing of AWS routes on he.net
1 parent 6ef9a5c commit d547775

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

cookbooks/networking/templates/default/network.erb

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ Destination=<%= destination %>
9191
<% if details[:metric] -%>
9292
Metric=<%= details[:metric] %>
9393
<% end -%>
94+
<% if details[:table] -%>
95+
Table=<%= details[:table] %>
96+
<% end -%>
9497
<% if details[:type] -%>
9598
Type=<%= details[:type] %>
9699
<% end -%>
@@ -107,6 +110,9 @@ Destination=<%= destination %>
107110
<% if details[:metric] -%>
108111
Metric=<%= details[:metric] %>
109112
<% end -%>
113+
<% if details[:table] -%>
114+
Table=<%= details[:table] %>
115+
<% end -%>
110116
<% if details[:type] -%>
111117
Type=<%= details[:type] %>
112118
<% end -%>

roles/equinix-ams-public.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
},
1717
:inet6 => {
1818
:prefix => "64",
19-
:gateway => "2001:470:1:fa1::1"
19+
:gateway => "2001:470:1:fa1::1",
20+
:routes => {
21+
"2600:9000::/28" => { :table => 3, :type => "unreachable" }
22+
}
2023
}
2124
},
2225
:equinix => {

roles/equinix-dub-public.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
},
1717
:inet6 => {
1818
:prefix => 64,
19-
:gateway => "2001:470:1:b3b::1"
19+
:gateway => "2001:470:1:b3b::1",
20+
:routes => {
21+
"2600:9000::/28" => { :table => 101, :type => "unreachable" }
22+
}
2023
}
2124
},
2225
:equinix => {
@@ -31,10 +34,7 @@
3134
},
3235
:inet6 => {
3336
:prefix => 64,
34-
:gateway => "2001:4d78:fe03:1c::1",
35-
:rules => [
36-
{ :to => "2600:9000::/28", :table => 203, :priority => 100 }
37-
]
37+
:gateway => "2001:4d78:fe03:1c::1"
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)