So I propose to change the two lines to:
iptables -n -L INPUT | grep -q sshguard || iptables -w -I INPUT -j sshguard 2> /dev/null ip6tables -n -L INPUT | grep -q sshguard || ip6tables -w -I INPUT -j sshguard 2> /dev/null
So I propose to change the two lines to:
iptables -n -L INPUT | grep -q sshguard || iptables -w -I INPUT -j sshguard 2> /dev/null ip6tables -n -L INPUT | grep -q sshguard || ip6tables -w -I INPUT -j sshguard 2> /dev/null