Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Created June 5, 2014 18:04
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 AyumuKasuga/29d2856e7d67c8fdb876 to your computer and use it in GitHub Desktop.
Save AyumuKasuga/29d2856e7d67c8fdb876 to your computer and use it in GitHub Desktop.
/etc/iptables.rules
# Generated by iptables-save v1.4.14 on Thu Jun 5 19:52:31 2014
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:sshguard - [0:0]
-A INPUT -j sshguard
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment