Commit Graph

54 Commits

Author SHA1 Message Date
d3m0k1d 211e019c68 fix: fix gosec and err checl
build / build (push) Failing after 3m10s
2026-01-21 22:30:27 +03:00
d3m0k1d de000ab5b6 fix: fix Nginx parser start without gourutine
build / build (push) Failing after 2m54s
2026-01-21 21:40:57 +03:00
d3m0k1d 341f49c4b4 feat: improve db logic and logger(untested)
build / build (push) Failing after 2m48s
2026-01-21 20:44:28 +03:00
d3m0k1d 7522071a03 fix: fix tests
build / build (push) Failing after 2m47s
2026-01-21 19:16:25 +03:00
d3m0k1d 4e8dc51ac8 chore: switch driver one more time ncruses -> modernc
build / build (push) Has been cancelled
2026-01-21 19:15:35 +03:00
d3m0k1d f03ec114b1 fix: fix test, new driver 2026-01-21 16:56:07 +03:00
d3m0k1d 26f4f17760 fix: golangci --fix run
build / build (push) Failing after 2m11s
2026-01-21 16:52:07 +03:00
d3m0k1d 9198f19805 chore: new driver for sqlite3 with wasm and edit goreleaser env to compiler CGO_ENABLED = 0, add empty file for postinstall script
build / build (push) Failing after 1m15s
2026-01-21 16:26:55 +03:00
d3m0k1d b6e92a2a57 feat: Add new logic for judge path with *
build / build (push) Failing after 1m38s
2026-01-21 16:07:31 +03:00
d3m0k1d 16a174cf56 Fix: fix init nftables, fix logic ban/unban command
build / build (push) Successful in 2m39s
2026-01-20 23:41:22 +03:00
d3m0k1d 4e80b5148d docs: add new docs
CD - BanForge Release / release (push) Successful in 3m23s
2026-01-20 21:14:07 +03:00
d3m0k1d 1d74c6142b feat: recode scanner logic, add sshd service, add journald support, recode test for parser, update daemon, update config template
build / build (push) Successful in 2m27s
2026-01-20 20:47:45 +03:00
d3m0k1d 46dc54f5a7 chore: add new formatter to .golangci.yml
build / build (push) Successful in 2m23s
2026-01-19 18:57:11 +03:00
d3m0k1d c954e929c8 fix: add delete ban from table after unban
CI.yml / build (push) Successful in 2m21s
2026-01-19 16:22:47 +03:00
d3m0k1d 847002129d feat: Add bantime and goroutines for unban expires ban
CI.yml / build (push) Successful in 2m24s
2026-01-19 16:03:12 +03:00
d3m0k1d 03305a06f6 tests: add test for judge logic and test for new db function
CI.yml / build (push) Successful in 2m5s
2026-01-16 03:15:33 +03:00
d3m0k1d 31184e009b feat: add new cli command for output banning ip table
CI.yml / build (push) Successful in 2m0s
2026-01-16 02:41:37 +03:00
d3m0k1d 680973df3d feat: daemon add ctx and done signal, judge fix problem with double ban ip, db add new methods
CI.yml / build (push) Successful in 1m58s
2026-01-15 22:32:03 +03:00
d3m0k1d 1603fbee35 feat: add simple setup func to blockerengine, fix init and db, version for realease v0.2.0
CD - BanForge Release / release (push) Successful in 20s
CI.yml / build (push) Successful in 2m1s
CD - BanForge Release / build (amd64, linux) (push) Successful in 3m3s
CD - BanForge Release / build (arm64, linux) (push) Successful in 2m52s
2026-01-15 19:14:44 +03:00
d3m0k1d 14c6c64989 tests: update makefile and add test for validators and writter
CI.yml / build (push) Successful in 2m20s
2026-01-15 17:27:46 +03:00
d3m0k1d 623bd87b4c tests: Add tests for storage package
CI.yml / build (push) Successful in 1m54s
2026-01-15 17:01:49 +03:00
d3m0k1d 7a7f57f5ae feat: add new command to control firewall in banfogre interface
CI.yml / build (push) Successful in 1m44s
2026-01-14 17:47:29 +03:00
d3m0k1d 36508201ad feat: Add rule control command to cli interface
CI.yml / build (push) Successful in 1m46s
2026-01-14 17:20:08 +03:00
d3m0k1d 24fe951e49 fix: judge creator, daemon logic
CI.yml / build (push) Successful in 1m45s
feat: first version for alpha test daemon on server

fix: add second template for fix bug with slice

Fix: add chek if path exists

Fix: template one more time

feat: Add file db on init command

feat: add create dit

