summaryrefslogtreecommitdiffstats
path: root/roles/gateway/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gateway/templates')
-rw-r--r--roles/gateway/templates/99-gateway.conf.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/gateway/templates/99-gateway.conf.j2 b/roles/gateway/templates/99-gateway.conf.j2
new file mode 100644
index 00000000..40ba5a72
--- /dev/null
+++ b/roles/gateway/templates/99-gateway.conf.j2
@@ -0,0 +1,7 @@
+{% 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 %}