No rules — every packet falls through to the DROP policy.
No rules — every packet falls through to the ACCEPT policy.
No simulations yet this session.
#!/usr/bin/env bash # Generated by https://asciitools.com/firewall set -euo pipefail # Start from a clean filter table iptables -F iptables -X # Default policies iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT ACCEPT # INPUT iptables -A INPUT -i lo -m comment --comment "allow loopback" -j ACCEPT