top of page
​
Bash Script - Helpful iptables
Bash script to perform iptable commands and to improve my knowledge of general networking cyber security concepts.
​
Purpose: To practice bash scripting and improve my own knowledge
Features
1.Policies
a. Deny by Default
b. Accept by Default
2. Specific Attacks Prevention
a. Ping Flood
b. TCP SYN Flood
c. Malformed Packets
d. Smurf Attacks
3. Worst Case Options
a. Block all incoming traffic
b. Flush all rules
4. Backup / Restore
a. Backup current rules
b. Restore from backup
Test Case
Backup
Backup current iptable
Restore
Restore from backup file
Default Policy
Change default policy
Flush All Rules
Replace all rules with factory settings
Sources
bottom of page