whitelisting ipv6 block not working

Issue #141 new
Former user created an issue

Operating system and version: Alpine Edge Linux alpine 5.10.33-0-lts #1-Alpine SMP Thu, 29 Apr 2021 08:23:26 +0000 x86_64 Linux SSHGuard version: sshguard-2.4.2 SSHGuard invocation:

BACKEND='/usr/libexec/sshg-fw-nft-sets'
FILES='/var/log/messages'

When invoking sshguard and whitelisting an unique ipv6, everything works as it should.

alpine:/etc/sshguard# env SSHGUARD_DEBUG=foo sshguard -w 2001:0db8:85a3:0000:0000:8a2e:0370:7334
sshguard[5096]: whitelist: add '2001:0db8:85a3:0000:0000:8a2e:0370:7334' as plain IPv6.
sshguard[5096]: whitelist: add plain IPv6 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
sshguard[5096]: whitelist: add IPv4 block: 127.0.0.0 with mask 8.
sshguard[5096]: whitelist: add '::1' as plain IPv6.
sshguard[5096]: whitelist: add plain IPv6 ::1.
sshguard[5096]: Now monitoring attacks.

When invoking it with an ipv6 block, it hangs and do nothing till killed.

alpine:/etc/sshguard# env SSHGUARD_DEBUG=foo sshguard -w 2001:0db8:85a3:0000:0000:8a2e:0370:7334/120
sshguard[5144]: whitelist: add IPv6 block: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 with mask 120.
^Calpine:/etc/sshguard#

Comments (0)

  1. Log in to comment