Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant find bantime #1

Open
49handyman opened this issue Jul 18, 2021 · 0 comments
Open

Cant find bantime #1

49handyman opened this issue Jul 18, 2021 · 0 comments

Comments

@49handyman
Copy link

Looks like f2b-exporter cant find the bantime. Any help to point me in right direction would be great. Im using a python exporter but way too slow.

error:

[sudo] password for doug:
2021/07/18 00:32:15 Starting exporter
2021/07/18 00:32:15 no such column: "bantime"

here is the sqlite3 command line output for ban table.

CREATE INDEX bans_jail_timeofban_ip ON bans(jail, timeofban);```

sample ban table data:
```ufw-aggressive  188.166.253.  1626585976  {"matches": [["", "Jul 18 00:26:16", " Crypto1 kernel: [395485.257306] [UFW BLOCK] IN=eno1 OUT= MAC=84:2b:2b:b5:bf:39:08:9e:08:e4:8b:de:08:00 SRC=188.166.253.136 DST=192.168.2.241 LEN=40 TOS=0x00 PREC=0x00 TTL=239 ID=9669 PROTO=TCP SPT=61953 DPT=50001 WINDOW=1024 RES=0x00 SYN URGP=0 "]], "failures": 1, "ip4": "188.166.253
ufw-aggressive  88.80.186.13  1626586037  {"matches": [["", "Jul 18 00:27:17", " Crypto1 kernel: [395547.009245] [UFW BLOCK] IN=eno1 OUT= MAC=84:2b:2b:b5:bf:39:08:9e:08:e4:8b:de:08:00 SRC=88.80.186.137 DST=192.168.2.241 LEN=56 TOS=0x00 PREC=0x00 TTL=244 ID=47674 DF PROTO=UDP SPT=50666 DPT=53 LEN=36 "]], "failures": 1, "ip4": "88.80.186.137"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant