Skip to content

Instantly share code, notes, and snippets.

@Ben-Cha-AAS
Ben-Cha-AAS / iptables_rules.sh
Last active August 2, 2024 17:48 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# Changed `iptables` to `iptables-legacy` because some arguments weren't playing nice
# 1. Delete all existing rules
iptables-legacy -F
# 2. Set default chain policies
iptables-legacy -P INPUT DROP