Created
July 20, 2009 19:18
-
-
Save craigw/150547 to your computer and use it in GitHub Desktop.
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
sudo apt-get install iptables | |
sudo iptables -A INPUT -i lo -j ACCEPT | |
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT | |
sudo iptables -A INPUT -j DROP | |
sudo sh -c "iptables-save -c > /etc/iptables.rules" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment