ZWIEGNET Linux Consultants

firewalld / iptables Consulting & Hardening

Advanced Linux Firewall Design, Optimization & Security

Professional consulting for firewalld and iptables (including nftables migration) — custom rule design, zone management, NAT, logging, performance tuning, and enterprise-grade hardening for secure Linux environments.

Get Firewall Expertise

Our firewalld & iptables Services

Firewalls are the first line of defense on Linux. Zwiegnet provides expert design, implementation, optimization, and troubleshooting of firewalld (preferred on modern distros) and legacy iptables — including seamless migration to nftables for better performance and future-proofing.

Our firewall services include:

  • firewalld Zone & Rule Design – Custom zones (public, internal, dmz, trusted), rich rules, services/ports, and source-based access control.
  • iptables / nftables Advanced Configuration – Complex chains, mangle table, NAT (SNAT/DNAT), connection tracking, and performance-optimized rulesets.
  • Migration iptables → nftables / firewalld – Smooth transition from legacy iptables to modern nftables or firewalld with rule validation and minimal downtime.
  • Logging & Monitoring – Auditd integration, ulogd, firewalld rich logging, and centralized logging (rsyslog → SIEM) for compliance and forensics.
  • Security Hardening – Rate limiting, anti-spoofing, DDoS mitigation, fail2ban integration, and compliance with PCI-DSS, HIPAA, NIST standards.
  • High Availability & Clustering – Sync rules across nodes with keepalived/VRRP, conntrackd for stateful failover, and multi-node firewall setups.
  • Performance Tuning – Optimize for high-throughput environments, conntrack tuning, rule ordering, and benchmarking (iperf, stress testing).
  • Troubleshooting & Recovery – Diagnose blocked traffic, NAT issues, state table overflows, and rapid rule rollback/recovery.

Ideal for: enterprises, financial institutions, healthcare providers, e-commerce, SaaS platforms, and any organization requiring robust, high-performance, and compliant Linux firewall protection.

Located between Madison and Milwaukee, Wisconsin since 2009 — direct access to Linux firewall specialists with deep experience in firewalld, iptables, and nftables.

Inquire About firewalld / iptables Consulting

Zones, permanent rules, and nftables

firewalld is a policy on top of nftables on current enterprise Linux. A port opened with firewall-cmd --add-port=443/tcp lasts until reload. The same command with --permanent is written to disk and does nothing to the running rules until firewall-cmd --reload. Forgetting one of those two steps is the entire class of "it worked until reboot" tickets. Zones bind interfaces or source addresses.

Rich rules are for the cases a service file does not express: a source subnet, a log prefix, a limit. Direct rules and a hand-written iptables restore both fight firewalld, because firewalld rebuilds the nftables tables on reload and drops rules it does not own. If you need a raw table, own it in firewalld or stop using firewalld. Do not run both. iptables -L on an iptables-nft host prints a compatibility view.

NAT is masquerade on the zone that faces the upstream, plus a forward policy, plus IP forwarding in sysctl. Opening the port is not the same as forwarding it. fail2ban has to ban through the same backend or its bans are invisible, which is written up on the fail2ban page. IPv6 has its own family in the ruleset. A v4-only allow still leaves the v6 listener exposed if the daemon binds both, and that transition is the IPv6 page.

Questions

Why did the new port close again after a reboot?

The rule was added to the runtime only. Add it with --permanent and then reload, or add it to both. firewall-cmd --list-all shows the runtime. firewall-cmd --permanent --list-all shows what will come back.

Why does iptables -L not show the rule firewalld says is there?

You are looking at the legacy iptables tool while firewalld loaded nftables, or the reverse. nft list ruleset is authoritative on a firewalld host. Use one backend.