feat: Add to init command create table to db

feat: Add new logs for debug on server

feat: Add CD, first release version

chore:fix cd

fix: change artifact ver from v4->v2

fix: ci one more time

fix: ci
2026-01-14 01:21:30 +03:00
d3m0k1d 2d699af630 feat: add base daemon cli command
CI.yml / build (push) Failing after 1m37s
2026-01-13 21:28:16 +03:00
d3m0k1d 17faaa5c27 Fix errchecl
CI.yml / build (push) Successful in 1m45s
2026-01-13 21:03:50 +03:00
d3m0k1d f0180b4bbe feat: fix db and recode judge 2026-01-13 21:03:10 +03:00
d3m0k1d 95a58dc780 feat: add new block judge
CI.yml / build (push) Successful in 1m48s
2026-01-13 19:08:11 +03:00
d3m0k1d 0421d9ef40 Fix: fix db migrations and add new row viewed
CI.yml / build (push) Successful in 1m54s
2026-01-13 18:22:15 +03:00
d3m0k1d 5362761b82 feat: add new logic for rule based bans
CI.yml / build (push) Successful in 1m51s
2026-01-13 18:02:22 +03:00
d3m0k1d 9767bb70f1 feat: recode NginxParser, add writer to db
CI.yml / build (push) Successful in 1m54s
2026-01-13 17:26:53 +03:00
d3m0k1d b63da17043 Feat: add storage block(first methods to db, migrations, models) add nginx parser with regular expression, add to deps sqlite driver
CI.yml / build (push) Successful in 1m51s
2026-01-13 16:53:46 +03:00
d3m0k1d 72018eb69e feat: Rename and set as method NftablesSetup -> Setup, fix template and types config, add create template config in system, update logic finds firewalls on system, add BurntSushi/toml as dependencies 2026-01-13 14:53:16 +03:00
d3m0k1d 9e9505e8d5 refactoring(nftables): recode logic setup table and chains
CI.yml / build (push) Successful in 44s
2026-01-13 13:58:47 +03:00
d3m0k1d 11eac77f5b Clean code after fucking AI
CI.yml / build (push) Successful in 44s
2026-01-13 13:31:44 +03:00
Ilya Chernishev 06ded14fb4 Delete internal/blocker/factory.go
CI.yml / build (push) Failing after 37s
2026-01-12 18:01:19 +03:00
Ilya Chernishev 74dd666ff6 feat: add BlockerFactory for flexible blocker instantiation 2026-01-12 17:51:37 +03:00
Ilya Chernishev e4b9993748 refactor: implement full BlockerEngine interface for UFW 2026-01-12 17:51:28 +03:00
Ilya Chernishev 9afe4ac1b9 refactor: implement full BlockerEngine interface for Nftables 2026-01-12 17:51:17 +03:00
Ilya Chernishev dc915b1e17 refactor: expand BlockerEngine interface with Setup, List, Close methods and blocker info 2026-01-12 17:50:58 +03:00
d3m0k1d 1689340223 feat: Add nftables Ban/Unban methods(no tested)
CI.yml / build (push) Successful in 47s
2026-01-12 17:03:52 +03:00
d3m0k1d 871965f437 Update path validator
CI.yml / build (push) Successful in 56s
2026-01-12 15:56:28 +03:00
d3m0k1d 7c0bdc2dfa fix(security): fix gosec G204 warnings
CI.yml / build (push) Successful in 55s
- Use separate arguments instead of string concat in firewall-cmd
- Add validateConfigPath() for iptables config path validation
- Blocks path traversal and restricts to trusted directories

Fixes G204 warnings.
2026-01-11 22:41:27 +03:00
d3m0k1d 41ff13fa66 Add firewalld and iptables ban realization, add firewall config file in config types
CI.yml / build (push) Failing after 42s
2026-01-11 22:17:57 +03:00
d3m0k1d 99b97836ff Delete Flash and IsBanning from interface
CI.yml / build (push) Successful in 48s
2026-01-11 20:40:46 +03:00
d3m0k1d 95ce6441d1 Add 2026-01-11 19:41:04 +03:00
d3m0k1d 424f5db9af Update ufw
CI.yml / build (push) Successful in 38s
2026-01-11 17:56:47 +03:00
d3m0k1d aec8a8286f Add base interface and ufw realisation
CI.yml / build (push) Successful in 36s
2026-01-11 16:27:45 +03:00
d3m0k1d 7c4f05f29d Add new test 2026-01-10 20:16:13 +03:00
d3m0k1d d4d119d53b Fix log, and first simple test 2026-01-05 17:27:46 +03:00