From d7e77ea7e875af499404631bac2fd5c901d38641 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 10 Apr 2023 14:56:14 +0800 Subject: [PATCH] Update buildvm.sh --- buildvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buildvm.sh b/buildvm.sh index 9f12259..75436e1 100644 --- a/buildvm.sh +++ b/buildvm.sh @@ -80,5 +80,6 @@ if [ ! -f "/etc/iptables/rules.v4" ]; then touch /etc/iptables/rules.v4 fi iptables-save > /etc/iptables/rules.v4 +service netfilter-persistent restart echo "$vm_num $user $password $core $memory $disk $sshn $web1_port $web2_port $port_first $port_last $system" >> "vm${vm_num}" cat "vm${vm_num}"