From a61e2beac55c55eb2b5303da3c5742e8dc68ac14 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Tue, 30 Apr 2019 11:40:21 +0200 Subject: [PATCH] tuto3: new script in debug host: reset-router-firewall: to reset fw filter rules --- tuto3.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tuto3.yml b/tuto3.yml index 7ec53d9..e77833b 100644 --- a/tuto3.yml +++ b/tuto3.yml @@ -324,6 +324,17 @@ files: source: pkg/nsd/sshd_config mode: "0644" + - path: /usr/bin/reset-router-firewall + contents: | + #!/bin/sh + PS=$(pgrep systemd | head -1) + nsenter -t "${PS}" -a iptables -F + nsenter -t "${PS}" -a iptables -P INPUT ACCEPT + nsenter -t "${PS}" -a iptables -P FORWARD ACCEPT + nsenter -t "${PS}" -a iptables -P OUTPUT ACCEPT + nsenter -t "${PS}" -a iptables -t nat -F + mode: "0755" + - path: /initdb/init-ttrss.sh contents: | #!/bin/sh