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}"