summaryrefslogtreecommitdiffstats
path: root/roles/gateway/templates/99-gateway.conf.j2
blob: 54f81f0c429348eb4b08063dcd6e930bebc0339d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
{% if gateway_enabled %}
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
{% else %}
net.ipv4.ip_forward=0
net.ipv6.conf.all.forwarding=0
{% endif %}
{% if network_ipv6_address is defined %}
net.ipv6.conf.{{ gateway_router_interface }}.accept_ra={{ 2 if gateway_enabled else 1 }}
{% endif %}