How can I view all the addresses that sshguard has blocked to iptables?

1 Answer 1


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
    The link you posted is dead
    – hanzo2001
    Sep 6, 2018 at 7:38
  • I've just fixed the link.
    – fazie
    Sep 9, 2018 at 16:37
  • 1
    If you want to remove one of the blocked addresses use iptables -nvL sshguard --line-numbers to get the line number and then iptables -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 put sshguard before the whole command again
    – rubo77
    May 10, 2020 at 0:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .