--- title: "πŸ›‘οΈ Perimeter Defense & Firewall Suite" description: "AI Perimeter Guard, 9 baseline firewall rules, Geo-Firewall country filtering, and IP access control in Ring2All DMS" --- > Ring2All DMS includes an enterprise **Perimeter Defense & Firewall Suite** designed to protect centralized hardware catalogs, provisioning credentials, and firmware endpoints against malicious scraping, automated port scans, and credential harvest attacks. --- ## πŸ€– AI Perimeter Guard The **AI Perimeter Guard** monitors incoming HTTP and provisioning requests in real time, scoring connection telemetry to distinguish legitimate VoIP hardware from automated scraping bots and penetration tools: ```mermaid flowchart LR IncomingReq["Incoming HTTP / Provisioning Request"] --> ScoringEngine subgraph ScoringEngine["AI Behavioral Scoring Engine"] UserAgent["User-Agent Fingerprint
(Verifies valid phone micro-browser)"] Velocity["Request Velocity & Concurrency
(Scans for rapid MAC sequence enumeration)"] EndpointPattern["Endpoint Request Pattern
(Detects WordPress/SQLi scanning probes)"] end ScoringEngine --> Decision Decision -->|< 50 Score| Allow["Allow Request (Valid Hardware)"] Decision -->|50 - 79 Score| Challenge["Challenge (Rate-Limit & Log Probe)"] Decision -->|>= 80 Score| AutoBan["Auto-Ban (Dynamic iptables / nftables Drop)"] ``` ### Configurable Thresholds: * **Challenge Threshold**: When risk score reaches this level (default: 50), the system introduces artificial response delays (tarpitting) and logs security audit events. * **Auto-Ban Threshold**: When risk score exceeds this level (default: 80), the offending IP is instantly isolated at the Linux kernel packet filter level. * **Ban Duration**: Duration in minutes that an IP remains locked out (default: 1440 minutes / 24 hours). * **Automatic Notification**: Critical security lockout alerts sent immediately to the system security email. ![AI Perimeter Guard Configuration](/screenshots/dms/firewall/ai-perimeter-guard.png) --- ## 🧱 Baseline Firewall Rules & Services Ring2All DMS operates under a **Default Drop** security policy. Only explicitly declared and enabled services accept incoming traffic: | Service Name | Protocol | Port | System Service | Default State | Purpose | | :--- | :--- | :--- | :--- | :--- | :--- | | **HTTP Web UI & Provisioning** | TCP | `80` | `nginx` | Enabled | Web interface redirect & legacy phone boot | | **HTTPS Secure Web & ZTP** | TCP | `443` | `nginx` | Enabled | Encrypted administrative portal & phone provisioning | | **DMS REST API** | TCP | `3000` | `node` | Enabled (Local/Restricted) | Central Fastify backend & catalog endpoints | | **TFTP Firmware Server** | UDP | `69` | `tftpd-hpa` | Optional | Legacy phone boot and recovery ROM loading | | **SSH Remote Administration** | TCP | `22` | `sshd` | Enabled | Encrypted command-line administration access | | **Syslog Diagnostics** | UDP | `514` | `rsyslog` | Optional | Remote syslog receiver for phone diagnostic logs | | **PostgreSQL Database** | TCP | `5432` | `postgresql` | Localhost Only | Database engine for `ss_dms` | ![Firewall Settings & Service Master Switch](/screenshots/dms/firewall/firewall-settings.png) ![Firewall Baseline Rules Management](/screenshots/dms/firewall/firewall-rules.png) ![Firewall Network Services Inventory](/screenshots/dms/firewall/firewall-services.png) --- ## πŸ—ΊοΈ Geo-Firewall Country Isolation For carrier deployments serving specific geographical regions, the **Geo-Firewall** module provides one-touch country-level traffic isolation: * **Interactive World Map**: Visual SVG map with real-time threat highlighting and country selection. * **ISO 3166-1 Alpha-2 Codes**: Select individual countries or entire regions (e.g., North America, European Union, APAC). * **Direction & Action**: Apply `DROP` or `ACCEPT` policies to inbound or outbound connections. * **High-Performance Kernel Filtering**: Geo-IP tables compile into `ipset` and `nftables` hash tables for line-rate packet evaluation with zero CPU penalty. ![Geo-Firewall Interactive Country Filtering](/screenshots/dms/firewall/geofirewall.png) --- ## 🚫 IP Bans & Access Control Whitelisting The Access Control tab provides granular host management: 1. **Dynamic Bans**: Temporary blocks created automatically by the AI Perimeter Guard or Fail2ban after repeated failed login attempts. 2. **Permanent Bans**: Administrative blacklists for known compromised IP subnets or hostile autonomous system numbers (ASNs). 3. **Protected Whitelist**: Excludes corporate management subnets, trusted PBX cluster IPs, and authorized NOC addresses from ever being blocked or rate-limited. ![Access Control & IP Bans Management](/screenshots/dms/firewall/access-control.png) --- ## 🎯 User Roles & Key Capabilities | User Role | Operations in Security & Firewall | | :--- | :--- | | **Security Administrator** | Configures AI Perimeter Guard thresholds, manages country Geo-Firewall policies, and unbans customer IP addresses. | | **NOC Engineer** | Monitors threat event logs, identifies automated MAC scanning attacks, and whitelists new PBX cluster IP ranges. | | **Compliance Officer** | Reviews security incident reports, brute-force logs, and administrative access audit trails. |