Perimeter Firewall Suite & AI Guard
📖 Introduction
Section titled “📖 Introduction”The Perimeter Firewall Suite provides defensive boundary security for Ring2All infrastructure hosts. Directly controlling Linux netfilter (iptables and nftables), the firewall enforces strict default-deny policies, provides a service-aware port catalog, enables geographic IP filtering with an interactive world map, and deploys an autonomous AI Perimeter Guard that detects and neutralizes distributed volumetric floods and credential stuffing attacks in real time.



🎯 User Roles & Key Capabilities
Section titled “🎯 User Roles & Key Capabilities”| Role | Primary Use Case | Key Capabilities |
|---|---|---|
| Security Engineers (SecOps) | Perimeter hardening and threat boundary enforcement. | Set default DROP policies, configure IP whitelists/blacklists, and monitor active IP bans. |
| Telecom Network Engineers | SIP and WebRTC media port access control. | Open carrier signaling subnets, allow RTP UDP port ranges, and restrict administrative ports to VPN ranges. |
| Compliance & Risk Officers | International regulatory and fraud prevention. | Restrict ingress traffic by country via the interactive Geo-Firewall map, blocking high-fraud territories. |
🛡️ Firewall Architectural Layers
Section titled “🛡️ Firewall Architectural Layers”graph TD
Ingress[Inbound Traffic] --> Geo[🌍 Geo-Firewall: Country IP Blocks]
Geo --> Guard[🤖 AI Perimeter Guard: Anomaly & Flood Interception]
Guard --> Base[⚙️ Baseline Rules: Loopback, Established, ICMP Ping]
Base --> Svc[📋 Service Catalog: Allowed TCP/UDP Services]
Svc --> Custom[📝 Custom Firewall Rules]
Custom --> Drop[⛔ Default Policy: DROP / REJECT]
1. Firewall Settings & Baseline Policy
Section titled “1. Firewall Settings & Baseline Policy”Enforces foundational security hygiene:
- Default Policy: Strict
DROPon all unmatched inbound traffic. - Stateful Inspection: Permits
ESTABLISHED,RELATEDconnection packets. - ICMP Ping Control: Granular rate limiting on ICMP echo requests to avoid ping-of-death while maintaining SLA monitoring reachability.
- Anti-Spoofing & Syn-Flood Protection: Enables kernel-level
rp_filterand TCP syncookies.
2. Access Control & IP Ban Management
Section titled “2. Access Control & IP Ban Management”- IP Whitelists: Trusted corporate subnets and office static IPs permanently exempt from rate limiting or blocking.
- IP Blacklists: Manually enforced permanent bans on known malicious botnets and hostiles.
- Active Bans List: Dynamically populated by fail2ban and AI Perimeter Guard, showing banned IP, reason, ban timestamp, and automatic unban countdown.
3. Canonical Service Catalog (11 Managed Services)
Section titled “3. Canonical Service Catalog (11 Managed Services)”Pre-defined service templates with standardized ports and protocols:
- SSH Remote Access: Port
22(TCP). - HTTP / HTTPS Web: Ports
80,443(TCP). - PostgreSQL Database: Port
5432(TCP). - SIP Signaling: Ports
5060,5080(UDP/TCP). - SIP TLS: Port
5061(TCP). - WebRTC WebSocket: Port
7443/8089(TCP). - RTPEngine Media Relay: UDP range
10000-60000. - WireGuard VPN: Port
51820(UDP). - SNMPv3 Monitoring: Port
161(UDP). - LiveKit SFU Video: Ports
7880(HTTP/WS),7881(TCP),7882(UDP).
4. Interactive Geo-Firewall
Section titled “4. Interactive Geo-Firewall”Featuring an interactive SVG world map, administrators can visually whitelist or block entire countries or continents:
- Continent Presets: One-click selection for Europe, North America, Latin America, Asia-Pacific, Africa.
- Real-time CIDR Synthesis: Converts country ISO codes into kernel
ipsetentries for microsecond hardware packet filtering.
5. AI Perimeter Guard
Section titled “5. AI Perimeter Guard”An AI intrusion interception layer that analyzes ingress packet patterns:
- Anti-Flood Rate Limiting: Intercepts SIP INVITE or HTTP floods exceeding 50 requests/sec per IP.
- Zero-Day Pattern Synthesis: Generates dynamic temporary bans when probing behavior matches automated attack scanners (such as Sipvicious, Sqlmap, or Zmap).

