feat: 1.4.1 pagination, network probes, survival by blocker, report polish
Release / Publish tags (push) Successful in 18s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m47s
Release / Build image (amd64) (push) Successful in 21s
Release / Build image (arm64) (push) Successful in 28s
CI / Format and vet (push) Successful in 23s
CI / Tests (Linux, race detector) (push) Successful in 1m24s
CI / Dependency audit (push) Successful in 24s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 5s
Release / Publish tags (push) Successful in 18s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m47s
Release / Build image (amd64) (push) Successful in 21s
Release / Build image (arm64) (push) Successful in 28s
CI / Format and vet (push) Successful in 23s
CI / Tests (Linux, race detector) (push) Successful in 1m24s
CI / Dependency audit (push) Successful in 24s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 5s
Backend pagination with one pager for sessions, IPs, campaigns and events; network probe source (port-scan, T1046, second firewall reason port-scan); host kit logs inbound probes; urutau call on the report cover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f27d8441a9
commit
432f521ed1
40 files changed
+927
-136
No files matched your search
@@ -132,6 +132,8 @@ type Event struct {
|
||||
User string
|
||||
Jail string
|
||||
Status int
|
||||
// Port is the destination port probed (Source "probe"); Proto holds tcp/udp.
|
||||
Port uint16
|
||||
// Unban marks a fail2ban unban (Cat is Ban). Restore marks a ban replayed
|
||||
// by fail2ban after a restart: it updates the ban state but is not scored.
|
||||
Unban bool
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package core
|
||||
|
||||
// PortService is the well-known service of a probed port ("" when unknown).
|
||||
func PortService(proto string, port uint16) string {
|
||||
if proto == "udp" {
|
||||
return udpServices[port]
|
||||
}
|
||||
return tcpServices[port]
|
||||
}
|
||||
|
||||
var tcpServices = map[uint16]string{
|
||||
21: "ftp", 22: "ssh", 23: "telnet", 25: "smtp", 53: "dns", 80: "http", 110: "pop3", 111: "rpcbind", 135: "msrpc",
|
||||
139: "netbios", 143: "imap", 389: "ldap", 443: "https", 445: "smb", 465: "smtps", 587: "submission", 993: "imaps",
|
||||
995: "pop3s", 1433: "mssql", 1521: "oracle", 1723: "pptp", 2049: "nfs", 2375: "docker", 3306: "mysql", 3389: "rdp",
|
||||
5432: "postgres", 5900: "vnc", 5901: "vnc", 6379: "redis", 8080: "http-alt", 8443: "https-alt", 9200: "elasticsearch",
|
||||
11211: "memcached", 27017: "mongodb", 2323: "telnet",
|
||||
}
|
||||
|
||||
var udpServices = map[uint16]string{
|
||||
53: "dns", 69: "tftp", 123: "ntp", 161: "snmp", 389: "cldap", 500: "ike", 1900: "ssdp", 5060: "sip", 11211: "memcached",
|
||||
}
|
||||
Reference in new issue
Block a user