Skip to content

Nftables

5 pages
  • Blocking outgoing traffic for a separate service via nftables

    In Posts 564 words 3 min

    SecurityNftablesDevops

    When a single service must be cut off from outbound network traffic without affecting the host or other workloads, nftables provides a precise, kernel‑level mechanism. Below is a minimal, production‑ready recipe to block outbound on port 5432 while …

    When a single service must be cut off from outbound network traffic without affecting the host or other workloads, nftables provides a precise, kernel‑level mechanism. Below is a minimal, production‑ready recipe to block outbound on port 5432 while …

  • nftables: change default action to DROP for improved security and cleaner logs

    In Posts 549 words 3 min

    LinuxNftablesSecurityDevopsTls

    In nftables, the default ACCEPT policy leaves the system exposed to unwanted traffic and fills logs with packets that should be dropped. Switching the default to DROP enforces a deny-by-default posture, requiring explicit rules for every allowed …

    In nftables, the default ACCEPT policy leaves the system exposed to unwanted traffic and fills logs with packets that should be dropped. Switching the default to DROP enforces a deny-by-default posture, requiring explicit rules for every allowed …

  • nftables: dynamic address list update from file without reload

    In Posts 956 words 5 min

    LinuxNftablesDevopsSecurityBash

    nftables allows dynamic modification of address lists without reloading the entire ruleset. Using sets and nft monitor enables real-time ban-list updates, keeping services available while rules change on the fly. This note covers the minimal command …

    nftables allows dynamic modification of address lists without reloading the entire ruleset. Using sets and nft monitor enables real-time ban-list updates, keeping services available while rules change on the fly. This note covers the minimal command …

  • iTables-nftables transition: migrating rules without downtime

    In Posts 873 words 5 min

    LinuxNetworkDevopsSecurityIptablesNftables

    Lead paragraph: Migrating from iptables-legacy to nftables in production doesn’t require service interruption when both engines run in parallel. This note outlines a disciplined, step-by-step approach to transfer rules, verify traffic flow, and …

    Lead paragraph: Migrating from iptables-legacy to nftables in production doesn’t require service interruption when both engines run in parallel. This note outlines a disciplined, step-by-step approach to transfer rules, verify traffic flow, and …

  • nftables: Modern Linux Firewall

    In Posts 1132 words 6 min

    LinuxSecurityNetworkingNftables

    Warning Before changing nftables, make sure you have physical or console access to the server. A misconfigured input chain can block SSH and lock you out. nftables replaced iptables in the Linux kernel starting with version 3.13. If you’re still …

    Warning Before changing nftables, make sure you have physical or console access to the server. A misconfigured input chain can block SSH and lock you out. nftables replaced iptables in the Linux kernel starting with version 3.13. If you’re still …