-
-
Save anonymous/514cdd23f749ca5d2385 to your computer and use it in GitHub Desktop.
This file contains 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
#accept everything no matter port on localhost | |
iptables -A INPUT -i lo -j ACCEPT | |
iptables -A OUTPUT -o lo -j ACCEPT | |
#allow established connections | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -A INPUT -s 1.2.3.4 -m state --state NEW -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment