Skip to content

Commit

Permalink
root-http: account for NAT
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 11, 2024
1 parent 7e02495 commit c61e70e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ variables:
ansible_host: string
host_ip: string
local_ip: string
outgoing_subnets: "?list"
site_email_domain: list
default_prefix: string
advertised_prefixes: list
Expand All @@ -86,4 +87,4 @@ variables:
hr_angle: number
hr_radius: number
ethernet_device: string
is_root_ca: ?boolean
is_root_ca: "?boolean"
2 changes: 2 additions & 0 deletions host_vars/AVEIRO
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ operator_email: quevedo@av.it.pt
ansible_host: selficn.av.it.pt
host_ip: 193.136.92.155
local_ip: 10.0.12.127
outgoing_subnets:
- 193.136.80.0/20
site_email_domain:
- av.it.pt
default_prefix: /ndn/pt/it/av
Expand Down
3 changes: 3 additions & 0 deletions templates/root-http-ca/http-ca-server.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ hosts:
cert_file: /config/cert-store/site-ca.{{ data['inventory_hostname'] }}.ndncert
subnets:
- {{ data['host_ip'] }}/32
{% for subnet in data.get('outgoing_subnets', []) %}
- {{ subnet }}
{% endfor %}
{% if data.get('is_root_ca', false) %}
- 172.16.0.0/12
- 192.168.0.0/16
Expand Down

0 comments on commit c61e70e

Please sign in to comment.