aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/files
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-09-26 13:24:00 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-11-10 22:31:14 +0100
commit18a6c64179d45e94466f0598a49ea34fe23fe3eb (patch)
tree96d5b8dfa8bc54ce9dca4158f9ab38fe9ce84bf0 /roles/space_server/files
parent311893c3bc2bbd18669b5c80bf884e9d25889b74 (diff)
downloadlabitat-ansible-18a6c64179d45e94466f0598a49ea34fe23fe3eb.tar.gz
labitat-ansible-18a6c64179d45e94466f0598a49ea34fe23fe3eb.tar.xz
labitat-ansible-18a6c64179d45e94466f0598a49ea34fe23fe3eb.zip
space_server: replace blackhole script
Diffstat (limited to 'roles/space_server/files')
-rw-r--r--roles/space_server/files/blackhole.service11
-rwxr-xr-xroles/space_server/files/blackhole.sh6
-rw-r--r--roles/space_server/files/network/10-lo.network8
3 files changed, 8 insertions, 17 deletions
diff --git a/roles/space_server/files/blackhole.service b/roles/space_server/files/blackhole.service
deleted file mode 100644
index e32f642..0000000
--- a/roles/space_server/files/blackhole.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Blackhole routes
-Wants=network.target
-
-[Service]
-Type=oneshot
-ExecStart=/etc/systemd/scripts/blackhole.sh
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
diff --git a/roles/space_server/files/blackhole.sh b/roles/space_server/files/blackhole.sh
deleted file mode 100755
index 56a6c10..0000000
--- a/roles/space_server/files/blackhole.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-set -e
-
-ip route add unreachable 185.38.175.0/24
-ip route add unreachable 2a01:4262:1ab::/48
diff --git a/roles/space_server/files/network/10-lo.network b/roles/space_server/files/network/10-lo.network
index 2321ce5..9b89210 100644
--- a/roles/space_server/files/network/10-lo.network
+++ b/roles/space_server/files/network/10-lo.network
@@ -4,3 +4,11 @@ Name=lo
[Network]
Address=185.38.175.0/32
Address=2a01:4262:1ab::/128
+
+[Route]
+Type=unreachable
+Destination=185.38.175.0/24
+
+[Route]
+Type=unreachable
+Destination=2a01:4262:1ab::/48