From e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 7 Nov 2017 16:27:49 +0100 Subject: initial commit --- roles/space_server/files/blackhole/blackhole.service | 11 +++++++++++ roles/space_server/files/blackhole/blackhole.sh | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 roles/space_server/files/blackhole/blackhole.service create mode 100755 roles/space_server/files/blackhole/blackhole.sh (limited to 'roles/space_server/files/blackhole') diff --git a/roles/space_server/files/blackhole/blackhole.service b/roles/space_server/files/blackhole/blackhole.service new file mode 100644 index 0000000..e32f642 --- /dev/null +++ b/roles/space_server/files/blackhole/blackhole.service @@ -0,0 +1,11 @@ +[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/blackhole.sh b/roles/space_server/files/blackhole/blackhole.sh new file mode 100755 index 0000000..695f0ea --- /dev/null +++ b/roles/space_server/files/blackhole/blackhole.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +ip route add unreachable 185.38.175.0/24 +ip route add unreachable 2a01:4260:1ab::/48 -- cgit v1.2.1