summaryrefslogtreecommitdiff
path: root/ansible/roles/router/files
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/router/files')
-rw-r--r--ansible/roles/router/files/enable-routing.conf2
-rw-r--r--ansible/roles/router/files/setup-firewall3
2 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/router/files/enable-routing.conf b/ansible/roles/router/files/enable-routing.conf
new file mode 100644
index 0000000..c24ade9
--- /dev/null
+++ b/ansible/roles/router/files/enable-routing.conf
@@ -0,0 +1,2 @@
+net.ipv4.ip_forward=1
+net.ipv6.conf.all.forwarding=1
diff --git a/ansible/roles/router/files/setup-firewall b/ansible/roles/router/files/setup-firewall
new file mode 100644
index 0000000..77f80d8
--- /dev/null
+++ b/ansible/roles/router/files/setup-firewall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec iptables -t nat -A POSTROUTING -j MASQUERADE