From 5ae5c844163be987711f67419c5395a252be06ba Mon Sep 17 00:00:00 2001 From: Samson-W Date: Mon, 13 Apr 2020 17:02:57 +0800 Subject: [PATCH] Add save iptables rules commands to harbianaudit.sh --- bin/harbianaudit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/harbianaudit.sh b/bin/harbianaudit.sh index a093294..389746f 100755 --- a/bin/harbianaudit.sh +++ b/bin/harbianaudit.sh @@ -18,3 +18,6 @@ sed -i 's/^status=.*/status=enabled/' /opt/harbianaudit/etc/conf.d/8.4.2_aide_cr NETINTERFACE=$(ip link | grep -v "link/.*" | grep -v -w "lo" | awk -F: '{print $2}' | tr "\n" " ") /opt/harbianaudit/bin/etc.iptables.rules.v4.sh $NETINTERFACE /opt/harbianaudit/bin/etc.iptables.rules.v6.sh $NETINTERFACE +/sbin/iptables-save -f /etc/iptables/rules.v4 +/sbin/ip6tables-save -f /etc/iptables/rules.v6 +