From b02a04ccbf48fe3e942dedb6e089171d24546c64 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 26 Apr 2022 17:24:31 +0200 Subject: [PATCH] Enable forwarding in all the routers --- gen_disks.sh | 1 + gen_machines.py | 1 + templates/routing.conf | 1 + 3 files changed, 3 insertions(+) create mode 100644 templates/routing.conf diff --git a/gen_disks.sh b/gen_disks.sh index 8fd6659..8834d4d 100755 --- a/gen_disks.sh +++ b/gen_disks.sh @@ -24,6 +24,7 @@ for dir in output/*/; do hosts /etc/hosts hostname /etc/hostname mactab /etc/mactab + routing.conf /etc/sysctl.d/routing.conf END umount "$mount" losetup -d "$loop" diff --git a/gen_machines.py b/gen_machines.py index 032d9f1..a662b67 100755 --- a/gen_machines.py +++ b/gen_machines.py @@ -30,6 +30,7 @@ class Computer: 'hosts', 'hostname', 'mactab', + 'routing.conf', ] context = {'c': self} diff --git a/templates/routing.conf b/templates/routing.conf new file mode 100644 index 0000000..dbf552b --- /dev/null +++ b/templates/routing.conf @@ -0,0 +1 @@ +net.ipv4.conf.all.forwarding=1