Host-level network security, GeoIP traffic blocking, anti-DoH/DoT domain enforcement, and process-level (PID, PPID, Port, Binary) connection monitoring for Linux and Solaris/illumos.
- Multi-Backend Kernel Firewall (
autodetection): Uses native dual-stacknftables(table inet securepc) on modern Linux (Ubuntu, Linux Mint, Debian, Kali, Fedora, RHEL, Arch, openSUSE), falls back automatically toiptables+ip6tables+ipseton legacy kernels, and supports Solarispf(solaris_ipf). - Regional & Domain Blocking: Blocks inbound and outbound IPv4/IPv6 traffic associated with China (
.cn, Beijing ASNs,aliyuncs.com), Russia (.ru,.su,.рф), Iran (.ir,.ایران), and 16 Middle East country allocations, plus custom admin blocklists. - Anti-Bypass Enforcement: Blocks encrypted DNS bypasses (
TCP/UDP 853DoT/DoQ andTCP/UDP 443to public DoH resolvers), applies Firefox & Chromium/Chrome/Brave/Edge policies (DnsOverHttpsMode=off,EncryptedClientHelloEnabled=false), and inspects outbound DNS QNAMEs, TLSClientHelloSNI, and HTTPHostheaders via fail-safeNFQUEUE. - Worldwide GeoIP & OpenSSL X.509 Attribution: Maps connections across ~264k IPv4 and ~71k IPv6 RIR intervals, inspects allowed remote TLS certificates by IP, flags Non-US traffic on login, and attributes sockets to exact local
PID,PPID, user, service, and binary. - Hardened System Layout: Installs root-owned binaries to
/usr/local/lib/securepc, configuration to/etc/securepc, RIR lists to/var/lib/securepc, and0750audit logs to/var/log/securepcwith early-bootsystemdpersistence (Before=network-pre.target).
Requires Linux (or Solaris 11.4), python3 (standard library only), openssl, and iproute2.
git clone https://github.com/CROWInnovations/SecurePC.git
cd SecurePC
sudo ./install.shsecurepc doctor # Verify firewall, daemon, NFQUEUE, policies & permissions
securepc status # View active backend, set counters & service status
securepc outbound # View recent outbound internet connections
securepc non-us # View flagged Non-US connections
securepc blocked # View blocked connection attempts
securepc lookup <TARGET> # Attribute traffic by domain, IP, program, or PID
securepc cert <IP> [PORT] # Inspect RIR GeoIP & OpenSSL X.509 certificate for an IP
securepc banner # Preview interactive login summary (alias: login-banner)
sudo securepc allow <CIDR> # Add IP/CIDR to /etc/securepc/allowlist-ips.txt
sudo securepc block <TARGET> # Block custom IP/CIDR or domain suffix
sudo securepc ack # Clear unread alert queues
sudo securepc update-lists # Refresh RIR GeoIP & ASN CIDR lists
sudo securepc reload # Reload firewall rules, policies & daemonEdit /etc/securepc/securepc.conf (and /etc/securepc/{allowlist-ips,blocklist-ips,blocklist-domains}.txt), then run sudo securepc reload:
FIREWALL_BACKEND="auto"(auto,nftables,iptables,solaris_ipf)OUTBOUND_BLOCK_ACTION="reject"(rejectordrop)ENABLE_IPV6="1"BLOCK_DOH_DOT="1"ENFORCE_BROWSER_POLICIES="1"ENABLE_NFQUEUE_DPI="1"ENABLE_OPENSSL_PROBES="1"SANDBOX_LAN_ONLY_USERS=""
./uninstall.sh --dry-run # Preview removal steps
sudo ./uninstall.sh # Interactive uninstall
sudo ./uninstall.sh --yes --purge # Remove services, rules, policies, configs & logsCopyright (C) 2026 CROW Innovations. Licensed under the GNU General Public License v3.0.
