bzhn / ufw2tgchan Goto Github PK
View Code? Open in Web Editor NEWTelegram Bot, which reads logs from UFW and sends nTelegram Bot which reads configs from ufw and sends notifications there are blocked/audited/allowed connections. Use with sudo.
Telegram Bot, which reads logs from UFW and sends nTelegram Bot which reads configs from ufw and sends notifications there are blocked/audited/allowed connections. Use with sudo.
Report most active IPs in the list to abuseipdb.com.
Add a list with IPs subnets.
Use indentation for ip, ports and subnets addresses, so the statistics will look more pretty.
Write how many ports and IPs are not in the list of pingers
Use redis to store info about every port that has been accessed and info about how many times it happened.
Send the message like below every day:
This day there were 1845 tries to ping the server. Was accessed 548 uniq ports.
The leaderboard of the ports by time of accesses is following:
22 - 358 times
80 - 62 times
3697 - 20 times
Recorded 437 uniq ip addresses.
Leaderboard by number of pings is the following:
89.228.165.249 - 1103 times
61.137.173.36 - 359 times
123.214.175.178 - 43 times
Allow user to add tags in the config file.
The format can be following:
tags:
6379: redis
22: ssh
80: http
443: https
Then the bot will check if the pinged port is in the list and will add a tag, #ssh
e. g. if the port is 22
.
This can help search through logs.
Also you can send a tag #vital
instead of alert with exclamations marks at the start of the message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.