diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index e2439b4..435e819 100644 --- a/bird/bird.conf.tmpl +++ b/bird/bird.conf.tmpl @@ -40,7 +40,6 @@ roa4 table r4; # ROA RPKI # expire keep ${bgp_rpki_expire:-172800}; # # Enable SSH transport, disable TCP transport (insecure) -# port 22; # transport ssh { # remote public key "${bgp_rpki_known_hosts:-/etc/bird/rpki/known_hosts}"; # user "lixonet"; diff --git a/build.sh b/build.sh index 807462b..8173712 100644 --- a/build.sh +++ b/build.sh @@ -27,4 +27,11 @@ find bird -type f | xargs -I '{}' cp --verbose {} /etc/{} find /etc/bird/ -type f -name '*.tmpl' -exec sh -c 'sigil -f {} -p $(cat /etc/lixonet/lixonet.conf | tr "\\n" " ") > "$(dirname {})/$(basename {} .tmpl)"' {} \; find /etc/bird/ -type f -name '*.tmpl' | xargs -I '{}' rm -f {} +# GoRTR +# Remove existing configuration +rm -v -rf /etc/gortr/* +# Copy all gortr default files to /etc/(gortr) +find gortr -type d | xargs -I '{}' mkdir --verbose -p /etc/{} +find gortr -type f | xargs -I '{}' cp --verbose {} /etc/{} + docker-compose up -d --build diff --git a/gortr/roas.json b/gortr/roas.json new file mode 100644 index 0000000..c6018c4 --- /dev/null +++ b/gortr/roas.json @@ -0,0 +1,58 @@ +{ + "roas": [ + { + "comment": "denco.mane.lixo", + "asn": "AS4206969008", + "prefix": "172.31.8.0/21", + "maxLength": 21 + }, + { + "comment": "lkwco.mane.lixo", + "asn": "AS4206969016", + "prefix": "172.31.16.0/21", + "maxLength": 21 + }, + { + "comment": "inwwv.nurd.lixo", + "asn": "AS4206969200", + "prefix": "172.31.200.0/21", + "maxLength": 21 + }, + { + "comment": "manva.nurd.lixo", + "asn": "AS4206969208", + "prefix": "172.31.208.0/22", + "maxLength": 22 + }, + { + "comment": "daltx.nurd.lixo", + "asn": "AS4206969212", + "prefix": "172.31.212.0/22", + "maxLength": 22 + }, + { + "comment": "phxaz.nurd.lixo", + "asn": "AS4206969216", + "prefix": "172.31.216.0/21", + "maxLength": 21 + }, + { + "comment": "anycast denco.mane.lixo", + "asn": "AS4206969008", + "prefix": "172.31.254.0/24", + "maxLength": 24 + }, + { + "comment": "anycast manva.nurd.lixo", + "asn": "AS4206969208", + "prefix": "172.31.254.0/24", + "maxLength": 24 + }, + { + "comment": "anycast phxaz.nurd.lixo", + "asn": "AS4206969216", + "prefix": "172.31.254.0/24", + "maxLength": 24 + } + ] +}