INFO:aws_nacl.py:Searching DB for IP: 98.138.253.109
INFO:aws_nacl.py:Checking AWS block count
DEBUG:aws_nacl.py:Currently 0 IPs blocked
DEBUG:aws_nacl.py:Current blocks less then Max: 10
INFO:aws_nacl.py:Adding block to the DB
INFO:aws_nacl.py:Caculating Rule number based on DB ID
INFO:aws_nacl.py:Adding Network ACL
Traceback (most recent call last):
File "aws_nacl.py", line 273, in
main()
File "aws_nacl.py", line 219, in main
if not check_block(args.block, acl):
File "aws_nacl.py", line 31, in check_block
if ip in entry["CidrBlock"]:
KeyError: 'CidrBlock'
OS: Ubuntu 16.04 followed https://techbytesecurity.com/2017/06/fail2ban-with-aws-network-acl
python aws_nacl.py -b 98.138.253.109 -v
INFO:aws_nacl.py:Searching for current ACL ID
DEBUG:aws_nacl.py:Network ACL ID: ec2.NetworkAcl(id='')
INFO:aws_nacl.py:Configuring DB
INFO:aws_nacl.py:Checking if valid IP
INFO:aws_nacl.py:Searching DB for IP: 98.138.253.109
INFO:aws_nacl.py:Checking AWS block count
DEBUG:aws_nacl.py:Currently 0 IPs blocked
DEBUG:aws_nacl.py:Current blocks less then Max: 10
INFO:aws_nacl.py:Adding block to the DB
INFO:aws_nacl.py:Caculating Rule number based on DB ID
INFO:aws_nacl.py:Adding Network ACL
Traceback (most recent call last): File "aws_nacl.py", line 273, in
main()
File "aws_nacl.py", line 219, in main
if not check_block(args.block, acl):
File "aws_nacl.py", line 31, in check_block
if ip in entry["CidrBlock"]:
KeyError: 'CidrBlock'