Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created September 18, 2012 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilornel/3740584 to your computer and use it in GitHub Desktop.
Save wilornel/3740584 to your computer and use it in GitHub Desktop.
root@Slack-server:~# iptables -S INPUT
-P INPUT DROP
-A INPUT -m conntrack --ctstate INVALID,NEW -j dynamic
-A INPUT -i eth0 -j net2fw
-A INPUT -i lo -j ACCEPT
-A INPUT -j Reject
-A INPUT -j LOG --log-prefix "Shorewall:INPUT:REJECT:" --log-level 6
-A INPUT -g reject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment