ipguard and the Takelan threat map
An agent that bans attackers on your servers and feeds Takelan threat intelligence
ipguard is a small program written in Rust. It reads your mail and SSH logs, finds brute-force and spam attacks, and blocks the address in the firewall. It then reports the address to Takelan threat intelligence. The map below shows that intelligence, live.
At a glance
- Reads mail logs, SSH logs and the journal
- Blocks attackers in nftables, with growing timeouts
- Never blocks private ranges or your allow list
- Learning mode first, enforcement when you choose
- Reports abuse to the Takelan list on its own
- Stages a ready abuse email for the network owner
- Runs as one static program, with a read-only dashboard
How it works at a glance
Your server watches itself. Takelan does the reporting. The same intelligence then protects your other servers.
ipguard never emails a provider itself. The Takelan Security engineering team handles reporting bad actors automatically for you.
Takelan threat intelligence, live
Every dot is a group of addresses in Takelan threat intelligence, on a half-degree grid. The page asks a public API for counts. It never gets an address.
Places are city level at best. Showing 2,000 of the top 2,000 groups.
The reports counter counts only what this agent sent. Our web application firewall, DNS and other Takelan signals also feed the intelligence, and they are not in that number.
Top countries
What they are listed for
- General abuse: 43,484
- Scanning: 41,521
- Open proxies: 5,953
- Brute force: 2,136
- Spam: 1,840
- Anonymising exit nodes: 1,276
Newest ipguard reports
No new reports yet. New ones show up here as they arrive.
What it does
Taken from the project's own docs. New features are off by default, so an upgrade does not change how a server behaves.
What it watches
- Mail logs, SSH logs and the system journal. It reads them as they grow.
- Failed logins for many more services, such as FTP, databases, VPNs and LDAP. This is off until you turn it on.
- Extra log files that you name in the configuration, each with its own format.
- Outgoing mail that spikes, bounces or scatters to many domains.
- Logins from a new country for a user who always logs in from home.
What it does about it
- Three failed logins in 30 minutes earn a block. The first block lasts 5 minutes. Each repeat lasts longer, up to 24 hours.
- Blocks go into nftables in one step. If the update fails, the old rules stay.
- It locks a mail account that it believes is stolen, and it tells you.
- Blocks release themselves. A short release API can let a real user back in.
- Blocks can be shared with your other servers over your private network.
How it stays safe
- It never blocks private ranges, test ranges or the addresses on your own allow list.
- Learning mode writes down what it would do and changes nothing. You promote it when you trust it.
- Every outside call fails open. If the reputation service is down, the agent keeps working.
- It reads logs and runs your firewall tool. It does not need a database server or a cloud account.
- A read-only dashboard and Prometheus metrics show what it did and why.
Machine-driven attacks
- Opt-in detectors look for attacks that run at machine speed, such as very even timing.
- Decoy accounts and decoy mailboxes catch a bot that tries names no real user has.
- A sighting on one server can block the address on the others.
- All of it is off by default and starts in alert-only mode.
What it did on our servers
Measured on our own four servers over about seven days, from 26 November to 3 December 2026.
SSH server
It saw 6,919 failed logins from 576 addresses. 428 of them were blocked. No address that failed went on to log in.
Mailbox login server
It saw 10,041 failed logins from 1,648 addresses. 124 of them were blocked. No blocked address had a good login afterward.
Reports
One server alone sent 435 reports to Takelan threat intelligence in the same week. Nobody had to send them. The agent does it on its own.
Repeat attackers
Almost every blocked address came back after its block ended. That is why block times grow with each return.
What these numbers cannot tell you
- Most mailbox attackers tried only once or twice. 1,233 of the 1,648 tried one time. A rule that counts failures cannot catch them, and the shared threat list is what helps there.
- A stolen password that works on the first try leaves no failed login. These counts cannot show that.
- We have no run without ipguard to compare with. These numbers show what it did, not how much harm it prevented.
- Our firewall rules do not count packets yet, so we cannot say how much traffic the blocks stopped.
How attackers get reported
From a failed login on your server to a report at the network owner, with nobody in between on your side.
1. It confirms the abuse
A ban rule fires, or a mail rule sees spam or a stolen account. A single failed login is never enough.
2. It reports to Takelan on its own
The agent sends the address and the reason, such as brute force, to Takelan threat intelligence. This is automatic. If the service is down, it skips the report and keeps going.
3. It joins Takelan threat intelligence
The address is added next to what our other signals find. Your other servers can pull the list and block it before it ever reaches them.
4. Takelan reports it to the network owner
The Takelan Security engineering team handles reporting bad actors automatically for you. They find the abuse contact of the network that owns the address and send the report.
- The map shows Takelan threat intelligence as a whole. It is built from many Takelan signals, such as this agent, our web application firewall and our DNS service. The reports counter on the map counts only what ipguard sent.
- The map never shows an address. The public API returns counts for each place, nothing more.
- A wrongly listed address can ask to be removed. The account API has a delist request.
- If you run ipguard on its own, it stages a ready abuse email for each confirmed mail case, addressed to the abuse contact found through RDAP. You send it with one command.
Run it yourself
Build it from source. The first run finds your logs and firewall, and starts in learning mode.
Build and look around
git clone https://git.takelan.com/takelan/takelan-server-endpoint-security.git cd takelan-server-endpoint-security/agent cargo build --release ./target/release/ipguard init ./target/release/ipguard doctor
The doctor checks your paths and permissions. Nothing is blocked while it is in learning mode.
Watch it, then turn it on
ipguard learn # see what it would block ipguard promote # start to enforce ipguard metrics # Prometheus text
Put your own addresses on the allow list first. Read the docs folder in the repository for every setting.
Questions
What is ipguard?
ipguard is an agent for Linux servers. It reads mail and SSH logs, finds brute-force logins and mail abuse, blocks the address in nftables and reports it to Takelan threat intelligence. It replaced an earlier Python tool that ran on a timer.
Does it email internet providers by itself?
The Takelan Security engineering team handles reporting bad actors automatically for you. ipguard reports each confirmed abuser to Takelan, and we take it from there. You do not have to write to anyone.
Will it block my own users?
It is built not to. It skips private ranges and your allow list, blocks expire on their own, and learning mode shows what it would block before it blocks anything. If a real address is caught, add it to the allow list.
Does the map show who attacked us?
No. It shows how many addresses in Takelan threat intelligence sit in each place, on a half-degree grid. It never shows an address or the name of a source. The places are city level at best.
Can I run it?
The source is on the Takelan git server. Build it with Cargo. The first run, ipguard init, finds your logs and firewall and starts in learning mode.
What does the live feed show?
Each new ipguard report appears as a small ripple on the map and as a line in the list, with the reason and the place. When nothing new has arrived, the list stays empty.
Request more information about ipguard
Tell us what you run and what you want to know. A person at Takelan answers by email.
