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