11

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

17

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

4
  • 2
    The link you posted is dead
    – hanzo2001
    Sep 6 '18 at 7:38
  • I've just fixed the link.
    – fazie
    Sep 9 '18 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 '19 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 '20 at 0:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.