How can I view all the addresses that sshguard has blocked to iptables?
1 Answer
SSH Guard have to has it's own chain in iptables
called sshguard
and you can view rules in this chain by:
iptables -nvL sshguard
More info on setup sshguard for iptables here
-
2
-
-
1If you want to remove one of the blocked addresses use
iptables -nvL sshguard --line-numbers
to get the line number and theniptables -D sshguard {line-number}
to remove the specific line. Feb 26, 2019 at 21:49 -
I just got the error
/usr/sbin/sshguard: 83: [: iptables: unexpected operator
but I found out, it was because I accidently putsshguard
before the whole command again– rubo77May 10, 2020 at 0:01