This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |