gluon-mesh-babel: utilize clat_range for babel config

This commit is contained in:
Christof Schulze 2020-01-23 00:30:05 +01:00
parent 277d1bf8e1
commit 78f09e9f73
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,8 @@
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')
need_string_match(in_domain({'node_client_prefix6'}), '^[%x:]+/64$')
need_string_match(in_domain({'clat_range'}), '^[%x:]+/48$', false)
need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false)

View File

@ -17,6 +17,10 @@ file:write("redistribute ip " .. site.prefix6() .. " eq 128 allow\n")
file:write("redistribute ip " .. site.node_client_prefix6() .. " eq 128 allow\n")
file:write("redistribute ip " .. site.node_prefix6() .. " eq 128 allow\n")
file:write("redistribute ip 2000::/3 allow\n")
if site.clat_range() ~= nil and site.clat_range() ~= '' then
file:write("redistribute ip " .. site.clat_range() .. " eq 96 allow\n")
end
file:write("redistribute local if br-wan deny\n")
file:write("redistribute local ip 0.0.0.0/0 deny\n")
file:write("install pref-src " .. nodeip .."\n")