TrafficGuard is a Go-based CLI utility for network security that blocks known port scanners by configuring iptables/ip6tables and ipset. It downloads lists of malicious IP subnets, creates ipset sets, and configures firewall rules to drop traffic from these addresses. The tool includes optional logging with aggregation, automatic persistence of firewall rules across reboots via systemd services, and a comprehensive uninstall mechanism. It features intelligent integration with UFW (Uncomplicated Firewall) when present, with safeguards to prevent SSH lockout.
This is a configuration-only infrastructure repository: it extends fail2ban so that a banned IP is not simply blocked, but has its SSH traffic redirected to a local endlessh tarpit on port 2222. The repository ships two fail2ban action definitions and one jail snippet. The iptables action inserts a NAT PREROUTING REDIRECT rule for the banned source IP on port 22; the firewalld action uses firewall-cmd rich rules with forward-port to the same effect. A jail.d config attaches the default endlessh action to the sshd jail. There is no application code, test suite, build system, or packaging; the artifact is three drop-in configuration files meant to be copied into /etc/fail2ban. This makes the project extremely simple and dependency-light, relying only on fail2ban and either iptables or firewalld. The core idea is clever and portable: instead of dropping malicious traffic, the system wastes an attacker's time against a tarpit. The two firewall backends give useful coverage across common Linux distributions. As a codebase it is minimal, and the craftsmanship lies in the choice of firewall rules rather than in software architecture. The files are clean, follow fail2ban's action and jail conventions, and are directly reusable by anyone already running endlessh on port 2222.
A Debian-packaged Bash toolset that ports ParrotSec's anonsurf and pandora tools to Kali Linux. The anonsurf component makes the whole system use a Tor transparent proxy: it saves existing iptables rules, flushes them, redirects DNS to a local Tor DNSPort, forwards TCP/UDP/ICMP through Tor's TransPort on port 9040, excludes private and local networks, disables IPv6 through sysctl, and supports changing Tor identity. The pandora component is a shutdown service that drops kernel caches and scrubs RAM with sdmem from secure-delete. The repository is not a library or service; it is an installer plus a .deb source tree, with GitHub Actions that build the package and verify it installs in Kali rolling containers. The code is functional and has some good operational detail, including UID-based iptables owner rules, resolvconf vs. plain resolv.conf handling, and package maintainer scripts that swap torrc files. It is also rough around the edges: it is largely monolithic shell, has no unit tests for the iptables logic, relies on outdated actions/checkout@v2 CI actions, and the IPv6 re-enable function has a filename typo that checks /etc/sysctl.d/98-kali-anonsurf but removes /etc/sysctl.d/98-kali-anonsurf.conf, which can prevent IPv6 from being re-enabled after stop.